|
@@ -42,6 +42,16 @@
|
|
|
<el-button type="primary" link icon="Delete">终止</el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ icon="View"
|
|
|
+ v-auth="['demo:toInfrared:query']"
|
|
|
+ @click="viewLogRef.handleOpen(scope.row.id)"
|
|
|
+ v-if="scope.row.status != '0'"
|
|
|
+ >
|
|
|
+ 日志
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
@@ -77,6 +87,7 @@
|
|
|
</ProTable>
|
|
|
<FormDialog ref="formDialogRef" />
|
|
|
<ImportExcel ref="dialogRef" />
|
|
|
+ <ViewLog ref="viewLogRef" :get-log-api="getLogTargetDetectionApi" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -100,7 +111,8 @@ import {
|
|
|
getTargetDetectionApi,
|
|
|
startTargetDetectionApi,
|
|
|
dowloadTargetDetectionApi,
|
|
|
- stopTargetDetectionApi
|
|
|
+ stopTargetDetectionApi,
|
|
|
+ getLogTargetDetectionApi
|
|
|
} from '@/api/modules/demo/TargetDetection'
|
|
|
|
|
|
import { listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
@@ -108,6 +120,9 @@ import { listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
|
import { enumAlgorithmModelTrackApi, getAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
|
|
|
import { enumAlgorithmConfigTrackApi } from '@/api/modules/demo/AlgorithmConfigTrack'
|
|
|
import { updateTrackSequenceApi } from '@/api/modules/demo/trackSequence'
|
|
|
+import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
+
|
|
|
+const viewLogRef = ref()
|
|
|
|
|
|
const stopTargetDetect = async (params: any) => {
|
|
|
const res: any = await stopTargetDetectionApi(params.id)
|