Jelajahi Sumber

修改账号编辑/账号组编辑

zhongxiaoyu 3 tahun lalu
induk
melakukan
753ccf2e2a

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

@@ -65,9 +65,9 @@
             <div class="part">
               <RoleList
                 title="角色列表"
-                :checkBoxList="roleListCheckedList"
                 :roleType="roleType"
-                :GroupIds="GroupIds"
+                :GroupIds="accountGroupTreeCheckedTemp"
+                :checkBoxList="roleListCheckedList"
                 :number="8"
                 :active="true"
                 @checkChange="getRoleListChecked"
@@ -203,15 +203,15 @@ export default {
     } else {
       obj = this.systemSet
     }
-    console.log(obj)
+    // console.log(obj)
     const { OpenRole } = obj
     this.openRole = OpenRole
-    this.accountGroupTreeCheckedTemp.push(this.GroupUpId)
     this.queryType = this.GroupUpId === -1 ? 'all' : 'group'
+    this.accountGroupTreeCheckedTemp = [this.GroupUpId]
   },
   mounted() {
-    this.accountGroupTreeCheckedList = [this.GroupUpId]
     this.roleType = 'roleByUpId'
+    this.accountGroupTreeCheckedList = [this.GroupUpId]
     if (this.doesGroupExist) {
       this.GroupId = this.$route.query.GroupId
       this.getGroupDetails()

+ 1 - 5
src/views/accountManagement/components/accountEdit.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: Badguy
  * @Date: 2022-02-15 11:37:42
- * @LastEditTime: 2022-02-21 11:47:11
+ * @LastEditTime: 2022-02-21 15:13:47
  * @LastEditors: your name
  * @Description: 编辑账号
  * have a nice day!
@@ -139,7 +139,6 @@
             <AccountGroupTree
               title="所属账号组"
               nodekey="GroupId"
-              :type="false"
               :default-props="accountGroupTreeProps"
               :checked-keys="accountGroupTreeCheckedList"
               @getTreeData="getAccountGroupChecked"
@@ -188,7 +187,6 @@
             <AccountGroupTree
               title="所属账号组"
               nodekey="GroupId"
-              :type="false"
               :default-props="accountGroupTreeProps"
               :checked-keys="accountGroupTreeCheckedList"
               @getTreeData="getAccountGroupChecked"
@@ -370,8 +368,6 @@ export default {
     this.pwdLengthBegin = PwdLengthBegin
     this.pwdLengthEnd = PwdLengthEnd
     this.queryType = OpenGroup ? 'group' : 'all'
-  },
-  mounted() {
     this.openRole && (this.roleType = this.openGroup ? 'roleByUpId' : 'onlyRole')
     if (this.doesAccountExist) {
       this.userId = this.$route.query.userId