|
@@ -133,7 +133,13 @@
|
|
<div style="width: 100%; height: auto; overflow: auto">
|
|
<div style="width: 100%; height: auto; overflow: auto">
|
|
<el-table :data="viewData" border height="500px">
|
|
<el-table :data="viewData" border height="500px">
|
|
<el-table-column prop="id" label="主键ID" width="180" />
|
|
<el-table-column prop="id" label="主键ID" width="180" />
|
|
- <el-table-column prop="name" label="任务名称" width="150" />
|
|
|
|
|
|
+ <el-table-column prop="name" label="任务名称" width="150">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <el-tooltip :content="scope.row.name" raw-content placement="top-start" v-if="scope.row.name">
|
|
|
|
+ <span>{{ scope.row.name && scope.row.name.length > 15 ? scope.row.name.substring(0, 15) + '...' : scope.row.name }} </span>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="status" label="任务状态" width="150">
|
|
<el-table-column prop="status" label="任务状态" width="150">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-tag type="success">
|
|
<el-tag type="success">
|
|
@@ -239,8 +245,7 @@ const openViewDialog = async (row: any) => {
|
|
dialogVisibleView.value = true
|
|
dialogVisibleView.value = true
|
|
const res = await listSubTaskAlgorithmTaskTrackApi(row.id)
|
|
const res = await listSubTaskAlgorithmTaskTrackApi(row.id)
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- viewData.value = [...res.data['toInfraredList'], ...res.data['trackSequenceList']]
|
|
|
|
- console.log(viewData.value)
|
|
|
|
|
|
+ viewData.value = res.data
|
|
} else {
|
|
} else {
|
|
ElMessage.error('获取子任务失败')
|
|
ElMessage.error('获取子任务失败')
|
|
}
|
|
}
|