forked from drone/command-center-dashboard

罗广辉
2025-04-21 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7
src/views/TaskManage/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -94,8 +94,6 @@
    if (res.data.code !== 0) return;
    jobListData.value = res.data.data.records;
    total.value = res.data.data.total;
    console.log('任务管理列表',jobListData.value);
  });
};
// 状态文字
@@ -113,15 +111,13 @@
// 查看当前任务详情 如果是一台机则显示详情 如果是多台机则进入集群调度(暂未开发)
let rowData = ref({});
const handleDetail = (row) => {
   if (row.device_sns.length === 1){
      rowData.value = row? row : {};
      if (row.status === 2 || row.status === 1){
         isShowCurrentTaskDetails.value = true;
      } else{
         isShowDeviceJobDetails.value = true
      }
   }else{
      ElMessage.warning('即将跳转到集群调度');
   if (!row.device_sns.length) return ElMessage.warning('没有device_sns');
   if (row.device_sns.length !== 1) return ElMessage.success('即将跳转到集群调度');
   rowData.value = row? row : {};
   if (row.status === 2 || row.status === 1){
      isShowCurrentTaskDetails.value = true;
   } else{
      isShowDeviceJobDetails.value = true
   }
};