| | |
| | | <template #default="scope"> |
| | | <div |
| | | v-if="scope.row.status === 2" |
| | | class="btnItem turnBack" |
| | | class="btnItem" |
| | | link |
| | | type="primary" |
| | | @click="turnBack(scope.row)" |
| | |
| | | </div> |
| | | <div |
| | | v-if="scope.row.status === 1" |
| | | class="btnItem cancelTask" |
| | | class="btnItem" |
| | | link |
| | | type="primary" |
| | | @click="cancelTask(scope.row)" |
| | |
| | | <el-pagination |
| | | class="ztzf-pagination" |
| | | popper-class="custom-pagination-dropdown" |
| | | background |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :size="size" |
| | | v-model:current-page="jobListParams.current" |
| | | v-model:page-size="jobListParams.size" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | layout="prev, pager, next, sizes, jumper" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | if (row.status === 2 || row.status === 1) { |
| | | // isShowCurrentTaskDetails.value = true |
| | | // 跳转大屏当前任务详情 |
| | | const adminUrl = `${import.meta.env.VITE_APP_AREA_NAME}/command-center-dashboard/` |
| | | const targetPath = `/taskManage?id=${rowData.value.id}&batchNo=${rowData.value.batch_no}` |
| | | window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank') |
| | | const adminUrl = `${import.meta.env.VITE_APP_AREA_NAME}/command-center-dashboard/#/taskManage` |
| | | const targetPath = `id=${encodeURIComponent(rowData.value.id)}&batchNo=${encodeURIComponent(rowData.value.batch_no)}` |
| | | window.open(`${adminUrl}?${targetPath}`, '_blank') |
| | | } else { |
| | | // isShowDeviceJobDetails.value = true |
| | | const adminUrl = `${import.meta.env.VITE_APP_AREA_NAME}/command-center-dashboard/` |
| | | const targetPath = `/taskManage?id=${rowData.value.id}&batchNo=${rowData.value.batch_no}` |
| | | window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank') |
| | | isShowDeviceJobDetails.value = true |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .task-intermediate-content { |
| | | margin: 0 30px 16px 40px; |
| | | margin: 0 18px 16px 10px; |
| | | background-color: #ffffff; |
| | | padding: 14px 18px; |
| | | // 表格 |
| | | .task-table { |
| | | height: 520px; |
| | | height: 580px; |
| | | margin-top: 18px; |
| | | overflow: auto; |
| | | } |
| | |
| | | // 分页 |
| | | :deep(.el-pagination) { |
| | | display: flex; |
| | | justify-content: center; |
| | | justify-content: right; |
| | | } |
| | | :deep(.el-pagination button) { |
| | | background: center center no-repeat none !important; |