gaoxiong 1 rok temu
rodzic
commit
7add66f022
1 zmienionych plików z 8 dodań i 7 usunięć
  1. 8 7
      src/views/menu/resumption/detail.vue

+ 8 - 7
src/views/menu/resumption/detail.vue

@@ -103,9 +103,10 @@
           <van-col span="8">
             <van-cell>
               <div class="okAll">
-                <van-radio-group v-if="enable" v-model="selectRadio" @change="changeSwitch">
+                <van-button type="default" icon="checked" size="small" @click="changeSwitch">一键正常</van-button>
+                <!--<van-radio-group v-if="enable" v-model="selectRadio" @change="changeSwitch">
                   <van-radio name="1" icon-size="20px">一键正常</van-radio>
-                </van-radio-group>
+                </van-radio-group>-->
               </div>
             </van-cell>
           </van-col>
@@ -523,15 +524,15 @@ export default {
       let num = 0
       for (let i = 0; i < this.checks.length; i++) {
         for (let j = 0; j < this.checks[i].points.length; j++) {
-          this.checks[i].points[j].dataStatus = 2
-          num++
+          if(this.checks[i].areaId === this.areaId){
+            this.checks[i].points[j].dataStatus = 2
+            num++
+          }
         }
       }
       this.resumptionData.yesPointNums = num
       this.resumptionData.noPointNums = 0
-      this.areas.forEach((item, index) => {
-        this.validateArea(item.areaId)
-      })
+      this.validateAreaAll();
       this.openCollapseItems()
     },
     validateAreaAll() {