|
@@ -59,6 +59,16 @@
|
|
|
>
|
|
|
下载
|
|
|
</el-button>
|
|
|
+ <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 icon="View" v-auth="['demo:toInfrared:query']" @click="openDialog(3, '查看', scope.row)"> 查看 </el-button> -->
|
|
|
<!-- <el-button type="primary" link icon="EditPen"v-auth="['demo:toInfrared:edit']" @click="openDialog(2, '编辑', scope.row)"> 编辑 </el-button> -->
|
|
|
<el-button
|
|
@@ -76,6 +86,7 @@
|
|
|
<FormDialog ref="formDialogRef" />
|
|
|
<ImportExcel ref="dialogRef" />
|
|
|
<PreviewImages :visible="dialogVisible" :urls="imageUrls" @close="dialogVisible = false" />
|
|
|
+ <ViewLog ref="viewLogRef" :get-log-api="getLogToInfraredApi" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -99,7 +110,8 @@ import {
|
|
|
startToInfraredApi,
|
|
|
stopToInfraredApi,
|
|
|
dowloadToInfraredApi,
|
|
|
- getToInfraredApi
|
|
|
+ getToInfraredApi,
|
|
|
+ getLogToInfraredApi
|
|
|
} from '@/api/modules/demo/toInfrared'
|
|
|
|
|
|
import { getImagesApi, listDataSeqApi } from '@/api/modules/demo/DataSeq'
|
|
@@ -112,6 +124,10 @@ import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSyst
|
|
|
import PreviewImages from '@/views/demo/components/PreviewImages.vue'
|
|
|
import { Row } from 'element-plus/es/components/table-v2/src/components'
|
|
|
|
|
|
+import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
+
|
|
|
+const viewLogRef = ref()
|
|
|
+
|
|
|
const dialogVisible = ref(false)
|
|
|
const imageUrls = ref([])
|
|
|
const preview = async row => {
|
|
@@ -120,7 +136,6 @@ const preview = async row => {
|
|
|
imageUrls.value = data.data
|
|
|
dialogVisible.value = true
|
|
|
}
|
|
|
-
|
|
|
const openModelDialog = async row => {
|
|
|
const algorithmModelId = row.algorithmModelId
|
|
|
const result: any = await getAlgorithmModelTrackApi(algorithmModelId)
|