diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 2c7b31816..f33746b63 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -1208,12 +1208,7 @@ export default { this.autoOpenArr.push(data.id); if (!isRefresh && data) { this.selTreeObj = data; - if (!this.selTreeObj.latitude) { - this.selTreeObj.latitude = this.centerPoint[0]; - } - if (!this.selTreeObj.longitude) { - this.selTreeObj.longitude = this.centerPoint[1]; - } + } } else { this.$message.error(msg); @@ -1225,7 +1220,7 @@ export default { }, async handleNodeClick(obj) { this.selObj = JSON.parse(JSON.stringify(obj)); - this.getTreeObj(obj); + this.selTreeObj = obj; await nextTick(1000); this.searchAgencyObj = {}; if (obj.level === "building") { @@ -1242,17 +1237,7 @@ export default { this.handleSearchFrom("type"); } }, - //解析树数据 - getTreeObj(obj) { - if (!obj.latitude) { - obj.latitude = this.centerPoint[0]; - } - - if (!obj.longitude) { - obj.longitude = this.centerPoint[1]; - } - this.selTreeObj = obj; - }, + }, watch: { $route: { diff --git a/src/views/modules/portrayal/jumin/index.vue b/src/views/modules/portrayal/jumin/index.vue index fa67e4cf7..5fcba222e 100644 --- a/src/views/modules/portrayal/jumin/index.vue +++ b/src/views/modules/portrayal/jumin/index.vue @@ -21,7 +21,7 @@ :class="{ item: true, active: index == active }" v-for="(item, index) in menuList" @click="handelCLickMenu(item.id, index)" - v-show="item.filledQty != 0" + v-show="item.filledQty != 0 || item.id == 'ext'" > {{ item.name }} - item.filledQty > 0 && - item.name !== "基本信息" && - item.name !== "拓展信息" + item.filledQty > 0 ||( + item.name == "拓展信息" || + item.name == "基本信息") ); this.expandList = this.originalExpandList.filter((itemA) => { return arr.some((itemB) => itemB.name === itemA.title); @@ -1164,15 +1164,7 @@ export default { }) ); - // this.expandList.forEach((item) => { - // const rows = []; - // const chunkSize = 3; - // for (let i = 0; i < item.children.length; i += chunkSize) { - // rows.push(item.children.slice(i, i + chunkSize)); - // } - // item.rows = rows; - // }); - console.log(this.expandList); + this.menuList.push( { name: "业务记录",