| | |
| | | <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' |
| | | }"> |
| | |
| | | <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([]); |
| | |
| | | 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('即将跳转到集群调度'); |
| | | } |
| | | }; |
| | | |
| | | // 分页大小改变 |
| | |
| | | jobListParams.current = 1; |
| | | jobListParams.size = 10; |
| | | jobListParams.searchParams = params; |
| | | // 存储查询条件 ,用于统计图搜索 |
| | | |
| | | getJobList(); |
| | | }; |
| | | |
| | |
| | | .task-table { |
| | | height: 528px; |
| | | margin-top: 18px; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .current-details { |