From 153a4048e410a789a0da4eda0af09b2ca645bec3 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 12 十月 2023 10:24:08 +0800 Subject: [PATCH] 系统管理-取消列显隐 --- Source/UBCS-WEB/src/views/system/user.vue | 54 +++++++++++++++++++++++++----------------------------- 1 files changed, 25 insertions(+), 29 deletions(-) diff --git a/Source/UBCS-WEB/src/views/system/user.vue b/Source/UBCS-WEB/src/views/system/user.vue index ba45302..80d027e 100644 --- a/Source/UBCS-WEB/src/views/system/user.vue +++ b/Source/UBCS-WEB/src/views/system/user.vue @@ -278,6 +278,7 @@ tip: false, searchShow: true, searchMenuSpan: 6, + columnBtn:false, border: true, index: true, selection: true, @@ -373,7 +374,7 @@ trigger: "click" }], span: 24, - value:"211833" + value:"" }, { label: "鐧诲綍璐﹀彿", @@ -548,12 +549,7 @@ props: { label: "postName", value: "id" - }, - rules: [{ - required: true, - message: "璇烽�夋嫨鎵�灞炲矖浣�", - trigger: "click" - }], + } }, ] }, @@ -1034,33 +1030,33 @@ }) }, 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 => { - this.form = res.data.data; - if (this.form.hasOwnProperty("deptId")) { - this.form.deptId = this.form.deptId.split(","); - } - if (this.form.hasOwnProperty("roleId")) { - this.form.roleId = this.form.roleId.split(","); - } - if (this.form.hasOwnProperty("postId")) { - this.form.postId = this.form.postId.split(","); - } - }); - } - const prop = this.findObject(this.option.group, 'tenantId'); - console.log('1',prop) - this.initFlag = true; - done(); - }else { - this.$message.warning('璇烽�夋嫨涓�鏉℃墍灞炵鎴�') + // if(this.treeDeptId){ + if (["edit", "view"].includes(type)) { + getUser(this.form.id).then(res => { + this.form = res.data.data; + if (this.form.hasOwnProperty("deptId")) { + this.form.deptId = this.form.deptId.split(","); + } + if (this.form.hasOwnProperty("roleId")) { + this.form.roleId = this.form.roleId.split(","); + } + if (this.form.hasOwnProperty("postId")) { + this.form.postId = this.form.postId.split(","); + } + }); } + const prop = this.findObject(this.option.group, 'tenantId'); + //console.log('1',prop) + this.initFlag = true; + done(); + // }else { + // this.$message.warning('璇烽�夋嫨涓�鏉℃墍灞炵鎴�') + // } }, currentChange(currentPage) { this.page.currentPage = currentPage; -- Gitblit v1.9.3