diff --git a/src/router/route.ts b/src/router/route.ts index f1a454d..ed38755 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -765,12 +765,6 @@ export const systemRoutes: RouteRecordRaw[] = [ redirect: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm', meta: { title: '数据分析与图像检测', icon: 'scan', hidden: false }, children: [ - { - path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/tree-visualization', - name: 'TreeVisualization', - component: () => import('@/views/project-operation-platform/data-processing/key-info-extraction/index.vue'), - meta: { title: '可视化管理', icon: 'cluster', hidden: false }, - }, { path: '/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm', name: 'DefectAlgorithm', diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 369aad4..eab6be6 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, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' import('vue') } diff --git a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/DefectDetailsForm.vue b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/DefectDetailsForm.vue index 5433b36..0c3cc26 100644 --- a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/DefectDetailsForm.vue +++ b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/DefectDetailsForm.vue @@ -12,6 +12,14 @@ + + + + + {{ type.label }} - - - - - + + +
+ + + + + + + + + + +
({ defectLevelLabel: '', defectPosition: '', description: '', - repairIdea: '建议进行进一步检查' + repairIdea: '建议进行进一步检查', + axialDimension: 0, // 初始为null + chordDimension: 0 // 初始为null }) // 获取缺陷类型列表 @@ -326,6 +366,7 @@ const handleSubmit = async () => { } // 触发提交事件 + console.log("form:",form); emit('submit', form, props.annotation) } catch (error) { @@ -434,6 +475,25 @@ onMounted(() => { } } +.dimension-fields { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 16px; + margin-bottom: 16px; + + :deep(.arco-input-number) { + width: 100%; + + .arco-input-number-step { + width: 32px; + } + + .arco-input-number-input { + text-align: center; + } + } +} + :deep(.arco-form-item) { margin-bottom: 16px; } 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 new file mode 100644 index 0000000..717d59e --- /dev/null +++ b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/components/ImageModals.vue @@ -0,0 +1,243 @@ + + + + + \ No newline at end of file diff --git a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/hooks/useIndustrialImage.ts b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/hooks/useIndustrialImage.ts index 435f6d4..71ef624 100644 --- a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/hooks/useIndustrialImage.ts +++ b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/hooks/useIndustrialImage.ts @@ -349,6 +349,7 @@ export function useIndustrialImage() { } const handleImagePreview = (image: any) => { + console.log("image:",image); previewImage.value = image previewModalVisible.value = true } diff --git a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/index.vue b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/index.vue index da19d81..0da5ba6 100644 --- a/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/index.vue +++ b/src/views/construction-operation-platform/implementation-workflow/data-processing/intelligent-inspection/defect-algorithm/index.vue @@ -145,7 +145,14 @@ - + @@ -158,6 +165,7 @@ import ProjectTree from './components/ProjectTree.vue' import ImagePreview from './components/ImagePreview.vue' import ImageCanvas from '@/views/project-operation-platform/data-processing/industrial-image/components/ImageCanvas.vue' import IndustrialImageList from '@/components/IndustrialImageList/index.vue' +import ImageModals from './components/ImageModals.vue' import RecognitionResults from './components/RecognitionResults.vue' import DefectListPanel from './components/DefectListPanel.vue' import DefectDetailsForm from './components/DefectDetailsForm.vue' @@ -212,6 +220,19 @@ const loadDefectLevels = async () => { } } +// 添加保存成功处理 +const handleSaveImageSuccess = (updatedData: any) => { + // 可以在这里更新本地数据或执行其他操作 + Message.success('图片信息已更新') + // 如果需要更新selectedImage或previewImage + if (selectedImage.value && selectedImage.value.id === updatedData.id) { + selectedImage.value = { ...selectedImage.value, ...updatedData } + } + if (previewImage.value && previewImage.value.id === updatedData.id) { + previewImage.value = { ...previewImage.value, ...updatedData } + } +} + // 使用组合式函数 const { // 数据 @@ -594,8 +615,8 @@ const handleDefectFormSubmit = async (formData: any, annotation: Annotation) => const defectData = { attachId: attachId, attachPath: '', - // axial: 0, - // chordwise: 0, + axial: formData.axialDimension, + chordwise: formData.chordDimension, // defectCode: `MANUAL_${Date.now()}`, defectId: '', defectLevel: formData.defectLevel,