liyongli 3 жил өмнө
parent
commit
4e3565f666
1 өөрчлөгдсөн 5 нэмэгдсэн , 3 устгасан
  1. 5 3
      src/views/Queue.vue

+ 5 - 3
src/views/Queue.vue

@@ -28,7 +28,7 @@
           >
             跳过
           </van-button>
-          <van-button v-if="i === 0" type="info" size="small" @click="nextItem">
+          <van-button type="info" size="small" @click="() => nextItem(item.id)">
             完成
           </van-button>
           <van-button
@@ -337,12 +337,14 @@ export default {
         });
       });
     },
-    nextItem() {
+    nextItem(id) {
       Dialog.confirm({
         message: "该服务是否已完成?",
         confirmButtonColor: "#2a7ef4",
       }).then(() => {
-        nextone().then(() => {
+        nextone({
+            id
+        }).then(() => {
           this.reloadOrder();
         });
       });