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 @@
新 增
- OCR识别
-
+ OCR识别
+
- 下发数据
- 同步数据
+ 下发数据
+ 同步数据
@@ -23,7 +44,7 @@
icon: 'clarity:note-edit-line',
onClick: handleEdit.bind(null, record),
divider: true,
- disabled: record.state !== 0
+ disabled: record.state !== 0,
},
{
label: '删除',
@@ -49,46 +70,54 @@
icon: 'ant-design:download-outlined',
onClick: handleDownload.bind(null, record),
divider: true,
- disabled: record.state !== 0 || !getDeviceConnected(record.deviceSn)
+ disabled: record.state !== 0 || !getDeviceConnected(record.deviceSn),
},
{
label: '同步数据',
icon: 'ant-design:sync-outlined',
onClick: handleSync.bind(null, record),
divider: true,
- disabled: !getDeviceConnected(record.deviceSn)
+ disabled: !getDeviceConnected(record.deviceSn),
},
]"
/>
-
+
+
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;