zhaoke %!s(int64=3) %!d(string=hai) anos
pai
achega
f8a4d9920e
Modificáronse 2 ficheiros con 16 adicións e 8 borrados
  1. 14 6
      src/components/rolelist/index.vue
  2. 2 2
      src/views/systemManagement/index.vue

+ 14 - 6
src/components/rolelist/index.vue

@@ -114,7 +114,8 @@ export default {
       total: "",
       loading: false,
       asyncData: [],
-      msgDatas: []
+      msgDatas: [],
+      OpenGroup: null
     };
   },
   watch: {
@@ -177,11 +178,13 @@ export default {
           if (this.roleType == 'account') {
             this.getRoleData('UserId', 'UserName');
           }
-          if (this.roleType == "roleByUpId") {
-            this.getRoleDataByUpId("roleId");
-          }
-          if (this.roleType == "onlyRole") {
-            this.getRoleData('RoleId', 'RoleName');
+          if (!this.OpenGroup) {
+            if (this.roleType == "roleByUpId") {
+              this.getRoleDataByUpId("roleId");
+            }
+            if (this.roleType == "onlyRole") {
+              this.getRoleData('RoleId', 'RoleName');
+            }
           }
         }
       },
@@ -196,6 +199,11 @@ export default {
       return this.loading || this.noMore;
     },
   },
+  created () {
+    const obj = this.$store.state.app.systemSet;
+    const { OpenGroup } = typeof obj === 'string' ? JSON.parse(obj) : obj;
+    this.OpenGroup = OpenGroup;
+  },
   methods: {
     // 选中
     handleBg (item, i) {

+ 2 - 2
src/views/systemManagement/index.vue

@@ -17,8 +17,8 @@
         <div class="boxList">
           <span class="ListName">是否允许职员关联多账号</span>
           <div class="riaStyle">
-            <el-radio v-model="FormData.UserOfficerMulti" :label="1">是</el-radio>
-            <el-radio v-model="FormData.UserOfficerMulti" :label="0">否</el-radio>
+            <el-radio disabled v-model="FormData.UserOfficerMulti" :label="1">是</el-radio>
+            <el-radio disabled v-model="FormData.UserOfficerMulti" :label="0">否</el-radio>
           </div>
           <div class="lineStyle"></div>
         </div>