From f3ee2226077aaa9b8df0be5f0c23803a79ea5b73 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 8 Jan 2026 15:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 + .env.production | 2 + src/api/device/data-recognition.js | 22 +- src/router/index.js | 5 + .../data-recognition/ExportProgress.vue | 453 ++++++++++++++++++ src/views/device/data-recognition/config.js | 2 +- src/views/device/data-recognition/index.vue | 67 +-- src/views/device/image-recognition/index.vue | 12 +- src/views/device/video/index.vue | 10 +- 9 files changed, 533 insertions(+), 42 deletions(-) create mode 100644 src/views/device/data-recognition/ExportProgress.vue diff --git a/.env.development b/.env.development index 515ac65..ce7df7a 100644 --- a/.env.development +++ b/.env.development @@ -9,6 +9,8 @@ VUE_APP_ENV = 'development' VUE_APP_BASE_API = '/dev-api' VUE_APP_ONLYOFFICE_URL = 'http://36.33.26.201:19840' +# 图片预览路径 +VUE_APP_FILE_URL = 'http://192.168.0.108:58089/smartCar/profile' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production b/.env.production index 659ed14..3927137 100644 --- a/.env.production +++ b/.env.production @@ -5,6 +5,8 @@ VUE_APP_TITLE = 车辆道路监测系统 ENV = 'production' VUE_APP_ENV = 'production' VUE_APP_ONLYOFFICE_URL = 'http://36.33.26.201:19840' +# 图片预览路径 +VUE_APP_FILE_URL = 'http://192.168.0.108:58089/smartCar/profile' # 车辆道路监测系统/生产环境 VUE_APP_BASE_API = '/smart-car-api' diff --git a/src/api/device/data-recognition.js b/src/api/device/data-recognition.js index 34dcb7e..0f60db1 100644 --- a/src/api/device/data-recognition.js +++ b/src/api/device/data-recognition.js @@ -18,10 +18,28 @@ export function dataRecognitionDetailAPI(params) { }) } -// 设备管理->数据识别->导出数据识别数据 +// 设备管理->数据识别->导出数据识别数据(启动导出任务) export function exportDataRecognitionAPI(params) { return request({ - url: '/smartCar/device/dataRecognition/exportDataRecognition', + url: '/smartCar/device/data-recognition/export', + method: 'GET', + params + }) +} + +// 设备管理->数据识别->查询导出进度 +export function getDataRecognitionExportProgressAPI(params) { + return request({ + url: '/smartCar/device/data-recognition/progress', + method: 'GET', + params + }) +} + +// 设备管理->数据识别->下载导出文件 +export function downloadDataRecognitionExportFileAPI(params) { + return request({ + url: '/smartCar/device/data-recognition/download', method: 'GET', params, responseType: 'blob' diff --git a/src/router/index.js b/src/router/index.js index 05549ec..1600cca 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -92,6 +92,11 @@ export const constantRoutes = [ path: '/device/image-recognition/export-progress', component: () => import('@/views/device/image-recognition/ExportProgress'), hidden: true + }, + { + path: '/device/data-recognition/export-progress', + component: () => import('@/views/device/data-recognition/ExportProgress'), + hidden: true } ] diff --git a/src/views/device/data-recognition/ExportProgress.vue b/src/views/device/data-recognition/ExportProgress.vue new file mode 100644 index 0000000..d7a151e --- /dev/null +++ b/src/views/device/data-recognition/ExportProgress.vue @@ -0,0 +1,453 @@ + + + + + + diff --git a/src/views/device/data-recognition/config.js b/src/views/device/data-recognition/config.js index 0fe5926..75a93e4 100644 --- a/src/views/device/data-recognition/config.js +++ b/src/views/device/data-recognition/config.js @@ -13,7 +13,7 @@ export const formLabel = [ export const columnsList = [ { t_props: 'identificationLocation', t_label: '识别地点' }, { t_props: 'identificationTime', t_label: '识别时间' }, - { t_props: 'carColor', t_label: '车牌颜色' }, + { t_slot: 'carColor', t_label: '车牌颜色' }, { t_slot: 'carType', t_label: '车辆类型' }, { t_slot: 'recognitionPhoto', t_label: '识别照片', t_width: '120px' }, ] \ No newline at end of file diff --git a/src/views/device/data-recognition/index.vue b/src/views/device/data-recognition/index.vue index e274c73..f43c303 100644 --- a/src/views/device/data-recognition/index.vue +++ b/src/views/device/data-recognition/index.vue @@ -36,6 +36,11 @@ +