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, '错误', {