|
@@ -19,9 +19,9 @@
|
|
|
</template>
|
|
|
<!-- 表格操作 -->
|
|
|
<template #operation="scope">
|
|
|
- <el-button type="primary" link icon="View" v-if="scope.row.algorithmModelId != null" @click="openModelDialog(scope.row)">
|
|
|
+ <el-button type="primary" link icon="View" v-if="scope.row.algorithmModelId != null" @click="openModelDialog(scope.row.id)">
|
|
|
<!--@click="openStartDialog(scope.row)" -->
|
|
|
- 模型
|
|
|
+ 详情
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -99,7 +99,8 @@ import {
|
|
|
startTrackSequenceApi,
|
|
|
stopTrackSequenceApi,
|
|
|
dowloadTrackSequenceApi,
|
|
|
- getLogTrackSequenceApi
|
|
|
+ getLogTrackSequenceApi,
|
|
|
+ getLDetailTrackSequenceApi
|
|
|
} from '@/api/modules/demo/trackSequence'
|
|
|
import { enumAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
|
|
|
import { getAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
|
|
@@ -125,9 +126,8 @@ onMounted(async () => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const openModelDialog = async row => {
|
|
|
- const algorithmModelId = row.algorithmModelId
|
|
|
- const result: any = await getAlgorithmModelTrackApi(algorithmModelId)
|
|
|
+const openModelDialog = async id => {
|
|
|
+ const result: any = await getLDetailTrackSequenceApi(id)
|
|
|
|
|
|
// console.log(result.data)
|
|
|
|
|
@@ -333,7 +333,7 @@ const setItemsOptions = () => {
|
|
|
compOptions: {
|
|
|
elTagName: 'select',
|
|
|
placeholder: '请选择或者上传数据集',
|
|
|
- enum: getImageDataList,
|
|
|
+ enum: datasetList,
|
|
|
clearable: true
|
|
|
}
|
|
|
},
|
|
@@ -392,8 +392,8 @@ const setItemsOptionsModel = () => {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: '算法类型',
|
|
|
- prop: 'algorithmType',
|
|
|
+ label: '算法名称',
|
|
|
+ prop: 'algorithmName',
|
|
|
rules: [{ required: true, message: '算法不能为空', trigger: 'blur' }],
|
|
|
compOptions: {
|
|
|
disabled: true,
|
|
@@ -445,21 +445,27 @@ const setItemsOptionsModel = () => {
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-const getImageDataList = ref<any>([])
|
|
|
-onMounted(async () => {
|
|
|
+const datasetList = ref<any>([])
|
|
|
+
|
|
|
+const geDatasetList = async (subsystem: string) => {
|
|
|
const qyery = {
|
|
|
- subsystem: SubSystem__['注释轨迹序列'],
|
|
|
+ subsystem: SubSystem__[subsystem],
|
|
|
pageNum: 1,
|
|
|
- pageSize: 25
|
|
|
+ pageSize: 1000
|
|
|
}
|
|
|
const result: any = await listDataSeqApi(qyery)
|
|
|
const data = result['data']['list']
|
|
|
for (const item of data) {
|
|
|
- getImageDataList.value.push({
|
|
|
+ datasetList.value.push({
|
|
|
value: item['inputOssId'],
|
|
|
label: item['name']
|
|
|
})
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+onMounted(async () => {
|
|
|
+ await geDatasetList('注释轨迹序列')
|
|
|
+ await geDatasetList('目标检测')
|
|
|
})
|
|
|
|
|
|
const enumsAlgorithmModelTrack = ref<any>([])
|