zhangjie 2 vuotta sitten
vanhempi
commit
037506cdd3

+ 9 - 7
src/modules/record/components/LibraryStateDialog.vue

@@ -25,12 +25,14 @@
           width="120"
           width="120"
         ></el-table-column>
         ></el-table-column>
         <el-table-column class-name="action-column" label="操作" width="100">
         <el-table-column class-name="action-column" label="操作" width="100">
-          <el-button
-            class="btn-primary"
-            type="text"
-            @click="toRelease(scope.row)"
-            >释放任务</el-button
-          >
+          <template slot-scope="scope">
+            <el-button
+              class="btn-primary"
+              type="text"
+              @click="toRelease(scope.row)"
+              >释放任务</el-button
+            >
+          </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
     </div>
     </div>
@@ -82,7 +84,7 @@ export default {
       if (res !== "confirm") return;
       if (res !== "confirm") return;
 
 
       await releaseUserLibraryTask({
       await releaseUserLibraryTask({
-        paperScanTaskId: this.task.id,
+        paperScanTaskId: this.task.paperScanTaskId,
         bindUserId: row.bindUserId
         bindUserId: row.bindUserId
       });
       });
       this.$message.success("操作成功!");
       this.$message.success("操作成功!");

+ 2 - 2
src/modules/record/components/OcrAreaSet.vue

@@ -58,8 +58,8 @@ export default {
   methods: {
   methods: {
     initCropper() {
     initCropper() {
       const _this = this;
       const _this = this;
-      const defCodeArea = this.setting || {};
-      this.rotate = defCodeArea.rotate || 0;
+      let defCodeArea = { ...this.setting };
+      this.rotate = this.setting.rotate || 0;
       delete defCodeArea.rotate;
       delete defCodeArea.rotate;
 
 
       this.spinStyle = {
       this.spinStyle = {