This commit is contained in:
liuye
2022-01-07 18:56:21 +08:00
parent 4df817164c
commit ce64ba80a8

View File

@@ -77,7 +77,9 @@ export default {
showType: false,
listType: [],
eventStatus: '',
eventStatusText: '办件状态'
eventStatusText: '办件状态',
listTypeHistory: [],
listTypeAll: []
}
},
computed: {
@@ -102,14 +104,11 @@ export default {
},
created() {
this.$dict.load('clapEventStatus').then(() => {
this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory').then(() => {
this.getList()
this.listType = this.$dict.getDict('clapEventStatus')
var all = {
dictValue: '',
dictName: '全部'
}
this.listType.unshift(all)
this.listTypeAll = this.$dict.getDict('clapEventStatusAll')
this.listTypeHistory = this.$dict.getDict('clapEventStatusHistory')
this.listType = this.listTypeAll
})
},
methods: {
@@ -177,6 +176,11 @@ export default {
this.girdNameText = '所属网格'
this.eventStatusText = '办件状态'
this.currentTabs = index
if(index == 0) {
this.listType = this.listTypeAll
}else {
this.listType = this.listTypeHistory
}
this.getList()
},