Commit ea35aa45 authored by lshan's avatar lshan

i资讯管理重置修改

parent ff491f1d
......@@ -12,7 +12,7 @@ const columns:Array<column>=[
dataIndex: 'title',
},
{
title: '咨询分类',
title: '资讯分类',
align:'center',
dataIndex: 'article_type',
scopedSlots: { customRender: 'type' },
......
......@@ -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()">
<span @click="addInput(index)">
<a-icon type="plus" style=" margin-right:10px;" />
</span>
<span @click="minInput(index)" v-if="index!=0">
......@@ -143,7 +143,7 @@ export default Vue.extend({
}
},
created(){
this.addInput()
this.addInput(0)
},
mounted(){
this.fetchList()
......@@ -199,14 +199,14 @@ export default Vue.extend({
this.searchPageReqParams.endTime = undefined
this.fetchList()
},
addInput(){
addInput(index:number){
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){
......
......@@ -182,12 +182,13 @@ export default Vue.extend({
this.searchPageReqParams.start_time = startTime
this.searchPageReqParams.end_time = endTime
},
reset(){
reset(index:number){
this.searchPageReqParams.title = ''
this.searchPageReqParams.article_status = 0
this.searchPageReqParams.article_type = 1
this.searchPageReqParams.start_time = undefined
this.searchPageReqParams.end_time = undefined
this.searchPageReqParams.end_time = undefined
this. query()
},
release(key?:string, type?:string){
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