Browse Source

账号组管理修改

zhongxiaoyu 3 years ago
parent
commit
42c2042cb3
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/views/accountGroupManagement/components/accountGroupEdit.vue

+ 5 - 4
src/views/accountGroupManagement/components/accountGroupEdit.vue

@@ -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'
       }
     },