Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
44bda148
Commit
44bda148
authored
Sep 26, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量添加从尾部添加新question
parent
50fa793d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
index.vue
src/views/Root/Chat/index.vue
+4
-6
No files found.
src/views/Root/Chat/index.vue
View file @
44bda148
...
...
@@ -18,7 +18,7 @@
<span
v-for=
"(item,index) of forms"
:key=
"index"
classs=
""
>
<!--
<span
v-if=
"index%2!==0"
>
-->
<a-input
v-model=
"item.answer"
:placeholder=
"'设置自动回复'+ index +'(50字以内)'"
style=
"width: 18rem;margin-right:10px;"
/>
<span
@
click=
"addInput(
index
)"
>
<span
@
click=
"addInput()"
>
<a-icon
type=
"plus"
style=
" margin-right:10px;"
/>
</span>
<span
@
click=
"minInput(index)"
v-if=
"index!=0"
>
...
...
@@ -174,7 +174,6 @@ export default Vue.extend({
total
:
0
,
PAGE_SIZE
,
loading
:
false
,
index
:
0
}
},
methods
:{
...
...
@@ -200,14 +199,14 @@ export default Vue.extend({
this
.
searchPageReqParams
.
endTime
=
undefined
this
.
fetchList
()
},
addInput
(
index
:
number
){
addInput
(){
let
newList
=
{
answer
:
''
,
question
:
''
}
if
(
this
.
forms
.
length
<
5
){
//
this.forms.push(newList)
this
.
forms
.
splice
(
index
+
1
,
0
,
newList
)
this
.
forms
.
push
(
newList
)
//
this.forms.splice(index+1,0,newList)
}
},
minInput
(
index
:
number
){
...
...
@@ -329,4 +328,3 @@ export default Vue.extend({
// }
})
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment