巡查上报统计

This commit is contained in:
liuye
2023-09-07 11:48:53 +08:00
parent b901b322b3
commit 83886f1b64

View File

@@ -93,7 +93,7 @@ export default {
let parents = res.data.map(e => e.parentGirdId) let parents = res.data.map(e => e.parentGirdId)
this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)})) this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)}))
this.treeInit() this.treeInit()
if(this.$route.query.selected && this.$route.query.selected.length) { //确认按钮弹窗报错 if(this.$route.query.selected) { //确认按钮弹窗报错
this.allData.map((item) => { this.allData.map((item) => {
if(item.id == this.$route.query.selected) { if(item.id == this.$route.query.selected) {
this.SelectGird = item this.SelectGird = item