coys 1 year ago
parent
commit
238e179dd9
1 changed files with 5 additions and 4 deletions
  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() {