From 1ab7ee9e72cc5d195fd486ba5e51fd6ae7306815 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Fri, 17 Jul 2026 15:40:12 +0800 Subject: [PATCH] =?UTF-8?q?site=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/sys/user.vue | 39 ++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/views/modules/sys/user.vue b/src/views/modules/sys/user.vue index 2ba5a71..9bb5419 100644 --- a/src/views/modules/sys/user.vue +++ b/src/views/modules/sys/user.vue @@ -551,8 +551,8 @@
- - + + @@ -585,11 +585,11 @@ width="50"> + min-width="120" + label="工厂描述"> + + { - this.businessRoleList1 = data.row1 - this.businessRoleList2 = data.row2 + this.businessRoleList1 = data.row1 || [] + this.businessRoleList2 = data.row2 || [] }) - this.businessRoleAddModal = true }, /** * 查询可用角色 @@ -1310,10 +1323,7 @@ export default { } addUserBusinessRole(inData).then(({data}) => { if (data && data.code === 0) { - getBusinessRoleList(this.selectUser).then(({data}) => { - this.businessRoleList1 = data.row1 - this.businessRoleList2 = data.row2 - }) + this.refreshBusinessRoleList() this.businessRoleSelections1 = [] } else { this.$alert(data.msg, '错误', { @@ -1334,10 +1344,7 @@ export default { } delUserBusinessRole(inData).then(({data}) => { if (data && data.code === 0) { - getBusinessRoleList(this.selectUser).then(({data}) => { - this.businessRoleList1 = data.row1 - this.businessRoleList2 = data.row2 - }) + this.refreshBusinessRoleList() this.businessRoleSelections2 = [] } else { this.$alert(data.msg, '错误', {