guanqb
2022-10-28 bad2a73fd798991d64cbb22efef2dfd448450e3a
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 }
            //                     }
            //                 })
            //             }
            //         })
            //     }
            })
            // })
        }
    }