Commit ea35aa45 authored by lshan's avatar lshan

i资讯管理重置修改

parent ff491f1d
...@@ -12,7 +12,7 @@ const columns:Array<column>=[ ...@@ -12,7 +12,7 @@ const columns:Array<column>=[
dataIndex: 'title', dataIndex: 'title',
}, },
{ {
title: '咨询分类', title: '资讯分类',
align:'center', align:'center',
dataIndex: 'article_type', dataIndex: 'article_type',
scopedSlots: { customRender: 'type' }, scopedSlots: { customRender: 'type' },
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<span v-for="(item,index) of forms" :key="index" classs=""> <span v-for="(item,index) of forms" :key="index" classs="">
<!-- <span v-if="index%2!==0" > --> <!-- <span v-if="index%2!==0" > -->
<a-input v-model="item.answer" :placeholder="'设置自动回复'+ index +'(50字以内)'" style="width: 18rem;margin-right:10px;"/> <a-input v-model="item.answer" :placeholder="'设置自动回复'+ index +'(50字以内)'" style="width: 18rem;margin-right:10px;"/>
<span @click="addInput()"> <span @click="addInput(index)">
<a-icon type="plus" style=" margin-right:10px;" /> <a-icon type="plus" style=" margin-right:10px;" />
</span> </span>
<span @click="minInput(index)" v-if="index!=0"> <span @click="minInput(index)" v-if="index!=0">
...@@ -143,7 +143,7 @@ export default Vue.extend({ ...@@ -143,7 +143,7 @@ export default Vue.extend({
} }
}, },
created(){ created(){
this.addInput() this.addInput(0)
}, },
mounted(){ mounted(){
this.fetchList() this.fetchList()
...@@ -199,14 +199,14 @@ export default Vue.extend({ ...@@ -199,14 +199,14 @@ export default Vue.extend({
this.searchPageReqParams.endTime = undefined this.searchPageReqParams.endTime = undefined
this.fetchList() this.fetchList()
}, },
addInput(){ addInput(index:number){
let newList = { let newList = {
answer:'', answer:'',
question:'' question:''
} }
if(this.forms.length<5){ if(this.forms.length<5){
this.forms.push(newList) // this.forms.push(newList)
// this.forms.splice(index+1,0,newList) this.forms.splice(index+1,0,newList)
} }
}, },
minInput(index:number){ minInput(index:number){
......
...@@ -182,12 +182,13 @@ export default Vue.extend({ ...@@ -182,12 +182,13 @@ export default Vue.extend({
this.searchPageReqParams.start_time = startTime this.searchPageReqParams.start_time = startTime
this.searchPageReqParams.end_time = endTime this.searchPageReqParams.end_time = endTime
}, },
reset(){ reset(index:number){
this.searchPageReqParams.title = '' this.searchPageReqParams.title = ''
this.searchPageReqParams.article_status = 0 this.searchPageReqParams.article_status = 0
this.searchPageReqParams.article_type = 1 this.searchPageReqParams.article_type = 1
this.searchPageReqParams.start_time = undefined this.searchPageReqParams.start_time = undefined
this.searchPageReqParams.end_time = undefined this.searchPageReqParams.end_time = undefined
this. query()
}, },
release(key?:string, type?:string){ release(key?:string, type?:string){
if (key && type) { if (key && type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment