From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 15 七月 2022 14:43:40 +0800 Subject: [PATCH] add cluster pwd --- src/components/giantTree/index.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/components/giantTree/index.vue b/src/components/giantTree/index.vue index ab602d2..3325c7b 100644 --- a/src/components/giantTree/index.vue +++ b/src/components/giantTree/index.vue @@ -19,6 +19,7 @@ @onCollapse="itemCollapse" @onShowPic="showCameraPic" /> + <div class="empty" v-if="!node.length">鏆傛棤鎽勫儚鏈烘暟鎹�,璇锋坊鍔犳憚鍍忔満!</div> <div class="dialog-box-bg" v-show="showDialog" @click="hideDialogBox"></div> <div class="dialog-box" @@ -287,7 +288,9 @@ this.showDialog = true; }, itemClick(evt, treeId, treeNode) { + console.log("click"); this.TreeDataPool.selectedNode = treeNode; + this.TreeDataPool.activeNode = treeNode; this.TreeDataPool.treeType = this.treeName; // 澶氶�� @@ -315,7 +318,6 @@ itemCheck(evt, treeId, treeNode) { this.TreeDataPool.selectedNode = treeNode; this.TreeDataPool.treeType = this.treeName; - debugger; // 澶氶�� // this.ztreeObj.checkNode(treeNode, true, false, false); let checkedNodes = this.ztreeObj.getCheckedNodes(true); @@ -403,10 +405,14 @@ } .tree-menu { // max-width: 350px; + min-height: 92px; overflow-x: auto; overflow-y: hidden; margin-bottom: 4px; } +.empty { + line-height: 76px; +} .tree-menu::-webkit-scrollbar { /*婊氬姩鏉℃暣浣撴牱寮�*/ width: 4px; /*楂樺鍒嗗埆瀵瑰簲妯珫婊氬姩鏉$殑灏哄*/ -- Gitblit v1.8.0