guanqb
2023-02-16 19705a3cd9fdd931fd6f92e21ac3e63ea5c7e9a0
社区单元数据bug解决
1 files modified
11 ■■■■ changed files
src/views/house/index.vue 11 ●●●● patch | view | raw | blame | history
src/views/house/index.vue
@@ -693,7 +693,7 @@
            treeEmptyText: "",
            contentShow: true,
            unitOptions: [],
            unitOptions: [{ value: 1, label: '1单元'}],
            unitValue: 1,
            searchHouse: '',
            navType: 0,
@@ -1028,12 +1028,13 @@
                if (res.data != null && houseData.nwwqd.features != []) {
                    let unitData = houseData.nwwqd.features
                    this.floorInfo.house_num = unitData.length
                    if (houseData.hwtxa.features.length > 1) {
                    this.isShowUnitChoose = true
                    }
                    // if (houseData.hwtxa.features.length > 1) {
                        this.isShowUnitChoose = true
                    // }
                    let allUnitDate = []
                    this.unitOptions= []
                    houseData.hwtxa.features.forEach((item, index) => {
                        this.unitOptions.push({ value: `${index + 2}`, label: `${item.properties.pgjmz}` })
                        this.unitOptions.push({ value: `${index + 1}`, label: `${item.properties.pgjmz}` })
                        let unitOptionData = []
                        unitData.forEach(inItem => {
                            if (inItem.properties.pgjmz == item.properties.pgjmz) {