Bläddra i källkod

已绑定任务不再重复调用绑定接口

zhangjie 2 år sedan
förälder
incheckning
51ec1fca05
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5 2
      src/modules/client/components/ScanTaskProcessDialog.vue

+ 5 - 2
src/modules/client/components/ScanTaskProcessDialog.vue

@@ -109,12 +109,13 @@ export default {
         ]
       },
       scaningImageList: [],
-      realScanCount: 0
+      realScanCount: 0,
+      taskScanUserId: ""
     };
   },
   computed: {
     taskBound() {
-      return this.user.id === this.task.scanUserId;
+      return this.user.id === this.taskScanUserId;
     }
   },
   beforeDestroy() {
@@ -130,6 +131,7 @@ export default {
     },
     visibleChange() {
       logger.info(`00进入扫描`);
+      this.taskScanUserId = this.task.scanUserId;
       this.initData();
     },
     close() {
@@ -162,6 +164,7 @@ export default {
           paperScanTaskId: this.task.id,
           userId: this.user.id
         });
+        this.taskScanUserId = this.user.id;
       }
       logger.info(`01开始扫描`);
       this.scaningImageList = [];