|
@@ -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,
|