三七 6 giorni fa
parent
commit
e94e983160
1 ha cambiato i file con 12 aggiunte e 6 eliminazioni
  1. 12 6
      src/views/company/companyRole/index.vue

+ 12 - 6
src/views/company/companyRole/index.vue

@@ -7,7 +7,7 @@
           placeholder="请输入角色名称"
           clearable
           size="small"
-          
+
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
@@ -17,7 +17,7 @@
           placeholder="请输入权限字符"
           clearable
           size="small"
-         
+
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
@@ -27,7 +27,7 @@
           placeholder="角色状态"
           clearable
           size="small"
-          
+
         >
           <el-option
             v-for="dict in statusOptions"
@@ -37,7 +37,7 @@
           />
         </el-select>
       </el-form-item>
-      
+
       <el-form-item>
         <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -259,7 +259,7 @@ export default {
       menuNodeAll: false,
       deptExpand: true,
       deptNodeAll: false,
-   
+
       // 状态数据字典
       statusOptions: [],
       // 数据范围选项
@@ -524,6 +524,9 @@ export default {
                 this.open = false;
                 this.getList();
               }
+            }).finally(() => {
+              this.open = false;
+              this.getList();
             });
           } else {
             this.form.menuIds = this.getMenuAllCheckedKeys();
@@ -533,6 +536,9 @@ export default {
                 this.open = false;
                 this.getList();
               }
+            }).finally(() => {
+              this.open = false;
+              this.getList();
             });
           }
         }
@@ -580,4 +586,4 @@ export default {
     }
   }
 };
-</script>
+</script>