فهرست منبع

feat: 查看功能-列表展示完善

WANGKANG 3 ماه پیش
والد
کامیت
273f4c601b
1فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 8 3
      src/views/demo/algorithmTaskTrack/index.vue

+ 8 - 3
src/views/demo/algorithmTaskTrack/index.vue

@@ -133,7 +133,13 @@
       <div style="width: 100%; height: auto; overflow: auto">
         <el-table :data="viewData" border height="500px">
           <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">
             <template #default="scope">
               <el-tag type="success">
@@ -239,8 +245,7 @@ const openViewDialog = async (row: any) => {
   dialogVisibleView.value = true
   const res = await listSubTaskAlgorithmTaskTrackApi(row.id)
   if (res.code === 200) {
-    viewData.value = [...res.data['toInfraredList'], ...res.data['trackSequenceList']]
-    console.log(viewData.value)
+    viewData.value = res.data
   } else {
     ElMessage.error('获取子任务失败')
   }