From 9c9735224641da5d2f51e0ae844958d1096165f6 Mon Sep 17 00:00:00 2001 From: njdaoyehu Date: Fri, 7 Feb 2025 12:06:32 +0800 Subject: [PATCH] fixed --- src/components/PdfViewer/index.vue | 5 +- src/views/data/task/index.vue | 207 ++++++++++++++++++----------- types/index.d.ts | 1 + 3 files changed, 135 insertions(+), 78 deletions(-) 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;