|
@@ -261,6 +261,7 @@
|
|
|
</el-dialog>
|
|
|
<ViewLog ref="viewLogRef" />
|
|
|
<PreviewCompareImages ref="previewImagesRef" />
|
|
|
+ <ShowStatisticResult ref="showStatisticResultRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -295,6 +296,7 @@ import {
|
|
|
addTrackSequenceApi,
|
|
|
delTrackSequenceApi,
|
|
|
getLogTrackSequenceApi,
|
|
|
+ getStatisticsResultTrackSequenceApi,
|
|
|
getTrackSequenceApi,
|
|
|
previewPredictResultTrackSequenceModelApi,
|
|
|
startTrackSequenceApi,
|
|
@@ -304,6 +306,7 @@ import {
|
|
|
import {
|
|
|
delToInfraredApi,
|
|
|
getLogToInfraredApi,
|
|
|
+ getStatisticsResultToInfraredApi,
|
|
|
getToInfraredApi,
|
|
|
previewPredictResultToInfraredModelApi,
|
|
|
startToInfraredApi,
|
|
@@ -320,6 +323,7 @@ import {
|
|
|
import { delDataAugmentationApi } from '@/api/modules/demo/dataAugmentation'
|
|
|
import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
import PreviewCompareImages from '@/views/demo/components/PreviewCompareImages.vue'
|
|
|
+import ShowStatisticResult from '@/views/demo/components/ShowStatisticResult.vue'
|
|
|
|
|
|
const startSubTask = async (row: any) => {
|
|
|
let res: any = null
|
|
@@ -387,7 +391,20 @@ const previewSubTask = async (row: any) => {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
-const showStatisticResultSubTask = async (row: any) => {}
|
|
|
+const showStatisticResultRef = ref()
|
|
|
+const showStatisticResultSubTask = async (row: any) => {
|
|
|
+ if (row.subsystem === SubSystem__['可见光转红外']) {
|
|
|
+ showStatisticResultRef.value.get_statistics_result(row.id, getStatisticsResultToInfraredApi)
|
|
|
+ } else if (row.subsystem === SubSystem__['目标检测']) {
|
|
|
+ ElMessage.error('暂不支持该子任务类型')
|
|
|
+ return
|
|
|
+ } else if (row.subsystem === SubSystem__['注释轨迹序列']) {
|
|
|
+ showStatisticResultRef.value.get_statistics_result(row.id, getStatisticsResultTrackSequenceApi)
|
|
|
+ } else {
|
|
|
+ ElMessage.error('暂不支持该子任务类型')
|
|
|
+ return
|
|
|
+ }
|
|
|
+}
|
|
|
const showEvaluateResultSubTask = async (row: any) => {}
|
|
|
const showEvaluateSubTask = async (row: any) => {}
|
|
|
|