Browse Source

居民列表左侧组织树报错,居民详情左侧得分项显示

feature
mk 2 years ago
parent
commit
493d0e93f6
  1. 21
      src/views/modules/base/resi.vue
  2. 18
      src/views/modules/portrayal/jumin/index.vue

21
src/views/modules/base/resi.vue

@ -1208,12 +1208,7 @@ export default {
this.autoOpenArr.push(data.id); this.autoOpenArr.push(data.id);
if (!isRefresh && data) { if (!isRefresh && data) {
this.selTreeObj = 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 { } else {
this.$message.error(msg); this.$message.error(msg);
@ -1225,7 +1220,7 @@ export default {
}, },
async handleNodeClick(obj) { async handleNodeClick(obj) {
this.selObj = JSON.parse(JSON.stringify(obj)); this.selObj = JSON.parse(JSON.stringify(obj));
this.getTreeObj(obj); this.selTreeObj = obj;
await nextTick(1000); await nextTick(1000);
this.searchAgencyObj = {}; this.searchAgencyObj = {};
if (obj.level === "building") { if (obj.level === "building") {
@ -1242,17 +1237,7 @@ export default {
this.handleSearchFrom("type"); 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: { watch: {
$route: { $route: {

18
src/views/modules/portrayal/jumin/index.vue

@ -21,7 +21,7 @@
:class="{ item: true, active: index == active }" :class="{ item: true, active: index == active }"
v-for="(item, index) in menuList" v-for="(item, index) in menuList"
@click="handelCLickMenu(item.id, index)" @click="handelCLickMenu(item.id, index)"
v-show="item.filledQty != 0" v-show="item.filledQty != 0 || item.id == 'ext'"
> >
<span>{{ item.name }}</span <span>{{ item.name }}</span
><span ><span
@ -1136,9 +1136,9 @@ export default {
.reverse(); .reverse();
let arr = this.menuList.filter( let arr = this.menuList.filter(
(item) => (item) =>
item.filledQty > 0 && item.filledQty > 0 ||(
item.name !== "基本信息" && item.name == "拓展信息" ||
item.name !== "拓展信息" item.name == "基本信息")
); );
this.expandList = this.originalExpandList.filter((itemA) => { this.expandList = this.originalExpandList.filter((itemA) => {
return arr.some((itemB) => itemB.name === itemA.title); 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( this.menuList.push(
{ {
name: "业务记录", name: "业务记录",

Loading…
Cancel
Save