|
@@ -37,14 +37,19 @@
|
|
|
>
|
|
|
开始
|
|
|
</el-button>
|
|
|
- <el-popconfirm title="确定终止此任务吗?" v-if="scope.row.status == '1'">
|
|
|
+ <el-popconfirm title="确定终止此任务吗?" v-if="scope.row.status == '1'" @confirm="stopTrackSequence(scope.row)">
|
|
|
<template #reference>
|
|
|
<el-button type="primary" link icon="Delete"> 终止</el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
- <el-button type="primary" link icon="View" v-auth="['demo:trackSequence:download']" v-if="scope.row.status == '2'">
|
|
|
- <!-- @confirm="stopTrackSequence(scope.row)"-->
|
|
|
- <!-- @click="dowloadtrackSequence(scope.row)"-->
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ icon="View"
|
|
|
+ v-auth="['demo:trackSequence:download']"
|
|
|
+ v-if="scope.row.status == '2'"
|
|
|
+ @click="dowloadTargetDetection(scope.row)"
|
|
|
+ >
|
|
|
下载
|
|
|
</el-button>
|
|
|
<!-- <el-button-->
|
|
@@ -93,7 +98,8 @@ import {
|
|
|
importTargetDetectionDataApi,
|
|
|
exportTargetDetectionApi,
|
|
|
getTargetDetectionApi,
|
|
|
- startTargetDetectionApi
|
|
|
+ startTargetDetectionApi,
|
|
|
+ dowloadTargetDetectionApi
|
|
|
} from '@/api/modules/demo/TargetDetection'
|
|
|
|
|
|
import { listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
@@ -106,6 +112,10 @@ import { startToInfraredApi } from '@/api/modules/demo/toInfrared'
|
|
|
import statusEnums from '@/utils/status'
|
|
|
import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSystem } from '@/views/demo/utils'
|
|
|
|
|
|
+const dowloadTargetDetection = async (params: any) => {
|
|
|
+ await useDownload(dowloadTargetDetectionApi, params.name, params.id, true, '.zip')
|
|
|
+}
|
|
|
+
|
|
|
const startTargetDetection = async (params: any) => {
|
|
|
const res: any = await startTargetDetectionApi(params.id)
|
|
|
if (res.code === 200) {
|