Jelajahi Sumber

权限项编辑修改

zhongxiaoyu 3 tahun lalu
induk
melakukan
53eac741f8

+ 5 - 1
src/views/authorityManagement/components/authorityPowerEdit.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2021-11-29 11:26:07
- * @LastEditTime: 2022-03-16 17:08:05
+ * @LastEditTime: 2022-03-17 11:14:25
  * @LastEditors: your name
  * @Description:权限项
  * @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityPower.vue
@@ -135,6 +135,7 @@ export default {
       handler (val) {
         const arr = [val];
         this.decompose(arr, this.UpAuthId);
+        this.dataObj.disabled = true
         this.data = [this.dataObj];
         this.checkedKeys = [this.UpAuthId];
       },
@@ -226,6 +227,9 @@ export default {
               RoleInfo.forEach((item) => {
                 if (item.IsSelected) {
                   this.msgDatas.push(item);
+                  if (this.disabled) {
+                    this.disabled = false
+                  }
                 }
               });
               this.checkBoxList = this.msgDatas;