From 7d05c69630d066c0992368423f90e440e3638f91 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期日, 29 九月 2024 11:01:51 +0800
Subject: [PATCH] 整合代码
---
Source/UBCS-WEB/src/components/Master/MasterTree.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
index 4d87afc..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;
@@ -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,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 = []
@@ -231,7 +235,7 @@
<style lang="scss" scoped>
.app {
overflow: auto;
- height: calc(100vh - 150px);
+ height: calc(100vh - 145px);
}
.app::-webkit-scrollbar {
--
Gitblit v1.9.3