diff --git a/src/components/PdfViewer/index.vue b/src/components/PdfViewer/index.vue index fd526d3..50a1255 100644 --- a/src/components/PdfViewer/index.vue +++ b/src/components/PdfViewer/index.vue @@ -152,9 +152,10 @@ }, showCaptureButton() { if (this.selection && this.selection.width > 50 && this.selection.height > 30) { + this.captureButtonStyle = { - left: `${this.startPoint.x - this.scrollPoint.x + 1}px`, - top: `${this.startPoint.y - this.scrollPoint.y + 1}px`, + left: `${this.selection.x - this.scrollPoint.x + 1}px`, + top: `${this.selection.y - this.scrollPoint.y + 1}px`, position: 'absolute', borderRadius: 0, }; diff --git a/src/views/data/task/index.vue b/src/views/data/task/index.vue index cdc056b..13c436b 100644 --- a/src/views/data/task/index.vue +++ b/src/views/data/task/index.vue @@ -8,11 +8,32 @@ - + + diff --git a/types/index.d.ts b/types/index.d.ts index 9af8e34..5d305fe 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -30,3 +30,4 @@ declare let AMap: any; declare let DeviceClientService: any; declare let WebViewService: any; +declare let OCRService: any;