Procházet zdrojové kódy

feat: 选择模型时添加一个id作为区分

WANGKANG před 5 měsíci
rodič
revize
9480a6866e

+ 2 - 1
src/views/demo/TargetDetection/index.vue

@@ -515,7 +515,8 @@ const updateWnumsAlgorithmModelTrack = async () => {
 
   for (const item of result.data) {
     if (SubSystem[item['subsystem']] === '目标检测') {
-      item['label'] = item['label'] + '-' + SubSystem[item['subsystem']] + '-' + AlgorithmType[item['type']] + '-' + item['algorithmName']
+      item['label'] =
+        item.value + '_' + item['label'] + '-' + SubSystem[item['subsystem']] + '-' + AlgorithmType[item['type']] + '-' + item['algorithmName']
       enumsAlgorithmModelTrack.value.push(item)
     }
   }

+ 2 - 1
src/views/demo/trackSequence/index.vue

@@ -795,7 +795,8 @@ const updateEnumsAlgorithmModelTrack = async () => {
       continue
     }
     if (SubSystem[item['subsystem']] === '注释轨迹序列' || SubSystem[item['subsystem']] === '目标检测') {
-      item['label'] = item['label'] + '-' + SubSystem[item['subsystem']] + '-' + AlgorithmType[item['type']] + '-' + item['algorithmName']
+      item['label'] =
+        item['value'] + '_' + item['label'] + '-' + SubSystem[item['subsystem']] + '-' + AlgorithmType[item['type']] + '-' + item['algorithmName']
       enumsAlgorithmModelTrack.value.push(item)
     }
   }