forked from drone/command-center-dashboard

shuishen
2025-04-16 a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a
src/views/TaskManage/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -19,9 +19,9 @@
        <el-table-column prop="ai_type_str" label="关联算法" show-overflow-tooltip />
        <el-table-column label="任务状态" >
          <template #default="scope">
            <span :style="{
              color: scope.row.status === 1 ? '#e36913' :
                     scope.row.status === 2 ? '#ffc398' :
            <span :style="{
              color: scope.row.status === 1 ? '#e36913' :
                     scope.row.status === 2 ? '#ffc398' :
                     scope.row.status === 3 ? '#afd9fb' :
                     scope.row.status === 4 ? '#11c4ff' : '8cfea7'
            }">
@@ -65,12 +65,13 @@
<script setup>
import SearchBox from '../SearchBox.vue';
import AddTask from './AddTask.vue';
import CurrentTaskDetails from './CurrentTaskDetails.vue';
import CurrentTaskDetails from './CurrentTaskDetails/CurrentTaskDetails.vue';
import { jobList } from '@/api/home/task';
import { ElMessage } from 'element-plus'
const jobListParams = reactive({
  current: 1,
  size: 8,
  size: 10,
  searchParams:{}
});
const jobListData = ref([]);
@@ -100,8 +101,12 @@
let isShowCurrentTaskDetails = ref(false);
let rowData = ref({});
const handleDetail = (row) => {
  isShowCurrentTaskDetails.value = true;
  rowData.value = row? row : {};
   if (row.device_sns.length === 1){
      isShowCurrentTaskDetails.value = true;
      rowData.value = row? row : {};
   }else{
      ElMessage.warning('即将跳转到集群调度');
   }
};
// 分页大小改变
@@ -121,8 +126,6 @@
  jobListParams.current = 1;
  jobListParams.size = 10;
  jobListParams.searchParams = params;
  // 存储查询条件 ,用于统计图搜索
  getJobList();
};
@@ -154,6 +157,7 @@
  .task-table {
    height: 528px;
    margin-top: 18px;
    overflow: auto;
  }
  .current-details {