|
@@ -95,7 +95,7 @@
|
|
</ProTable>
|
|
</ProTable>
|
|
<FormDialog ref="formDialogRef" />
|
|
<FormDialog ref="formDialogRef" />
|
|
<ImportExcel ref="dialogRef" />
|
|
<ImportExcel ref="dialogRef" />
|
|
- <PreviewImages :visible="dialogVisible" :urls="imageUrls" @close="dialogVisible = false" />
|
|
|
|
|
|
+ <PreviewCompareImages ref="previewImagesRef" />
|
|
<ViewLog ref="viewLogRef" :get-log-api="getLogToInfraredApi" />
|
|
<ViewLog ref="viewLogRef" :get-log-api="getLogToInfraredApi" />
|
|
<el-dialog v-model="showModelDialogVisible" title="模型列表" width="900">
|
|
<el-dialog v-model="showModelDialogVisible" title="模型列表" width="900">
|
|
<el-scrollbar ref="scrollbarRef" id="scrollbarRef1" height="500px">
|
|
<el-scrollbar ref="scrollbarRef" id="scrollbarRef1" height="500px">
|
|
@@ -149,7 +149,8 @@ import {
|
|
dowloadToInfraredApi,
|
|
dowloadToInfraredApi,
|
|
getToInfraredApi,
|
|
getToInfraredApi,
|
|
getLogToInfraredApi,
|
|
getLogToInfraredApi,
|
|
- showToInfraredModelApi
|
|
|
|
|
|
+ showToInfraredModelApi,
|
|
|
|
+ previewPredictResultToInfraredModelApi
|
|
} from '@/api/modules/demo/toInfrared'
|
|
} from '@/api/modules/demo/toInfrared'
|
|
|
|
|
|
import { getImagesApi, listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
import { getImagesApi, listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
@@ -160,12 +161,19 @@ import { enumAlgorithmConfigTrackApi } from '@/api/modules/demo/AlgorithmConfigT
|
|
import statusEnums from '@/utils/status'
|
|
import statusEnums from '@/utils/status'
|
|
import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSystem, AlgorithmType2 } from '@/views/demo/utils'
|
|
import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSystem, AlgorithmType2 } from '@/views/demo/utils'
|
|
import PreviewImages from '@/views/demo/components/PreviewImages.vue'
|
|
import PreviewImages from '@/views/demo/components/PreviewImages.vue'
|
|
-import { Row } from 'element-plus/es/components/table-v2/src/components'
|
|
|
|
|
|
+import PreviewCompareImages from '@/views/demo/components/PreviewCompareImages.vue'
|
|
|
|
|
|
import { addAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
|
|
import { addAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
|
|
|
|
|
|
import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
|
|
|
|
|
+const previewImagesRef = ref()
|
|
|
|
+const dialogVisible = ref(false)
|
|
|
|
+const imageUrls = ref([])
|
|
|
|
+const preview = async row => {
|
|
|
|
+ previewImagesRef.value?.handleOpen(previewPredictResultToInfraredModelApi, row.id)
|
|
|
|
+}
|
|
|
|
+
|
|
const enumsAlgorithmConfigTrack = ref<any>([])
|
|
const enumsAlgorithmConfigTrack = ref<any>([])
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
const result = await enumAlgorithmConfigTrackApi()
|
|
const result = await enumAlgorithmConfigTrackApi()
|
|
@@ -290,14 +298,6 @@ const showToInfraredModel = async (id: any) => {
|
|
|
|
|
|
const viewLogRef = ref()
|
|
const viewLogRef = ref()
|
|
|
|
|
|
-const dialogVisible = ref(false)
|
|
|
|
-const imageUrls = ref([])
|
|
|
|
-const preview = async row => {
|
|
|
|
- console.log('showImages:', row.inputOssId)
|
|
|
|
- const data: any = await getImagesApi(row.inputOssId, '_to_infrared', false, 'predict')
|
|
|
|
- imageUrls.value = data.data
|
|
|
|
- dialogVisible.value = true
|
|
|
|
-}
|
|
|
|
const openModelDialog = async row => {
|
|
const openModelDialog = async row => {
|
|
const algorithmModelId = row.algorithmModelId
|
|
const algorithmModelId = row.algorithmModelId
|
|
const result: any = await getAlgorithmModelTrackApi(algorithmModelId)
|
|
const result: any = await getAlgorithmModelTrackApi(algorithmModelId)
|