|
@@ -107,7 +107,7 @@ import { enumAlgorithmConfigTrackApi } from '@/api/modules/demo/AlgorithmConfigT
|
|
|
|
|
|
import { listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
|
import statusEnums from '@/utils/status'
|
|
|
-import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSystem } from '@/views/demo/utils'
|
|
|
+import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSystem, AlgorithmType2 } from '@/views/demo/utils'
|
|
|
import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
|
|
|
const viewLogRef = ref()
|
|
@@ -115,10 +115,14 @@ const viewLogRef = ref()
|
|
|
const enumsAlgorithmConfigTrack = ref<any>([])
|
|
|
onMounted(async () => {
|
|
|
const result = await enumAlgorithmConfigTrackApi()
|
|
|
- // console.log(result)
|
|
|
- // console.log(result['data'])
|
|
|
- enumsAlgorithmConfigTrack.value = result['data']
|
|
|
- return result['data']
|
|
|
+ enumsAlgorithmConfigTrack.value = []
|
|
|
+ const tmp_data: any = result['data']
|
|
|
+ for (const item of tmp_data) {
|
|
|
+ if (item.subsystem === SubSystem__['注释轨迹序列']) {
|
|
|
+ item['label'] = item['label'] + '-' + SubSystem[item['subsystem']] + '-' + AlgorithmType[item['type']]
|
|
|
+ enumsAlgorithmConfigTrack.value.push(item)
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
const openModelDialog = async row => {
|
|
@@ -354,6 +358,17 @@ const setItemsOptions = () => {
|
|
|
enum: enumsAlgorithmModelTrack
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '选择算法',
|
|
|
+ prop: 'algorithmId',
|
|
|
+ rules: [{ required: true, message: '请选择算法', trigger: 'blur' }],
|
|
|
+ compOptions: {
|
|
|
+ disabled: false,
|
|
|
+ elTagName: 'select',
|
|
|
+ placeholder: '请输入算法',
|
|
|
+ enum: enumsAlgorithmConfigTrack
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
label: '备注',
|
|
|
prop: 'remarks',
|
|
@@ -455,7 +470,10 @@ onMounted(async () => {
|
|
|
enumsAlgorithmModelTrack.value = []
|
|
|
|
|
|
for (const item of result.data) {
|
|
|
- if (SubSystem[item['subsystem']] === '注释轨迹序列') {
|
|
|
+ if (item.type !== AlgorithmType2['预测/推理']) {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ if (SubSystem[item['subsystem']] === '注释轨迹序列' || SubSystem[item['subsystem']] === '目标检测') {
|
|
|
item['label'] = item['label'] + '-' + SubSystem[item['subsystem']] + '-' + AlgorithmType[item['type']] + '-' + item['algorithmName']
|
|
|
enumsAlgorithmModelTrack.value.push(item)
|
|
|
}
|