切换类型

This commit is contained in:
shijingjing
2022-02-09 10:18:01 +08:00
parent 0d55bd9bbd
commit 6edac0ff61
3 changed files with 12 additions and 12 deletions

View File

@@ -18,7 +18,7 @@
<!-- 事件列表 -->
<div class="title">
<div class="title-name">事件列表</div>
<div class="title-type">{{ $dict.getLabel('clapEventStatusAll', groupName) }}<u-icon name="arrow-down"></u-icon></div>
<div class="title-type" @click="showGird = true">{{ status? status: '全部' }}<u-icon name="arrow-down"></u-icon></div>
</div>
<template>
@@ -50,7 +50,7 @@
<AiEmpty v-if="!datas.length"></AiEmpty>
</template>
<u-select v-model="showGird" :list="groupType" label-name="groupName" value-name="id"
<u-select v-model="showGird" :list="$dict.getDict('clapEventStatusAll')" label-name="dictName" value-name="dictValue"
@confirm="changeType"/>
<div class="pad-b120" v-if="datas.length"></div>
@@ -75,6 +75,7 @@ export default {
girdNameText: '所属网格',
showType: false,
listType: [],
status: '',
eventStatus: '',
eventStatusText: '办件状态',
listTypeHistory: [],
@@ -140,13 +141,10 @@ export default {
},
// 切换类型
changeType(e) {
console.log(e)
this.girdId = e[0].value
this.groupType.map((item) => {
if(item.id == this.form.girdId) {
this.form.girdName = item.girdName
}
})
this.status = e[0].label
this.datas = []
this.eventStatus = e[0].value
this.getList()
},
// 新增事件