From eb6970d08b8e2974194d5aa24872fce19c5c11a0 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 18 八月 2023 12:00:49 +0800
Subject: [PATCH] 用户管理 树切换默认bug
---
Source/UBCS-WEB/src/views/system/user.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/system/user.vue b/Source/UBCS-WEB/src/views/system/user.vue
index 212e197..c03acfa 100644
--- a/Source/UBCS-WEB/src/views/system/user.vue
+++ b/Source/UBCS-WEB/src/views/system/user.vue
@@ -209,6 +209,7 @@
}
};
return {
+ tenantId:'',
form: {},
seoptions: [],
sevalue:"",
@@ -372,7 +373,7 @@
trigger: "click"
}],
span: 24,
- // value:'986926'
+ value:"211833"
},
{
label: "鐧诲綍璐﹀彿",
@@ -694,6 +695,7 @@
'form.tenantId'() {
if (this.form.tenantId !== '' && this.initFlag) {
this.initData(this.form.tenantId);
+ console.log('this.form.tenantId',this.form.tenantId)
}
},
'excelForm.isCovered'() {
@@ -809,6 +811,8 @@
});
},
nodeClick(data) {
+ console.log(data)
+ console.log(this.form.tenantId)
this.treeDeptId = data.id;
this.page.currentPage = 1;
this.onLoad(this.page);
@@ -1028,7 +1032,11 @@
})
},
beforeOpen(done, type) {
- console.log(type)
+ // console.log(type)
+ // console.log('this.tenantId',this.tenantId)
+ // const column = this.findObject(this.option.group,'tenantId');
+ // column.value=this.tenantId;
+ // console.log('column',column)
if(this.treeDeptId){
if (["edit", "view"].includes(type)) {
getUser(this.form.id).then(res => {
@@ -1068,6 +1076,7 @@
this.page.total = data.total;
this.data = data.records;
this.loading = false;
+ this.tenantId=data.records[0].tenantId
this.selectionClear();
});
},
--
Gitblit v1.9.3