切换类型
This commit is contained in:
@@ -14,7 +14,7 @@ export default {
|
|||||||
this.initWaterMarker()
|
this.initWaterMarker()
|
||||||
},
|
},
|
||||||
onPageNotFound() {
|
onPageNotFound() {
|
||||||
this.logout()
|
// this.logout()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['token', 'user']),
|
...mapState(['token', 'user']),
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<!-- 事件列表 -->
|
<!-- 事件列表 -->
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="title-name">事件列表</div>
|
<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>
|
</div>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<AiEmpty v-if="!datas.length"></AiEmpty>
|
<AiEmpty v-if="!datas.length"></AiEmpty>
|
||||||
</template>
|
</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"/>
|
@confirm="changeType"/>
|
||||||
|
|
||||||
<div class="pad-b120" v-if="datas.length"></div>
|
<div class="pad-b120" v-if="datas.length"></div>
|
||||||
@@ -75,6 +75,7 @@ export default {
|
|||||||
girdNameText: '所属网格',
|
girdNameText: '所属网格',
|
||||||
showType: false,
|
showType: false,
|
||||||
listType: [],
|
listType: [],
|
||||||
|
status: '',
|
||||||
eventStatus: '',
|
eventStatus: '',
|
||||||
eventStatusText: '办件状态',
|
eventStatusText: '办件状态',
|
||||||
listTypeHistory: [],
|
listTypeHistory: [],
|
||||||
@@ -140,13 +141,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 切换类型
|
// 切换类型
|
||||||
changeType(e) {
|
changeType(e) {
|
||||||
console.log(e)
|
this.status = e[0].label
|
||||||
this.girdId = e[0].value
|
this.datas = []
|
||||||
this.groupType.map((item) => {
|
this.eventStatus = e[0].value
|
||||||
if(item.id == this.form.girdId) {
|
this.getList()
|
||||||
this.form.girdName = item.girdName
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 新增事件
|
// 新增事件
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="Detail">
|
<div class="Detail" v-if="showPage">
|
||||||
<div class="header-top">
|
<div class="header-top">
|
||||||
<div class="avatars" v-if="data.name">{{ data.name.substring(data.name.length, data.name.length - 2) }}</div>
|
<div class="avatars" v-if="data.name">{{ data.name.substring(data.name.length, data.name.length - 2) }}</div>
|
||||||
|
|
||||||
@@ -131,13 +131,14 @@ export default {
|
|||||||
data: {},
|
data: {},
|
||||||
id: '',
|
id: '',
|
||||||
doItShow: false,
|
doItShow: false,
|
||||||
|
showPage: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
onLoad(o) {
|
onLoad(o) {
|
||||||
this.id = o.id
|
|
||||||
this.$dict.load('realityStatus', 'clapDoStatus').then(() => {
|
this.$dict.load('realityStatus', 'clapDoStatus').then(() => {
|
||||||
|
this.id = o.id
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -153,6 +154,7 @@ export default {
|
|||||||
this.$http.post(`/app/appclapeventinfo/queryDetailById?id=${this.id}`).then((res) => {
|
this.$http.post(`/app/appclapeventinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
|
this.showPage = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user