coys 1 anno fa
parent
commit
238e179dd9
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      src/views/resumptionEvaluate/evaluate/index.vue

+ 5 - 4
src/views/resumptionEvaluate/evaluate/index.vue

@@ -345,15 +345,16 @@ export default {
       this.getList();
     },
     getRolesByOrg() {
-      if(!this.queryParams.orgType){
-        this.planRoles=[]
-        this.queryParams.roleId=[]
-      }
+      
       let params = {
         orgType:this.queryParams.orgType|| null,
       };
       findAllRole(params).then((res) => {
         this.planRoles = res.data;
+        if(!this.queryParams.orgType){
+        this.planRoles=[]
+        this.queryParams.roleId=[]
+      }
       });
     },
     cleanExecOrgList() {