From 89b9ba781ef47b9fa8cd3d850bff06fb567a69cb Mon Sep 17 00:00:00 2001 From: jinna Date: Thu, 6 Feb 2025 17:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E4=B8=8A=E7=BA=A7?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=95=B0=E6=8D=AE=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user.vue | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/views/system/user.vue b/src/views/system/user.vue index 483cb91..9ae2483 100644 --- a/src/views/system/user.vue +++ b/src/views/system/user.vue @@ -737,6 +737,17 @@ export default { // loading(); // return false // } + if(row.roleId == "1846419477876510721"){ + const column = this.findObject(this.option.group, "deptId"); + column.dicData.map(item =>{ + item.children && item.children.map(item1 =>{ + if(item1.id == row.deptId){ + row.parentDeptId = item.id + row.parentDeptName = item.title + } + }) + }) + } add(row).then(() => { this.initFlag = false; this.onLoad(this.page); @@ -754,6 +765,17 @@ export default { row.deptId = func.join(row.deptId); row.roleId = func.join(row.roleId); row.postId = func.join(row.postId); + if(row.roleId == "1846419477876510721"){ + const column = this.findObject(this.option.group, "deptId"); + column.dicData.map(item =>{ + item.children && item.children.map(item1 =>{ + if(item1.id == row.deptId){ + row.parentDeptId = item.id + row.parentDeptName = item.title + } + }) + }) + } if (row.deptId.split(',').length > 1) { this.$message({ type: "error",