|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: Badguy
|
|
|
* @Date: 2022-02-15 11:37:42
|
|
|
- * @LastEditTime: 2022-02-21 18:27:18
|
|
|
+ * @LastEditTime: 2022-02-22 10:47:56
|
|
|
* @LastEditors: your name
|
|
|
* @Description: 编辑账号
|
|
|
* have a nice day!
|
|
@@ -362,7 +362,7 @@ export default {
|
|
|
this.pwdLengthBegin = PwdLengthBegin
|
|
|
this.pwdLengthEnd = PwdLengthEnd
|
|
|
this.openRole && (this.roleType = this.openGroup ? 'roleByUpId' : 'onlyRole')
|
|
|
- this.queryType = this.openRole ? 'group' : 'all'
|
|
|
+ this.queryType = this.openGroup ? 'group' : 'all'
|
|
|
if (this.doesAccountExist) {
|
|
|
this.userId = this.$route.query.userId
|
|
|
this.getAccountInfo()
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
UserId: this.userId
|
|
|
})
|
|
|
if (res.code === 0) {
|
|
|
- console.log(res.returnData)
|
|
|
+ // console.log(res.returnData)
|
|
|
const { UserDesc, UserName, GroupList, TacList, AuthList, RoleList, Status } = res.returnData
|
|
|
this.accountForm.name = UserName
|
|
|
this.accountForm.desc = UserDesc
|
|
@@ -391,12 +391,13 @@ export default {
|
|
|
this.permissionTreeChckedTemp.push(auth)
|
|
|
})
|
|
|
|
|
|
+ this.accountGroupTreeCheckedTemp = []
|
|
|
GroupList &&
|
|
|
GroupList.length &&
|
|
|
GroupList.forEach(group => {
|
|
|
this.accountGroupTreeCheckedList.push(group.GroupId)
|
|
|
+ this.accountGroupTreeCheckedTemp.push(group.GroupId)
|
|
|
})
|
|
|
- this.accountGroupTreeCheckedTemp = this.accountGroupTreeCheckedList
|
|
|
|
|
|
RoleList &&
|
|
|
RoleList.length &&
|
|
@@ -507,8 +508,9 @@ export default {
|
|
|
if (res.code === 0) {
|
|
|
this.$message.success(res.message)
|
|
|
setTimeout(() => {
|
|
|
+ this.$store.dispatch('tagsView/delView', this.$route)
|
|
|
this.$router.push('/account')
|
|
|
- })
|
|
|
+ }, 1000)
|
|
|
} else {
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
@@ -523,8 +525,9 @@ export default {
|
|
|
if (res.code === 0) {
|
|
|
this.$message.success(res.message)
|
|
|
setTimeout(() => {
|
|
|
+ this.$store.dispatch('tagsView/delView', this.$route)
|
|
|
this.$router.push('/account')
|
|
|
- })
|
|
|
+ }, 1000)
|
|
|
} else {
|
|
|
this.$message.error(res.message)
|
|
|
}
|