gaoxiong 1 жил өмнө
parent
commit
d66147cf45

+ 5 - 15
src/views/menu/resumption/detail.vue

@@ -158,7 +158,6 @@
                     inactive-color="#4fc08d"
                     active-color="#ee0a24"
                     size="18"
-                    @change="changeRes(point)"
                   />
                   <span v-else>
                     <van-tag v-if="point.resValue === 1" type="warning">异常</van-tag>
@@ -521,20 +520,6 @@ export default {
       })
       this.openCollapseItems()
     },
-    changeRes(point){
-      if(point.resValue === 0){
-        for (let i = 0; i < this.checks.length; i++) {
-          for (let j = 0; j < this.checks[i].points.length; j++) {
-            let po =  this.checks[i].points[j] ;
-            if(po.pointId === point.pointId){
-              this.checks[i].points[j].rectificationDeadline = null;
-              this.checks[i].points[j].imgs = [];
-              this.checks[i].points[j].resRemark = null;
-            }
-          }
-        }
-      }
-    },
     changeCurrentSwitch(areaId) {
       this.resumptionData.yesPointNums = this.resumptionData.yesPointNums + 1
       this.resumptionData.noPointNums = this.resumptionData.noPointNums - 1
@@ -742,6 +727,11 @@ export default {
           for (let j = 0; j < this.checks[i].points.length; j++) {
             let point =  this.checks[i].points[j];
             let item = this.checks[i];
+            if(point.resValue === 0){
+              this.checks[i].points[j].rectificationDeadline = null;
+              this.checks[i].points[j].imgs = [];
+              this.checks[i].points[j].resRemark = null;
+            }
             if (point.dataStatus === 1) {
               if( point.required === 0){
                 //如果不是必填内容