|
@@ -213,7 +213,7 @@ export default {
|
|
|
this.accountGroupTreeCheckedTemp = [this.GroupUpId]
|
|
|
this.groupIds.push(this.GroupUpId)
|
|
|
this.queryIds.push(this.GroupUpId)
|
|
|
- this.doesGroupExist && (this.GroupId = this.$route.query.GroupId)
|
|
|
+ this.doesGroupExist && (this.GroupId = Number(this.$route.query.GroupId))
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.doesGroupExist) {
|
|
@@ -277,16 +277,17 @@ export default {
|
|
|
},
|
|
|
// 获取当前勾选的岗位
|
|
|
getAccountGroupChecked(arr) {
|
|
|
- if (arr && arr.length && arr[0] !== -1) {
|
|
|
+ if (arr && arr.length === 1 && arr[0] !== -1) {
|
|
|
+ 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.roleType = 'onlyRole'
|
|
|
this.queryType = 'all'
|
|
|
}
|
|
|
},
|