|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: Badguy
|
|
|
* @Date: 2022-02-15 11:37:42
|
|
|
- * @LastEditTime: 2022-02-21 11:16:55
|
|
|
+ * @LastEditTime: 2022-02-21 11:47:11
|
|
|
* @LastEditors: your name
|
|
|
* @Description: 编辑账号
|
|
|
* have a nice day!
|
|
@@ -349,7 +349,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['systemSet']),
|
|
|
+ ...mapGetters(['systemSet', 'authArrs']),
|
|
|
pageTitle() {
|
|
|
return this.doesAccountExist ? '编辑账号' : '新增账号'
|
|
|
}
|
|
@@ -393,7 +393,7 @@ export default {
|
|
|
this.accountForm.name = UserName
|
|
|
this.accountForm.desc = UserDesc
|
|
|
this.accountForm.status = Status
|
|
|
- this.$store.state.auth.authList = AuthList
|
|
|
+ this.$store.dispatch('auth/changeAuthList', AuthList)
|
|
|
|
|
|
AuthList &&
|
|
|
AuthList.length &&
|
|
@@ -498,7 +498,6 @@ export default {
|
|
|
AuthList,
|
|
|
GroupList: this.accountGroupTreeCheckedTemp.map(groupId => ({ GroupId: groupId })),
|
|
|
RoleList: this.roleListCheckedTemp,
|
|
|
- Status: this.accountForm.status || 0,
|
|
|
TacList: this.loginPolicyCheckedTemp,
|
|
|
UserDesc: this.accountForm.desc,
|
|
|
UserName: this.accountForm.name,
|
|
@@ -507,7 +506,8 @@ export default {
|
|
|
if (this.doesAccountExist) {
|
|
|
this.saveEditAccount({
|
|
|
...params,
|
|
|
- UserId: this.userId
|
|
|
+ UserId: this.userId,
|
|
|
+ Status: this.accountForm.status || 0
|
|
|
})
|
|
|
} else {
|
|
|
this.saveAddAccount(params)
|