浏览代码

添加高亮选中

zhaoke 3 年之前
父节点
当前提交
f1d70815dd

二进制
dist.rar


+ 5 - 0
src/views/accountGroupManagement/components/accountGroupHome.vue

@@ -225,6 +225,11 @@ export default {
     }
     this.getGroupTree(keyWords)
   },
+  mounted () {
+    setTimeout(() => {
+      this.$refs.tree.setCurrentKey(this.expandedKeys[this.expandedKeys.length - 1]);
+    }, 500);
+  },
   watch: {
     dataList: {
       handler: function (val) {

+ 5 - 0
src/views/authorityManagement/components/authorityHome.vue

@@ -200,6 +200,11 @@ export default {
     }
     this.getAuthTree(keyWords);
   },
+  mounted () {
+    setTimeout(() => {
+      this.$refs.tree.setCurrentKey(this.expandedKeys[this.expandedKeys.length - 1]);
+    }, 500);
+  },
   watch: {
     dataList: {
       handler (val) {

+ 5 - 0
src/views/organizationManagement/components/organizationHome.vue

@@ -240,6 +240,11 @@ export default {
     }
     this.getOrganTree(keyWords);
   },
+  mounted () {
+    setTimeout(() => {
+      this.$refs.tree.setCurrentKey(this.expandedKeys[this.expandedKeys.length - 1]);
+    }, 500);
+  },
   watch: {
     dataList: {
       handler: function (val) {