From 9ada19d01d0cb6aaa0dec99e24bf7a9b511750bf Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期六, 06 一月 2024 15:55:31 +0800 Subject: [PATCH] 审核页面和编辑用户页面修改及接口联调 --- src/views/unifiedManage/userLevel/index.vue | 39 +++++++++++++++++++-------------------- 1 files changed, 19 insertions(+), 20 deletions(-) diff --git a/src/views/unifiedManage/userLevel/index.vue b/src/views/unifiedManage/userLevel/index.vue index 94d452e..6a5a152 100644 --- a/src/views/unifiedManage/userLevel/index.vue +++ b/src/views/unifiedManage/userLevel/index.vue @@ -59,9 +59,8 @@ </div> </div> </div> - <div class="overSpread" v-show="isopen"></div> <!-- 娣诲姞/缂栬緫 --> - <AddUserLevel :isopen="isopen" @shutdown="shutdown" :editRow="editRow" /> + <AddUserLevel v-if="editConfig.visible" :edit-common-config="editConfig" /> </div> </template> @@ -71,7 +70,18 @@ import { getListRole, getUserList, roleChange, deleteRole } from "@/api/unifiedManage/userLevel" export default { name: "UserLevel", - props: {}, + props: { + isDetail: { + type: Boolean, + default: false + }, + addConfig: { + type: Object, + default: () => { + return {} + } + } + }, mixins: [pageMixin], components: { AddUserLevel }, computed: {}, @@ -114,7 +124,6 @@ ], showBottomCol: ["鐢ㄦ埛鍚�", "濮撳悕", "鎵嬫満鍙�", "宀椾綅鑱屽姟", "鐘舵��"], isopen: false, - editRow: {}, editConfig: { visible: false, title: "鏂板缓", @@ -177,11 +186,9 @@ }, // 鏂板缓 addBtnClick() { - // this.editConfig.title = "鏂板缓" - // this.editConfig.visible = true - // this.editConfig.infomation = {} - this.isopen = true - this.editRow = {} + this.editConfig.title = "鏂板缓" + this.editConfig.visible = true + this.editConfig.infomation = {} }, // 鎼滅储 searchClick(val) { @@ -221,11 +228,9 @@ // 缂栬緫 handleClick(val) { console.log(val) - // this.editConfig.title = "缂栬緫" - // this.editConfig.infomation = { ...val } - // this.editConfig.visible = true - this.editRow = val - this.isopen = true + this.editConfig.title = "缂栬緫" + this.editConfig.infomation = { ...val } + this.editConfig.visible = true }, // 鍒犻櫎绛夌骇 delClick(row) { @@ -247,12 +252,6 @@ }) }) .catch(() => {}) - }, - shutdown() { - this.isopen = false - setTimeout(() => { - this.getData() - }, 200) }, // 琛岀偣鍑� tableRowClick(row) { -- Gitblit v1.8.0