Prechádzať zdrojové kódy

修复选择检查、履职要点缺陷

jiawuxian 2 rokov pred
rodič
commit
cf00186a3b

+ 1 - 0
src/views/resumption/ruleManager/dialog.select.point.vue

@@ -6,6 +6,7 @@
     :close-on-click-modal="false"
     width="55%"
     top="10vh"
+    destroy-on-close
     append-to-body
   >
     <div class="el-dialog-div">

+ 7 - 3
src/views/resumption/taskManager/index.vue

@@ -40,7 +40,7 @@
           <el-form-item label="履职角色" prop="executeRole">
             <el-select
               v-model="queryParams.executeRole"
-              placeHolder="请选择履职角色"
+              placeholder="请选择履职角色"
               clearable
             >
               <el-option
@@ -54,7 +54,7 @@
           <el-form-item label="履职周期" prop="executeCycle">
             <el-select
               v-model="queryParams.executeCycle"
-              placeHolder="请选择履职周期"
+              placeholder="请选择履职周期"
               @change="changeType($event)"
             >
               <el-option
@@ -68,7 +68,7 @@
           <el-form-item label="履职进度" prop="status">
             <el-select
               v-model="queryParams.status"
-              placeHolder="请选择履职进度"
+              placeholder="请选择履职进度"
               clearable
             >
               <el-option
@@ -730,6 +730,10 @@ export default {
         })
         .then((r) => {
           this.planList = r.data;
+          if(!this.planList.find(p=>p.id==this.queryParams.planId)){
+            
+            this.queryParams.planId=null
+          }
         });
     },
     async changeType(selectValue) {

+ 4 - 3
src/views/safetycheck/ruleManager/dialog.select.point.vue

@@ -1,9 +1,10 @@
 <template>
-  <el-dialog
+  <DialogCom
     title="选择检查要点"
     :visible.sync="isShow"
     class="g-dialog-select-safe-check"
     :close-on-click-modal="false"
+    destroy-on-close
     width="55%"
     top="10vh"
     append-to-body
@@ -62,7 +63,7 @@
       <el-button @click="onHide">关闭</el-button>
       <el-button type="primary" @click="onSubmit">确定</el-button>
     </div>
-  </el-dialog>
+  </DialogCom>
 </template>
 <script>
 import GSearchTable from "@/components/table/gx.search.table.vue";
@@ -84,7 +85,7 @@ export default {
       handler(v){
         if(v.ruleId){
           this.$refs.st.search();    
-        }       
+        }    
       }
     }
   },