Преглед изворни кода

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

zhangjie пре 2 година
родитељ
комит
51ec1fca05
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      src/modules/client/components/ScanTaskProcessDialog.vue

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

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