From bad2a73fd798991d64cbb22efef2dfd448450e3a Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Fri, 28 Oct 2022 17:52:00 +0800
Subject: [PATCH] 设备模块数据联动
---
src/views/home/components/rightContainer.vue | 44 ++++++++++++++++++++------------------------
1 files changed, 20 insertions(+), 24 deletions(-)
diff --git a/src/views/home/components/rightContainer.vue b/src/views/home/components/rightContainer.vue
index 326fd44..997d126 100644
--- a/src/views/home/components/rightContainer.vue
+++ b/src/views/home/components/rightContainer.vue
@@ -290,37 +290,33 @@
let arr3 = housingDate
let areaArr = []
- let housingArr = []
let jurisdictionData = [{
label: '全部',
children: []
}]
- arr1.forEach((item1, index1) => {
- console.log(item1.policeStationName)
- if (item1.policeStationName != '全部') {
- let policeArr = [{
- label: '全部',
- children: areaArr
- }]
- let item1Obj = { label: item1.policeStationName, id: item1.policeStationId, children: policeArr }
- arr2.forEach((item2, index2) => {
- if (item2.policeStationName == item1.policeStationName) {
- item2.areaCheckOptions.forEach((item3, index3) => {
- if (item3.areaCheckName != '全部') {
- let policeArr = [{
- label: '全部',
- children: areaArr
- }]
- let item3Obj = { label: item3.areaCheckName, id: item3.areaCheckId, childern: housingArr }
+ // arr1.forEach((item1, index1) => {
+ // console.log(item1.policeStationName)
+ // if (item1.policeStationName != '全部') {
- }
- })
- }
- })
- }
+ // let item1Obj = { label: item1.policeStationName, id: item1.policeStationId, children: policeArr }
+ // arr2.forEach((item2, index2) => {
+ // if (item2.policeStationName == item1.policeStationName) {
+ // item2.areaCheckOptions.forEach((item3, index3) => {
+ // if (item3.areaCheckName != '全部') {
+ // let policeArr = [{
+ // label: '全部',
+ // children: housingArr
+ // }]
+ // let item3Obj = { label: item3.areaCheckName, id: item3.areaCheckId, childern: housingArr }
+
+ // }
+ // })
+ // }
+ // })
+ // }
- })
+ // })
}
}
--
Gitblit v1.9.3