|
@@ -45,6 +45,13 @@
|
|
|
<span style="min-width: 80px">任务文件</span>
|
|
|
<file @update:model-value="updateFiles" :file-size="20" :file-type="['mat']"></file>
|
|
|
</el-container>
|
|
|
+ <el-container v-for="(item, index) in jsonParams" :key="index" style=" align-items: center;margin-top: 5px">
|
|
|
+ <span style="min-width: 80px; max-width: 150px">{{ item.name }}</span>
|
|
|
+ <el-tooltip :content="item.prompt" placement="top">
|
|
|
+ <el-icon><InfoFilled /></el-icon>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-input v-model="item.value" :placeholder="item.defaultValue" style="max-width: 300px" />
|
|
|
+ </el-container>
|
|
|
</el-container>
|
|
|
<span class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitCreateTask">确 定</el-button>
|
|
@@ -56,7 +63,7 @@
|
|
|
<el-container direction="vertical">
|
|
|
<el-header>第 {{ dataIndex + 1 }} 张, 共 {{ resultData.length }} 张</el-header>
|
|
|
<el-container direction="horizontal" style="margin-top: 20px">
|
|
|
- <div style=" place-items: center center;width: 100px">帧率</div>
|
|
|
+ <div style="place-items: center center; width: 100px">帧率</div>
|
|
|
<el-input v-model="frameSpeed" style="max-width: 200px" />
|
|
|
<el-button @click="onSpeedChange" style="margin-left: 20px">确定</el-button>
|
|
|
</el-container>
|
|
@@ -102,6 +109,7 @@ import File from '@/components/Upload/File.vue'
|
|
|
import { getDictsApi } from '@/api/modules/system/dictData'
|
|
|
import http from '@/api'
|
|
|
import ResultDialog from '@/components/ResultDialog/ResultDialog.vue'
|
|
|
+import { getJsonParams, getOneAlgorithmConfigApi } from '@/api/modules/demo/algorithmConfig'
|
|
|
|
|
|
const ResultDialogRef = ref<InstanceType<typeof ResultDialog> | null>(null)
|
|
|
const showResult = async function (row) {
|
|
@@ -176,7 +184,11 @@ const execute = function (row) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const createTask = function () {
|
|
|
+const jsonParams = ref([])
|
|
|
+const createTask = async function () {
|
|
|
+ const res = await getOneAlgorithmConfigApi({ algorithmName: '多源信息融合' })
|
|
|
+ // console.log(res)
|
|
|
+ jsonParams.value = JSON.parse(res.data.parameters)
|
|
|
createTaskDialogVisible.value = true
|
|
|
params.value = {
|
|
|
preprocessPath: null,
|
|
@@ -192,7 +204,7 @@ const submitCreateTask = function () {
|
|
|
ElMessage.error('请输入任务名称!')
|
|
|
return
|
|
|
}
|
|
|
- addTraceMergeApi(params.value)
|
|
|
+ addTraceMergeApi({ parameters: JSON.stringify(getJsonParams(jsonParams.value)), ...params.value })
|
|
|
.then(res => {
|
|
|
console.log(res)
|
|
|
if (res.code === 200) {
|