Przeglądaj źródła

修改计划查询页面 联动

coys 1 rok temu
rodzic
commit
cca8085a1e
1 zmienionych plików z 12 dodań i 7 usunięć
  1. 12 7
      src/views/resumptionEvaluate/evaluate/index.vue

+ 12 - 7
src/views/resumptionEvaluate/evaluate/index.vue

@@ -21,7 +21,6 @@
               size="small"
               :inline="true"
               v-show="showSearch"
-
             >
               <el-form-item label="外包评价名称" prop="evaluateName">
                 <el-input
@@ -83,7 +82,6 @@
                     </el-option>
                   </el-select>
                 </el-form-item>
-
               </el-form-item>
             </el-form>
 
@@ -98,7 +96,7 @@
                   >搜索</el-button
                 >
                 <el-button
-                type="primary"
+                  type="primary"
                   icon="el-icon-refresh"
                   size="mini"
                   @click="resetQuery"
@@ -112,7 +110,6 @@
                   v-hasPermi="['system:user:add']"
                   >新增</el-button
                 >
-
               </el-col>
             </el-row>
           </div>
@@ -157,7 +154,6 @@
               label="操作"
               width="200"
               fixed="right"
-
               class-name="small-padding fixed-width"
             >
               <template slot-scope="{ row }">
@@ -166,7 +162,11 @@
                   size="mini"
                   @click="publishHandler(row)"
                   type="text"
-                  :class="row.isDistribute == 0? 'el-icon-arrow-down':'el-icon-top-left'"
+                  :class="
+                    row.isDistribute == 0
+                      ? 'el-icon-arrow-down'
+                      : 'el-icon-top-left'
+                  "
                   >{{ row.isDistribute == "0" ? "" : "取消" }}发布</el-button
                 >
                 <el-button
@@ -345,8 +345,12 @@ export default {
       this.getList();
     },
     getRolesByOrg() {
+      if(!this.queryParams.orgType){
+        this.planRoles=[]
+        this.queryParams.roleId=[]
+      }
       let params = {
-        orgType: null,
+        orgType:this.queryParams.orgType|| null,
       };
       findAllRole(params).then((res) => {
         this.planRoles = res.data;
@@ -355,6 +359,7 @@ export default {
     cleanExecOrgList() {
       this.execOrgIds = null;
       this.queryParams.execOrgList = [];
+      this.getRolesByOrg();
     },
     handleRolesChange(val) {
       this.selectedValues = val.toString().split(",");