diff --git a/project/wuxi/app/AppReportAiWill/components/Detail.vue b/project/wuxi/app/AppReportAiWill/components/Detail.vue
index 6ec2ecc1..a2542205 100644
--- a/project/wuxi/app/AppReportAiWill/components/Detail.vue
+++ b/project/wuxi/app/AppReportAiWill/components/Detail.vue
@@ -126,13 +126,13 @@
title="选择网格员"
@onConfirm="onConfirm">
-
+
+ v-model="search.eventStatus"
+ clearable
+ placeholder="处理状态"
+ :selectList="dict.getDict('clapEventStatus')"
+ @change="search.current = 1, getList()">
+
+
+
+
+
+
this.dict.getLabel('clapEventStatus', v)},
{prop: 'processTime', label: '处理时长', align: 'center'},
@@ -97,10 +128,58 @@ export default {
created() {
this.dict.load('clapEventStatus', 'residentEventSource').then(() => {
this.getList()
+ this.getGridList()
+ this.getTypeList()
})
},
methods: {
+ timeChange() {
+ if (this.searchDotime) {
+ this.search.doTimeStart = this.searchDotime[0]
+ this.search.doTimeEnd = this.searchDotime[1]
+ } else {
+ this.search.doTimeStart = null
+ this.search.doTimeEnd = null
+ }
+ this.search.current = 1
+ this.getList()
+ },
+ // 所有网格
+ getGridList() {
+ this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
+ if (res?.code == 0) {
+ this.girdOptions = this.toTree(res.data)
+ }
+ })
+ },
+ // 转树形结构
+ toTree(data) {
+ let result = [];
+ if (!Array.isArray(data)) {
+ return result
+ }
+ let map = {};
+ data.forEach(item => {
+ map[item.id] = item;
+ });
+ data.forEach(item => {
+ let parent = map[item.parentGirdId];
+ if (parent) {
+ (parent.children || (parent.children = [])).push(item);
+ } else {
+ result.push(item);
+ }
+ });
+ return result;
+ },
+ gridChange(val) {
+ this.girdArr = val
+ this.girdId = val?.[val.length - 1]
+ this.$refs.cascader1.dropDownVisible = false;
+ this.search.current = 1
+ this.getList()
+ },
getList() {
this.instance.post(`/app/appresidentreportinfo/list`, null, {
params: {
@@ -142,8 +221,20 @@ export default {
}
})
}).catch(() => 0)
+ },
+ getTypeList() {
+ this.instance.post(`/app/appresidentreportgroup/list?size=10000`).then(res => {
+ if (res.code == 0) {
+ res.data.records.map((item) => {
+ item.dictName = item.groupName
+ item.dictValue = item.id
+ })
+ this.typeList = res.data.records
+ }
+ })
}
- }
+ },
+
}