seimin 1 год назад
Родитель
Сommit
b3c3493169
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      pages/outpatient/outpatientEndTaskType/outpatientEndTaskType.vue

+ 6 - 1
pages/outpatient/outpatientEndTaskType/outpatientEndTaskType.vue

@@ -28,7 +28,7 @@
28 28
     </view>
29 29
 
30 30
     <view class="foot_btn">
31
-      <view class="btn" @click="ok()" v-if="addServiceTasks.length"> 确认追加 </view>
31
+      <view class="btn" @click="ok()" v-if="addServiceTasksComputed.length"> 确认追加 </view>
32 32
     </view>
33 33
   </view>
34 34
 </template>
@@ -51,6 +51,11 @@
51 51
         addServiceTasks: [],
52 52
       };
53 53
     },
54
+    computed: {
55
+      addServiceTasksComputed(){
56
+        return this.addServiceTasks.filter(v => v.checked);
57
+      }
58
+    },
54 59
     methods: {
55 60
       // 追加服务
56 61
       ok(){