|
@@ -253,12 +253,13 @@
|
|
|
</el-button>
|
|
|
<el-button type="primary" link icon="View" @click="openSubTaskViewDialog(3, '子任务查看', scope.row)"> 查看 </el-button>
|
|
|
<el-button type="primary" link icon="EditPen" @click="openSubTaskViewDialog(2, '子任务编辑', scope.row)"> 编辑 </el-button>
|
|
|
- <el-button type="danger" link icon="Delete" @click="deletSubTaskAlgorithmTaskTrack(scope.row)"> 删除</el-button>
|
|
|
+ <el-button type="danger" link icon="Delete" @click="deletSubTask(scope.row)"> 删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <ViewLog ref="viewLogRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -292,14 +293,29 @@ import statusEnums from '@/utils/status'
|
|
|
import {
|
|
|
addTrackSequenceApi,
|
|
|
delTrackSequenceApi,
|
|
|
+ getLogTrackSequenceApi,
|
|
|
getTrackSequenceApi,
|
|
|
startTrackSequenceApi,
|
|
|
stopTrackSequenceApi,
|
|
|
updateTrackSequenceApi
|
|
|
} from '@/api/modules/demo/trackSequence'
|
|
|
-import { delToInfraredApi, getToInfraredApi, startToInfraredApi, stopToInfraredApi, updateToInfraredApi } from '@/api/modules/demo/toInfrared'
|
|
|
-import { getTargetDetectionApi, startTargetDetectionApi, stopTargetDetectionApi, updateTargetDetectionApi } from '@/api/modules/demo/TargetDetection'
|
|
|
+import {
|
|
|
+ delToInfraredApi,
|
|
|
+ getLogToInfraredApi,
|
|
|
+ getToInfraredApi,
|
|
|
+ startToInfraredApi,
|
|
|
+ stopToInfraredApi,
|
|
|
+ updateToInfraredApi
|
|
|
+} from '@/api/modules/demo/toInfrared'
|
|
|
+import {
|
|
|
+ getLogTargetDetectionApi,
|
|
|
+ getTargetDetectionApi,
|
|
|
+ startTargetDetectionApi,
|
|
|
+ stopTargetDetectionApi,
|
|
|
+ updateTargetDetectionApi
|
|
|
+} from '@/api/modules/demo/TargetDetection'
|
|
|
import { delDataAugmentationApi } from '@/api/modules/demo/dataAugmentation'
|
|
|
+import ViewLog from '@/views/demo/components/ViewLog.vue'
|
|
|
|
|
|
const startSubTask = async (row: any) => {
|
|
|
let res: any = null
|
|
@@ -339,7 +355,20 @@ const stopSubTask = async (row: any) => {
|
|
|
}
|
|
|
handleOpenView()
|
|
|
}
|
|
|
-const openLogSubTask = async (row: any) => {}
|
|
|
+
|
|
|
+const viewLogRef = ref()
|
|
|
+const openLogSubTask = async (row: any) => {
|
|
|
+ if (row.subsystem === SubSystem__['可见光转红外']) {
|
|
|
+ viewLogRef.value.handleOpen(row.id, getLogToInfraredApi)
|
|
|
+ } else if (row.subsystem === SubSystem__['目标检测']) {
|
|
|
+ viewLogRef.value.handleOpen(row.id, getLogTargetDetectionApi)
|
|
|
+ } else if (row.subsystem === SubSystem__['注释轨迹序列']) {
|
|
|
+ viewLogRef.value.handleOpen(row.id, getLogTrackSequenceApi)
|
|
|
+ } else {
|
|
|
+ ElMessage.error('暂不支持该子任务类型')
|
|
|
+ return
|
|
|
+ }
|
|
|
+}
|
|
|
const previewSubTask = async (row: any) => {}
|
|
|
const showStatisticResultSubTask = async (row: any) => {}
|
|
|
const showEvaluateResultSubTask = async (row: any) => {}
|