From 6ca4dcf73b6fd1ac42c77c75c8ce422a75b75a19 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 07 三月 2024 09:59:54 +0800
Subject: [PATCH] 整合代码
---
Source/UBCS-WEB/src/components/Master/MasterTree.vue | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
index 2dc9840..3b9a8db 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -57,7 +57,7 @@
delBtn: false,
defaultExpandAll: false,
menu: false,
- lazy: true,
+ // lazy: true,
treeLoad: (node, resolve) => {
if (node.data != false) {
const parentId = (node.level === 0) ? 0 : node.data.oid;
@@ -106,6 +106,7 @@
let conditionMaps = {};
conditionMaps["conditionMap[id]"] = this.idData;
conditionMaps["conditionMap[authType]"] = "data_auth";
+ conditionMaps["conditionMap[buttonCode]"] = this.idData;
// 鏁版嵁鎺堟潈涓槸鍚﹀叿澶囨煡鐪嬫潈闄�
conditionMaps["conditionMap[menuCode]"] = "data_view";
getTreeList(conditionMaps).then(res => {
@@ -213,9 +214,7 @@
//鏍戠偣鍑讳簨浠�
async nodeClick(data) {
try {
- // console.log(data)
- this.TreeValue = data.label.split("</span>")[1].trim();
- // console.log('TreeValue',this.TreeValue)
+ this.TreeValue = data.label;
this.$emit('TreeValue', this.TreeValue)
this.nodeClickList = data;
this.tableHeadDataFateher = []
--
Gitblit v1.9.3