소스 검색

状态修改

lucw 7 달 전
부모
커밋
ab1c662731
2개의 변경된 파일14개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 2
      src/views/maintenance/components/programRulesDialog.vue
  2. 12 3
      src/views/maintenance/patrol/plan/index.vue

+ 2 - 2
src/views/maintenance/components/programRulesDialog.vue

@@ -544,7 +544,7 @@ export default {
     },
     autoOrderChange(val) {
       if (val == 0) {
-        this.addForm.executorId = '';
+        this.addForm.executorId = [];
         this.addForm.groupId = '';
       }
     },
@@ -702,7 +702,7 @@ export default {
         // this._getMatterRulesDetails(res.ruleId);
         this.$set(this.addForm, 'code', res.data.code);
         this.$set(this.addForm, 'urgent', JSON.stringify(res.data.urgent));
-        this.$set(this.addForm, 'executorId', res.data.executorId.split(','));
+        this.$set(this.addForm, 'executorId', res.data.executorId.split(',').filter((i) => i));
         this.$set(this.addForm, 'imageUrl', {});
         console.log(this.rootData);
         if(res.data.groupId){

+ 12 - 3
src/views/maintenance/patrol/plan/index.vue

@@ -43,14 +43,18 @@
           <el-link
             type="primary"
             :underline="false"
-            v-if="row.cycleType == 0 || row.planStatus == 4"
+            v-if="
+              row.cycleType == 0 || row.planStatus == 4 || row.planStatus == 0
+            "
             icon="el-icon-edit"
             @click="openAdd('编辑巡点检计划配置', row)"
           >
             编辑
           </el-link>
           <el-link
-            v-if="row.cycleType == 0 || row.planStatus == 4"
+            v-if="
+              row.cycleType == 0 || row.planStatus == 4 || row.planStatus == 0
+            "
             type="primary"
             :underline="false"
             icon="el-icon-edit"
@@ -59,7 +63,12 @@
             派单
           </el-link>
           <el-link
-            v-if="row.planStatus != 2 && row.planStatus != 3 && row.planStatus != 4"
+            v-if="
+              row.planStatus != 2 &&
+              row.planStatus != 3 &&
+              row.planStatus != 4 &&
+              row.planStatus != 0
+            "
             type="primary"
             :underline="false"
             icon="el-icon-edit"