From 0108dd6068d9cb7d9f275148193ae5dbf8aebd0b Mon Sep 17 00:00:00 2001 From: wxy <714453439@qq.com> Date: Sat, 26 Jul 2025 16:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=8E=9F=E5=A7=8B=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=9B=9E=E6=B5=81=E5=90=8E=E6=9F=A5=E7=9C=8B=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=BC=80=E5=8F=91=E5=92=8C=E5=8A=9F=E8=83=BD=E5=BC=80?= =?UTF-8?q?=E5=8F=91=EF=BC=8C=E6=94=AF=E6=8C=81=E5=AF=B9=E6=89=80=E9=80=89?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E5=85=B3=E8=81=94=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=92=AD=E6=94=BE|=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=85=B8=E5=9E=8B=E5=9B=BE=E7=89=87=E8=AE=BE=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/auto-imports.d.ts | 2 +- .../components/ImageModals.vue | 7 +- .../data-storage/components/PreviewModal.vue | 335 +++++++++ .../data-processing/data-storage/index.vue | 647 +++++++++--------- 4 files changed, 655 insertions(+), 336 deletions(-) create mode 100644 src/views/operation-platform/data-processing/data-storage/components/PreviewModal.vue diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index eab6be6..369aad4 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -70,6 +70,6 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') } diff --git a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/ImageModals.vue b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/ImageModals.vue index 717d59e..4ea7fcc 100644 --- a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/ImageModals.vue +++ b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/ImageModals.vue @@ -183,12 +183,11 @@ const handleSave = async () => { console.log("requestData:",requestData); // 调用接口更新数据 - const response = await axios.put( + const response = await axios.post( `http://pms.dtyx.net:9158/image/setting-info/${editingData.value.partId}`, requestData ) - - if (response.data && response.data.code === 0) { + if (response.data && response.data.code === 200 && response.data.success) { Message.success('图片信息保存成功') emit('save', editingData.value) emit('update:previewModalVisible', false) @@ -240,4 +239,4 @@ const handleSave = async () => { } } } - \ No newline at end of file + diff --git a/src/views/operation-platform/data-processing/data-storage/components/PreviewModal.vue b/src/views/operation-platform/data-processing/data-storage/components/PreviewModal.vue new file mode 100644 index 0000000..8bdee3a --- /dev/null +++ b/src/views/operation-platform/data-processing/data-storage/components/PreviewModal.vue @@ -0,0 +1,335 @@ + + + + + + + + + + + + 关联音频 ({{ audioList.length }}) + + + + + {{ audio.audioId || `音频 ${index + 1}` }} + {{ formatDuration(audio.duration) }} + + + + + {{ currentAudioIndex === index && isPlaying ? '暂停' : '播放' }} + + + + + + + + + + + + + + + + + diff --git a/src/views/operation-platform/data-processing/data-storage/index.vue b/src/views/operation-platform/data-processing/data-storage/index.vue index e038ba8..b7b461e 100644 --- a/src/views/operation-platform/data-processing/data-storage/index.vue +++ b/src/views/operation-platform/data-processing/data-storage/index.vue @@ -1,151 +1,290 @@ - - - 数据入库 - 1号机组叶片A型检查 - + + - - - - - - - - - - - - - - 将文件拖拽到此处,或点击上传 - 支持上传任意(不超过100MB)格式文件 - - - - + + + + + - - - - 开始上传 - - 清空文件 - 批量导入... - + + + + + + 项目: + + - - - 已上传数据 - + + 机组: + + + + + + 部件: + + + + + + + + - - - - {{ record.type }} - - + :scroll="{ x: '100%', y: 'calc(100vh - 380px)' }" + :loading="loading.image" + class="scrollable-table" + > + + + + {{ record.type }} + + - - - {{ formatFileSize(record.size) }} - + + + {{ record.imageTypeLabel}} + - - - - {{ record.status }} - - + + + + {{ record.preTreatment }} + + - - - - 预览 - 删除 - - - - + + + + 预览 + 删除 + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - 文件名:{{ previewFileData?.name }} - 文件类型:{{ previewFileData?.type }} - 文件大小:{{ formatFileSize(previewFileData?.size) }} - - - +
将文件拖拽到此处,或点击上传
支持上传任意(不超过100MB)格式文件
文件名:{{ previewFileData?.name }}
文件类型:{{ previewFileData?.type }}
文件大小:{{ formatFileSize(previewFileData?.size) }}