From e581891072a36f0d0f7f57246366ded965e2ab8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期四, 25 一月 2024 10:11:17 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复
---
Source/UBCS-WEB/src/components/Master/MasterTree.vue | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
index 75af1eb..3abe4a1 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;
@@ -103,7 +103,13 @@
const result = this.$route.query.id.substring(0, index);
this.idData = result;
this.removeList();
- getTreeList({'conditionMap[id]': this.idData}).then(res => {
+ 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 => {
if (res) {
if (res.data.length === 0) {
this.$message.error("涓绘暟鎹垎绫绘煡璇负绌猴紒");
@@ -208,7 +214,7 @@
//鏍戠偣鍑讳簨浠�
async nodeClick(data) {
try {
- // console.log(data)
+ console.log(data)
this.TreeValue = data.label.split("</span>")[1].trim();
// console.log('TreeValue',this.TreeValue)
this.$emit('TreeValue', this.TreeValue)
--
Gitblit v1.9.3