From 1c3933b20438da1d858dda2161f058dfa1b36f1e Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期三, 22 六月 2022 15:01:29 +0800
Subject: [PATCH] 联动场景新增算法
---
src/components/giantTree/index.vue | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/components/giantTree/index.vue b/src/components/giantTree/index.vue
index 356d6d2..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;
// 澶氶��
@@ -402,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