diff --git a/.env.development b/.env.development index 5bd12618a..be7be3ece 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ NODE_ENV=development -VUE_APP_API_SERVER = https://epmet-preview.elinkservice.cn/api -# VUE_APP_API_SERVER = http://localhost:8080/api +# VUE_APP_API_SERVER = https://epmet-preview.elinkservice.cn/api +VUE_APP_API_SERVER = http://localhost:9001/api # VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = http://219.146.91.110:30801/api # VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api diff --git a/src/assets/images/home/lydxzClick.png b/src/assets/images/home/lydxzClick.png new file mode 100644 index 000000000..7eeb24adb Binary files /dev/null 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 bd83131c7..3c2db15ae 100644 Binary files a/src/assets/images/home/lydxzTree.png and b/src/assets/images/home/lydxzTree.png differ diff --git a/src/assets/images/home/sh.png b/src/assets/images/home/sh.png new file mode 100644 index 000000000..51daebd86 Binary files /dev/null and b/src/assets/images/home/sh.png differ diff --git a/src/assets/images/home/zbbg.png b/src/assets/images/home/zbbg.png old mode 100644 new mode 100755 index 6aa9b22ab..b3cf0d692 Binary files a/src/assets/images/home/zbbg.png and b/src/assets/images/home/zbbg.png differ diff --git a/src/assets/images/home/zbbgClick.png b/src/assets/images/home/zbbgClick.png new file mode 100644 index 000000000..bc1506c02 Binary files /dev/null and b/src/assets/images/home/zbbgClick.png differ diff --git a/src/assets/images/home/zk.png b/src/assets/images/home/zk.png new file mode 100644 index 000000000..16e5aae78 Binary files /dev/null and b/src/assets/images/home/zk.png differ diff --git a/src/components/JwTree/nodeWrap.vue b/src/components/JwTree/nodeWrap.vue index ac36790f5..54303e526 100644 --- a/src/components/JwTree/nodeWrap.vue +++ b/src/components/JwTree/nodeWrap.vue @@ -17,19 +17,31 @@
-
+
+
+ + +
-
+
+
+ + +
{{ spliceNameFun(item.organizationName, 3) }}
+
+ + +
@@ -80,6 +92,29 @@ export default { return this.sixLevelArr.includes(item.level); }, + 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) { + element._children = element.children; + element.children = null; + } else { + element.children = element._children; + } + } else { + element.children = null; + } + }); + }, + gotoPersonnel(id, name) { if (id) { this.$router.push(`/organizational/orgPersonnel/${name}`); @@ -134,23 +169,42 @@ export default { .auto-judge { .wgdzb { @include spanLevel; - width: 132px; - height: 96px; + width: 90px; + height: 126px; text-align: center; padding-top: 5px; background-image: url(~@/assets/images/home/zbbg.png); background-size: 100%; } + .wgdzbHover { + @include spanLevel; + width: 90px; + height: 126px; + text-align: center; + padding-top: 5px; + background-image: url(~@/assets/images/home/zbbgClick.png); + background-size: 100%; + } .lydxz { @include spanLevel; // @include normalLevel; text-align: center; - width: 216px; - height: 50px; + width: 90px; + height: 98px; padding-top: 5px; background-image: url(~@/assets/images/home/lydxzTree.png); background-size: 100%; } + .lydxzHover { + @include spanLevel; + // @include normalLevel; + text-align: center; + width: 90px; + height: 98px; + padding-top: 5px; + background-image: url(~@/assets/images/home/lydxzClick.png); + background-size: 100%; + } .dyzxh { @include spanLevel; @include normalLevel; diff --git a/src/components/NameSplit/index.vue b/src/components/NameSplit/index.vue index b9669249c..2fc49280e 100644 --- a/src/components/NameSplit/index.vue +++ b/src/components/NameSplit/index.vue @@ -1,7 +1,7 @@