Ver código fonte

fix: bug fix

28968 3 meses atrás
pai
commit
631b76c696

+ 16 - 0
src/views/demo/dataAugmentation/index.vue

@@ -111,6 +111,7 @@ import DataAugmentationFormDialog from '@/components/DataAugmentationFormDialog/
 import PreviewCompareImages from '@/views/demo/components/PreviewCompareImages.vue'
 import { ProTableInstance, ColumnProps, EnumProps } from '@/components/ProTable/interface'
 import ViewLog from '@/views/demo/components/ViewLog.vue'
+
 import {
   listDataAugmentationApi,
   delDataAugmentationApi,
@@ -130,6 +131,8 @@ import {
   getCompareImageApiNew,
   pauseDataAugmentationApi
 } from '@/api/modules/demo/dataAugmentation'
+import { getDictsApi } from '@/api/modules/system/dictData'
+import { any } from 'vue-types'
 // import {  } from '@/api/modules/system/dictData'
 // import { S } from 'vite/dist/node/types.d-aGj9QkWt'
 // import { servicesVersion } from 'typescript'
@@ -228,8 +231,19 @@ onMounted(() => {
     proTable.value?.getTableList()
   }, 5000)
   getTaskType()
+  getZipFileDes()
 })
+const zipFileDes = ref('')
+const getZipFileDes = async () => {
+  let res = await getDictsApi('zip_file_format_description')
 
+  res.data.forEach(item => {
+    // 检查item对象是否包含dict和des属性
+    if (item.dictLabel === '图像增强') {
+      zipFileDes.value = item.remark
+    }
+  })
+}
 const startDataAugmentation = async (params: any) => {
   const res = await startDataAugmentationApi(params.id)
   if (res.code === 200) {
@@ -529,6 +543,7 @@ let itemsOptions: ProForm.ItemsOptions[] = [
   {
     label: '图片集压缩包',
     prop: 'inputOssId',
+    tooltip: zipFileDes,
     rules: [{ required: true, message: '数据压缩包不能为空', trigger: 'change' }],
     compOptions: {
       elTagName: 'file-upload',
@@ -568,6 +583,7 @@ const addParams = params => {
     const obj = JSON.parse(validJsonString)
     obj.forEach(param => {
       model.value[param.agName] = param.defaultValue
+
       itemsOptions.push({
         // hideLabelSuffix: false,
         label: param.name,

+ 14 - 0
src/views/demo/imageMosaic/index.vue

@@ -119,6 +119,7 @@ import {
   getMetricApi,
   pauseDataAugmentationApi
 } from '@/api/modules/demo/dataAugmentation'
+import { getDictsApi } from '@/api/modules/system/dictData'
 // import {  } from '@/api/modules/system/dictData'
 
 const viewLogRef = ref()
@@ -215,7 +216,19 @@ onMounted(() => {
     proTable.value?.getTableList()
   }, 5000)
   getTaskType()
+  getZipFileDes()
 })
+const zipFileDes = ref('')
+const getZipFileDes = async () => {
+  let res = await getDictsApi('zip_file_format_description')
+
+  res.data.forEach(item => {
+    // 检查item对象是否包含dict和des属性
+    if (item.dictLabel === '图像拼接') {
+      zipFileDes.value = item.remark
+    }
+  })
+}
 
 const startDataAugmentation = async (params: any) => {
   const res = await startDataAugmentationApi(params.id)
@@ -514,6 +527,7 @@ let itemsOptions: ProForm.ItemsOptions[] = [
   {
     label: '图片集压缩包',
     prop: 'inputOssId',
+    tooltip: zipFileDes,
     rules: [{ required: true, message: '数据压缩包不能为空', trigger: 'change' }],
     compOptions: {
       elTagName: 'file-upload',

+ 13 - 1
src/views/demo/targetDamageAcess/index.vue

@@ -128,7 +128,7 @@ import {
   pauseDataAugmentationApi
 } from '@/api/modules/demo/dataAugmentation'
 // import {  } from '@/api/modules/system/dictData'
-
+import { getDictsApi } from '@/api/modules/system/dictData'
 const viewLogRef = ref()
 //打开指标窗口查看算法指标信息
 const metricDialogVisible = ref(false)
@@ -217,8 +217,19 @@ onMounted(() => {
     proTable.value?.getTableList()
   }, 5000)
   getTaskType()
+  getZipFileDes()
 })
+const zipFileDes = ref('')
+const getZipFileDes = async () => {
+  let res = await getDictsApi('zip_file_format_description')
 
+  res.data.forEach(item => {
+    // 检查item对象是否包含dict和des属性
+    if (item.dictLabel === '目标毁伤评估') {
+      zipFileDes.value = item.remark
+    }
+  })
+}
 const startDataAugmentation = async (params: any) => {
   const res = await startDataAugmentationApi(params.id)
   if (res.code === 200) {
@@ -516,6 +527,7 @@ let itemsOptions: ProForm.ItemsOptions[] = [
   {
     label: '图片集压缩包',
     prop: 'inputOssId',
+    tooltip: zipFileDes,
     rules: [{ required: true, message: '数据压缩包不能为空', trigger: 'change' }],
     compOptions: {
       elTagName: 'file-upload',

+ 15 - 0
src/views/demo/targetTrack/index.vue

@@ -133,6 +133,7 @@ import {
   getCompareImageApiNew,
   pauseDataAugmentationApi
 } from '@/api/modules/demo/dataAugmentation'
+import { getDictsApi } from '@/api/modules/system/dictData'
 // import { VideoPlayer } from 'vue-video-player'
 // import 'vue-video-player/dist/simple.css'
 
@@ -394,8 +395,21 @@ onMounted(() => {
     proTable.value?.getTableList()
   }, 5000)
   getTaskType()
+  getZipFileDes()
 })
 
+const zipFileDes = ref('')
+const getZipFileDes = async () => {
+  let res = await getDictsApi('zip_file_format_description')
+
+  res.data.forEach(item => {
+    // 检查item对象是否包含dict和des属性
+    if (item.dictLabel === '多目标追踪') {
+      zipFileDes.value = item.remark
+    }
+  })
+}
+
 const startDataAugmentation = async (params: any) => {
   const res = await startDataAugmentationApi(params.id)
   if (res.code === 200) {
@@ -622,6 +636,7 @@ let itemsOptions: ProForm.ItemsOptions[] = [
   {
     label: '图片集压缩包',
     prop: 'inputOssId',
+    tooltip: zipFileDes,
     rules: [{ required: true, message: '数据压缩包不能为空', trigger: 'change' }],
     compOptions: {
       elTagName: 'file-upload',