|
@@ -25,7 +25,7 @@
|
|
|
<el-button type="primary" link icon="View"> 终止 </el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
- <el-button type="primary" link icon="View" @click="compareDataAugmentation(scope.row)" v-if="scope.row.status == '2'"> 预览 </el-button>
|
|
|
+ <el-button type="primary" link icon="View" @click="preview(scope.row)" v-if="scope.row.status == '2'"> 预览 </el-button>
|
|
|
<el-button type="primary" link icon="View" @click="downloadFile(scope.row)" v-if="scope.row.status == '2'"> 导出 </el-button>
|
|
|
<el-button type="primary" link icon="View" @click="openMetricDialog(scope.row.id)" v-if="scope.row.status == '2'"> 指标 </el-button>
|
|
|
<el-button type="primary" link icon="View" v-auth="['demo:DataAugmentation:query']" @click="openDialog(3, '任务查看', scope.row)">
|
|
@@ -86,6 +86,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<ViewLog ref="viewLogRef" :get-log-api="getDialogApi" />
|
|
|
+ <PreviewCompareImages ref="previewCompareImagesRef" />
|
|
|
<el-dialog v-model="metricDialogVisible" title="算法结果指标" width="500px" style="text-align: center">
|
|
|
<el-table :data="metricList" style="width: 100%; margin-left: 10%; text-align: left">
|
|
|
<el-table-column prop="name" label="name" width="200px" />
|
|
@@ -103,7 +104,7 @@ import { ElMessageBox, ElMessage } from 'element-plus'
|
|
|
import ProTable from '@/components/ProTable/index.vue'
|
|
|
import ImportExcel from '@/components/ImportExcel/index.vue'
|
|
|
import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
-
|
|
|
+import PreviewCompareImages from '@/views/demo/components/PreviewCompareImages.vue'
|
|
|
import DataAugmentationFormDialog from '@/components/DataAugmentationFormDialog/index.vue'
|
|
|
import { ProTableInstance, ColumnProps, EnumProps } from '@/components/ProTable/interface'
|
|
|
import {
|
|
@@ -122,7 +123,8 @@ import {
|
|
|
getDialogApi,
|
|
|
getTaskDictData,
|
|
|
getMetricApi,
|
|
|
- getVideoUrl
|
|
|
+ getVideoUrl,
|
|
|
+ getCompareImageApiNew
|
|
|
} from '@/api/modules/demo/dataAugmentation'
|
|
|
// import { VideoPlayer } from 'vue-video-player'
|
|
|
// import 'vue-video-player/dist/simple.css'
|
|
@@ -162,7 +164,11 @@ import {
|
|
|
// fluid: true // 响应式布局
|
|
|
// }
|
|
|
// }
|
|
|
-
|
|
|
+const previewCompareImagesRef = ref()
|
|
|
+const preview = async row => {
|
|
|
+ // console.log(row)
|
|
|
+ await previewCompareImagesRef.value.handleOpen(getCompareImageApiNew, row.id)
|
|
|
+}
|
|
|
const handleClose = () => {
|
|
|
if (intervalChangeFps.value) {
|
|
|
clearInterval(intervalChangeFps.value)
|