diff --git a/src/assets/images/home/dyzxhClick.png b/src/assets/images/home/dyzxhClick.png new file mode 100644 index 000000000..26f1fa3e6 Binary files /dev/null and b/src/assets/images/home/dyzxhClick.png differ diff --git a/src/assets/images/home/dyzxhTree.png b/src/assets/images/home/dyzxhTree.png index 97e2c9fd2..e6c166b6a 100644 Binary files a/src/assets/images/home/dyzxhTree.png and b/src/assets/images/home/dyzxhTree.png differ diff --git a/src/assets/images/home/lydxzClick.png b/src/assets/images/home/lydxzClick.png index 7eeb24adb..ac288b3f0 100644 Binary files a/src/assets/images/home/lydxzClick.png and b/src/assets/images/home/lydxzClick.png differ diff --git a/src/assets/images/home/lydxzTree.png b/src/assets/images/home/lydxzTree.png index 3c2db15ae..381cbab6b 100644 Binary files a/src/assets/images/home/lydxzTree.png and b/src/assets/images/home/lydxzTree.png differ diff --git a/src/components/GridTree/nodeWrap.vue b/src/components/GridTree/nodeWrap.vue index a56c7cbb9..0a9f4f2a4 100644 --- a/src/components/GridTree/nodeWrap.vue +++ b/src/components/GridTree/nodeWrap.vue @@ -17,20 +17,32 @@
-
+
+
+ + +
-
+
+
+ + +
-
+
{{ item.organizationName }}
+
+ + +
@@ -96,6 +108,20 @@ export default { } } }, + getChildrenData(item, idx, arr) { + arr.forEach((element, index) => { + if (index === idx) { + if (element.children) { + element._children = element.children; + element.children = null; + } else { + element.children = element._children; + } + } else { + element.children = null; + } + }); + }, gotoPersonnel(item) { const grandPid = this.findParentParentId(this.nodeConfig, item.pid); const name = item.organizationName ? item.organizationName : "四号楼二单元302"; @@ -119,7 +145,7 @@ export default { @mixin lastLevel { @include spanLevel; @include normalLevel; - height: 118px; + height: 137px; width: 30px; margin-top: -12px; background-size: 100%; @@ -157,50 +183,85 @@ export default { .auto-judge { .wgdzb { @include spanLevel; - width: 132px; - height: 96px; + min-width: 120px; + height: 126px; text-align: center; - padding-top: 5px; + padding-top: 9px; background-image: url(~@/assets/images/home/zbbg.png); - background-size: 100%; + background-repeat: no-repeat; + background-position: center; + // background-size: 100%; + } + .wgdzbHover { + @include spanLevel; + min-width: 120px; + height: 126px; + text-align: center; + padding-top: 9px; + background-image: url(~@/assets/images/home/zbbgClick.png); + // background-size: 100%; + background-repeat: no-repeat; + background-position: center; } .lydxz { @include spanLevel; // @include normalLevel; text-align: center; - width: 216px; - height: 50px; - padding-top: 5px; + min-width: 120px; + height: 126px; + padding-top: 25px; background-image: url(~@/assets/images/home/lydxzTree.png); - background-size: 100%; + background-repeat: no-repeat; + background-position: center; + } + .lydxzHover { + @include spanLevel; + // @include normalLevel; + text-align: center; + min-width: 120px; + height: 126px; + padding-top: 25px; + background-image: url(~@/assets/images/home/lydxzClick.png); + background-repeat: no-repeat; + background-position: center; } .dyzxh { @include lastLevel; background-image: url(~@/assets/images/home/dyzxhTree.png); + background-repeat: no-repeat; } + .dyzxhHover { + @include lastLevel; + background-image: url(~@/assets/images/home/dyzxhClick.png); + background-repeat: no-repeat; + } + .dyzxhGreen { @include lastLevel; background-image: url(~@/assets/images/home/gridGreen.png); + background-repeat: no-repeat; } .dyzxhRed { @include lastLevel; background-image: url(~@/assets/images/home/gridRed.png); + background-repeat: no-repeat; } .dyzxhYellow { @include lastLevel; background-image: url(~@/assets/images/home/gridYellow.png); + background-repeat: no-repeat; } .lxjt { @include spanLevel; display: flex; align-items: center; justify-content: space-around; - height: 118px; + height: 137px; width: 30px; writing-mode: tb-rl; margin-top: -12px; background-image: url(~@/assets/images/home/dyzxhTree.png); - background-size: 100%; + background-repeat: no-repeat; } } diff --git a/src/components/JwTree/nodeWrap.vue b/src/components/JwTree/nodeWrap.vue index 54303e526..d7ab6d270 100644 --- a/src/components/JwTree/nodeWrap.vue +++ b/src/components/JwTree/nodeWrap.vue @@ -26,7 +26,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
{{ spliceNameFun(item.organizationName, 3) }}
@@ -93,14 +93,6 @@ export default { }, getChildrenData(item, idx, arr) { - // if (!item._children) { - // this.$message({ - // message: "无下级数据", - // type: "error", - // }); - // return; - // } - // 遍历arr,找到当前点击的item,将其_children赋值给item.children arr.forEach((element, index) => { if (index === idx) { if (element.children) { @@ -169,63 +161,80 @@ export default { .auto-judge { .wgdzb { @include spanLevel; - width: 90px; + min-width: 120px; height: 126px; text-align: center; - padding-top: 5px; + padding-top: 9px; background-image: url(~@/assets/images/home/zbbg.png); - background-size: 100%; + background-repeat: no-repeat; + background-position: center; + // background-size: 100%; } .wgdzbHover { @include spanLevel; - width: 90px; + min-width: 120px; height: 126px; text-align: center; - padding-top: 5px; + padding-top: 9px; background-image: url(~@/assets/images/home/zbbgClick.png); - background-size: 100%; + // background-size: 100%; + background-repeat: no-repeat; + background-position: center; } .lydxz { @include spanLevel; // @include normalLevel; text-align: center; - width: 90px; - height: 98px; - padding-top: 5px; + min-width: 120px; + height: 126px; + padding-top: 25px; background-image: url(~@/assets/images/home/lydxzTree.png); - background-size: 100%; + background-repeat: no-repeat; + background-position: center; } .lydxzHover { @include spanLevel; // @include normalLevel; text-align: center; - width: 90px; - height: 98px; - padding-top: 5px; + min-width: 120px; + height: 126px; + padding-top: 25px; background-image: url(~@/assets/images/home/lydxzClick.png); - background-size: 100%; + background-repeat: no-repeat; + background-position: center; } .dyzxh { @include spanLevel; @include normalLevel; - height: 118px; + height: 137px; width: 30px; writing-mode: tb-rl; margin-top: -12px; background-image: url(~@/assets/images/home/dyzxhTree.png); - background-size: 100%; + background-repeat: no-repeat; } + .dyzxhHover { + @include spanLevel; + @include normalLevel; + height: 137px; + width: 30px; + writing-mode: tb-rl; + margin-top: -12px; + background-image: url(~@/assets/images/home/dyzxhClick.png); + background-repeat: no-repeat; + } + .lxjt { @include spanLevel; display: flex; align-items: center; justify-content: space-around; - height: 118px; + height: 137px; width: 30px; writing-mode: tb-rl; margin-top: -12px; background-image: url(~@/assets/images/home/dyzxhTree.png); - background-size: 100%; + background-repeat: no-repeat; } } diff --git a/src/components/NameSplit/index.vue b/src/components/NameSplit/index.vue index 2fc49280e..94e26b7bc 100644 --- a/src/components/NameSplit/index.vue +++ b/src/components/NameSplit/index.vue @@ -1,11 +1,13 @@ @@ -43,26 +45,39 @@ export default { }, getItemNameArr(str) { - return str.split(",").slice(0, 2); + return str.split(",").slice(0, 1); }, spliceNameFun(row, num) { - return row; + return row.substring(0, num); }, gotoPersonnel(id) { if (id) { this.$router.push({ path: `/organizational/orgPersonnel/${this.pageName}`, query: { user_id: id } }); } else { - this.$message.error("无法跳转!"); + this.$message.error("该人员暂无居民信息!"); } }, + getPeopositionMap(type) { + const positionMap = new Map([ + [1, "省委"], + [2, "市委"], + [3, "区委书记"], + [4, "党工委书记"], + [5, "党委书记"], + [6, "党总支书记"], + [7, "支部书记"], + [8, "组长"], + ]); + return positionMap.get(type); + }, }, }; diff --git a/src/views/dataBoard/cpts/family/modules/EnjoyService.vue b/src/views/dataBoard/cpts/family/modules/EnjoyService.vue index ce020c199..ca336a206 100644 --- a/src/views/dataBoard/cpts/family/modules/EnjoyService.vue +++ b/src/views/dataBoard/cpts/family/modules/EnjoyService.vue @@ -1,17 +1,55 @@