|
@@ -211,11 +211,11 @@ export default {
|
|
|
const { OpenRole } = obj
|
|
|
this.openRole = OpenRole
|
|
|
this.accountGroupTreeCheckedTemp = [this.GroupUpId]
|
|
|
- this.groupIds.push(this.GroupUpId)
|
|
|
this.queryIds.push(this.GroupUpId)
|
|
|
this.doesGroupExist && (this.GroupId = Number(this.$route.query.GroupId))
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.groupIds.push(this.GroupUpId)
|
|
|
if (this.doesGroupExist) {
|
|
|
this.getGroupDetails()
|
|
|
} else {
|
|
@@ -281,13 +281,14 @@ export default {
|
|
|
console.log(arr)
|
|
|
const GroupIds = arr.map(item => item.GroupId)
|
|
|
this.accountGroupTreeCheckedTemp = GroupIds
|
|
|
- // this.roleType = 'roleByUpId'
|
|
|
+ this.roleType = 'roleByUpId'
|
|
|
this.groupIds = GroupIds
|
|
|
this.queryType = 'group'
|
|
|
this.queryIds = GroupIds
|
|
|
} else {
|
|
|
this.accountGroupTreeCheckedTemp = [-1]
|
|
|
// this.roleType = 'onlyRole'
|
|
|
+ this.groupIds = []
|
|
|
this.queryType = 'all'
|
|
|
}
|
|
|
},
|