| | |
| | | <!-- 任务统计表格 --> |
| | | <template> |
| | | <SearchBox @search="searchClick" @addTask="handleAddTask"></SearchBox> |
| | | <div class="task-intermediate-content"> |
| | | <SearchBox @search="searchClick" @addTask="handleAddTask"></SearchBox> |
| | | <el-table :data="jobListData" style="width: 100%" height="calc(100vh - 180px)"> |
| | | <el-table-column label="序号" width="60"> |
| | | <template #default="scope"> |
| | |
| | | <!-- 添加任务 --> |
| | | <AddTask v-model:show="isShowAddTask" @refresh="searchClick"/> |
| | | <!-- 当前任务详情 --> |
| | | <CurrentTaskDetails v-model:show="isShowCurrentTaskDetails"/> |
| | | <CurrentTaskDetails v-model:show="isShowCurrentTaskDetails" :rowData="rowData"/> |
| | | </template> |
| | | |
| | | <script setup> |
| | |
| | | return statusMap[status] || '-'; |
| | | }; |
| | | |
| | | // 查看当前任务详情 |
| | | // 查看当前任务详情 如果是一台机则显示详情 如果是多台机则进入集群调度(暂未开发) |
| | | let isShowCurrentTaskDetails = ref(false); |
| | | let rowData = ref({}); |
| | | const handleDetail = (row) => { |
| | | isShowCurrentTaskDetails.value = true; |
| | | rowData.value = row? row : {}; |
| | | }; |
| | | |
| | | // 分页大小改变 |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .task-intermediate-content { |
| | | position: absolute; |
| | | top: 400px; |
| | | width: calc(100% - 80px); |
| | | left: 40px; |
| | | height: 500px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | margin-left: 38px; |
| | | margin-top: 16px; |
| | | background: linear-gradient( 27deg, #1F3E7A 0%, rgba(31,62,122,0.35) 79%, rgba(31,62,122,0) 100%); |
| | | padding: 14px 18px; |
| | | |
| | | :deep(.el-table) { |
| | | margin-top: 12px; |
| | | background-color: transparent; |
| | | --el-table-tr-bg-color: transparent; |
| | | --el-table-border-color: rgba(255, 255, 255, 0.1); |