|
@@ -3,7 +3,7 @@
|
|
|
<ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listDataAugmentationApi">
|
|
|
<!-- 表格 header 按钮 -->
|
|
|
<template #tableHeader="scope">
|
|
|
- <el-button type="primary" v-auth="['demo:DataAugmentation:add']" icon="CirclePlus" @click="openDialog(1, '视频去抖动新增')"> 新增 </el-button>
|
|
|
+ <el-button type="primary" v-auth="['demo:DataAugmentation:add']" icon="CirclePlus" @click="openDialog(1, '任务新增')"> 新增 </el-button>
|
|
|
<!-- <el-button type="primary" v-auth="['demo:DataAugmentation:import']" icon="Upload" plain @click="batchAdd"> 导入</el-button>-->
|
|
|
<!-- <el-button type="primary" v-auth="['demo:DataAugmentation:export']" icon="Download" plain @click="downloadFile"> 导出 </el-button>-->
|
|
|
<el-button
|
|
@@ -48,17 +48,6 @@
|
|
|
<FormDialog ref="formDialogRef" />
|
|
|
<ImportExcel ref="dialogRef" />
|
|
|
<el-dialog v-model="dialogVisible" :title="dialogTitle" width="80%">
|
|
|
- <el-form>
|
|
|
- <el-form-item label="帧率">
|
|
|
- <el-select v-model="imageFps" placeholder="选择帧率" style="width: 200px" @change="changeFps">
|
|
|
- <el-option label="0" value="0"></el-option>
|
|
|
- <el-option label="5" value="5"></el-option>
|
|
|
- <el-option label="15" value="15"></el-option>
|
|
|
- <el-option label="30" value="30"></el-option>
|
|
|
- <el-option label="60" value="60"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
<div class="image-dialog" v-if="imageIdx > 0">
|
|
|
<el-image :src="'data:image/png;base64,' + cacheImages[imageIdx].origin" style="width: 45%"></el-image>
|
|
|
<el-image :src="'data:image/png;base64,' + cacheImages[imageIdx].stable" style="width: 45%"></el-image>
|
|
@@ -290,6 +279,7 @@ const batchAdd = () => {
|
|
|
const formDialogRef = ref<InstanceType<typeof FormDialog> | null>(null)
|
|
|
// 打开弹框的功能
|
|
|
const openDialog = async (type: number, title: string, row?: any) => {
|
|
|
+ hyperparameter.value = ''
|
|
|
let res = { data: {} }
|
|
|
if (row?.id) {
|
|
|
res = await getDataAugmentationApi(row?.id || null)
|
|
@@ -456,6 +446,17 @@ const setItemsOptions = () => {
|
|
|
placeholder: '请选择任务类型',
|
|
|
enum: taskType,
|
|
|
onChange: (value: string) => {
|
|
|
+ // itemsOptions.forEach(obj => {
|
|
|
+ // if (obj.prop == "hyperparameterConfiguration") {
|
|
|
+ // hyperparameterConfiguration.forEach(obj1 => {
|
|
|
+ // if (value in obj1) {
|
|
|
+ // obj.compOptions.value = obj1[value]
|
|
|
+ // hyperparameter.value = obj1[value]
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+
|
|
|
+ // }
|
|
|
+ // })
|
|
|
hyperparameterConfiguration.forEach(obj => {
|
|
|
if (value in obj) {
|
|
|
hyperparameter.value = obj[value]
|
|
@@ -475,16 +476,16 @@ const setItemsOptions = () => {
|
|
|
placeholder: '请上传图片集压缩包'
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- label: '算法路径',
|
|
|
- prop: 'algorithmPath',
|
|
|
- rules: [],
|
|
|
- compOptions: {
|
|
|
- type: 'input',
|
|
|
- clearable: true,
|
|
|
- placeholder: ''
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '算法路径',
|
|
|
+ // prop: 'algorithmPath',
|
|
|
+ // rules: [],
|
|
|
+ // compOptions: {
|
|
|
+ // type: 'input',
|
|
|
+ // clearable: true,
|
|
|
+ // placeholder: ''
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
label: '超参配置',
|
|
|
prop: 'hyperparameterConfiguration',
|
|
@@ -492,8 +493,8 @@ const setItemsOptions = () => {
|
|
|
compOptions: {
|
|
|
type: 'input',
|
|
|
clearable: true,
|
|
|
- // placeholder: hyperparameter,
|
|
|
- value: hyperparameter
|
|
|
+ placeholder: hyperparameter
|
|
|
+ // value: hyperparameter
|
|
|
//value: hyperparameterConfiguration[itemsOptions.taskType]
|
|
|
}
|
|
|
},
|