| | |
| | | <!-- 巡检任务情况-详情 --> |
| | | <template> |
| | | <el-dialog |
| | | class="inspection-rask-details-dialog" |
| | | class="inspection-rask-details-dialog ztzf-dialog" |
| | | v-model="isShowDetailsDialog" |
| | | :width="pxToRem(1000)" |
| | | :close-on-click-modal="false" |
| | |
| | | <el-form :model="searchForm" inline> |
| | | <div class="search-row"> |
| | | <el-form-item> |
| | | <el-input v-model="searchForm.key_word" placeholder="请输入任务/机巢名称" clearable /> |
| | | <el-input class="ztzf-input" v-model="searchForm.key_word" placeholder="请输入任务/机巢名称" clearable /> |
| | | </el-form-item> |
| | | <el-form-item label="关联算法"> |
| | | <el-select v-model="searchForm.ai_types" placeholder="请选择"> |
| | | <el-select class="ztzf-select" v-model="searchForm.ai_types" placeholder="请选择"> |
| | | <el-option v-for="item in taskAlgorithm" :key="item.id" :label="item.dictValue" :value="item.dictKey" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="任务状态"> |
| | | <el-select v-model="searchForm.status" placeholder="请选择" clearable> |
| | | <el-select class="ztzf-select" v-model="searchForm.status" placeholder="请选择" clearable> |
| | | <el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="search-row"> |
| | | <el-form-item label="选择机巢"> |
| | | <el-select v-model="searchForm.device_sn" placeholder="请选择"> |
| | | <el-select class="ztzf-select" v-model="searchForm.device_sn" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in deviceList" |
| | | :label="item.nickname" |
| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-date-picker |
| | | class="ztzf-date-picker" |
| | | v-model="dateRange" |
| | | type="daterange" |
| | | range-separator="至" |
| | |
| | | <template #default="scope"> |
| | | <span |
| | | :class=" |
| | | scope.row.status == 1 |
| | | scope.row.status === 1 |
| | | ? 'pending ' |
| | | : scope.row.status == 2 |
| | | : scope.row.status === 2 |
| | | ? 'distributed' |
| | | : scope.row.status == 3 |
| | | : scope.row.status === 3 |
| | | ? 'finish ' |
| | | : scope.row.status == 4 |
| | | : scope.row.status === 4 |
| | | ? 'cancel ' |
| | | : 'fail ' |
| | | " |
| | | > |
| | | {{ |
| | | scope.row.status == 1 |
| | | scope.row.status === 1 |
| | | ? '待执行' |
| | | : scope.row.status == 2 |
| | | : scope.row.status === 2 |
| | | ? '执行中' |
| | | : scope.row.status == 3 |
| | | : scope.row.status === 3 |
| | | ? '完成' |
| | | : scope.row.status == 4 |
| | | : scope.row.status === 4 |
| | | ? '取消' |
| | | : '失败' |
| | | }} |
| | |
| | | </el-table> |
| | | </div> |
| | | <!-- 分页 --> |
| | | <div class="pagination ztzf-pagination"> |
| | | <div style="display: flex;justify-content: center"> |
| | | <el-pagination |
| | | class="ztzf-pagination" |
| | | v-model:current-page="pageParams.current" |
| | | v-model:page-size="pageParams.size" |
| | | :page-sizes="[10, 20, 30, 50]" |
| | |
| | | const handleReset = () => { |
| | | dateRange.value = null |
| | | Object.keys(searchForm).forEach(key => { |
| | | if (key == 'start_date' || key == 'end_date') { |
| | | if (key === 'start_date' || key === 'end_date') { |
| | | searchForm[key] = null |
| | | } else if (key == 'ai_types') { |
| | | } else if (key === 'ai_types') { |
| | | searchForm[key] = [] |
| | | } else { |
| | | searchForm[key] = '' |
| | |
| | | .el-form-item__label { |
| | | color: #fff; |
| | | } |
| | | |
| | | .el-input, |
| | | .el-select, |
| | | .el-date-editor { |
| | | width: 200px; |
| | | --el-input-bg-color: transparent; |
| | | --el-input-border-color: rgba(255, 255, 255, 0.3); |
| | | --el-input-text-color: #fff; |
| | | --el-input-placeholder-color: rgba(255, 255, 255, 0.5); |
| | | } |
| | | } |
| | | } |
| | | |
| | | :deep() { |
| | | .el-date-editor.el-input, |
| | | .el-date-editor.el-input__wrapper { |
| | | height: var(--el-input-height, var(--el-component-size)); |
| | | width: 0 !important; |
| | | } |
| | | .el-select__wrapper { |
| | | background: #012a50; |
| | | height: 100%; |
| | | padding-left: 20px; |
| | | border: 1px solid #51a8ff; |
| | | box-shadow: none !important; |
| | | } |
| | | |
| | | .el-select__selected-item { |
| | | font-family: Source Han Sans CN, Source Han Sans CN, serif; |
| | | |
| | | line-height: 18px; |
| | | font-weight: 400; |
| | | font-size: 16px; |
| | | color: #296aca; |
| | | } |
| | | .el-input__wrapper { |
| | | background: #012a50 !important; |
| | | box-shadow: none !important; |
| | | border: 1px solid #178bff; |
| | | } |
| | | .el-input__inner::placeholder { |
| | | color: #296aca; |
| | | } |
| | | .el-form-item__label { |
| | | font-family: Segoe UI, Segoe UI; |
| | | font-weight: 400; |
| | | font-size: 16px; |
| | | color: #ffffff; |
| | | } |
| | | .el-date-editor .el-range-separator { |
| | | color: #ffffff !important; |
| | | } |
| | | } |
| | | :deep(.el-pagination) { |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-top: 10px; |
| | | } |
| | | :deep(.el-pagination button) { |
| | | background: center center no-repeat none !important; |
| | | color: #8eb8ea !important; |
| | | } |
| | | |
| | | .el-table__body { |
| | |
| | | </style> |
| | | <style lang="scss"> |
| | | .inspection-rask-details-dialog { |
| | | width: 1270px; |
| | | width: 1270px; |
| | | height: 856px; |
| | | background: #0f1929; |
| | | box-shadow: inset 0px -50px 50px 0px rgba(27, 148, 255, 0.13); |
| | | border-radius: 20px 0px 0px 0px; |
| | | border: 2px solid; |
| | | padding: 0 !important; |
| | | |
| | | border-image: linear-gradient( |
| | | 180deg, |
| | | rgba(81, 168, 255, 0), |
| | | rgba(48, 111, 202, 1), |
| | | rgba(255, 255, 255, 1), |
| | | rgba(27, 148, 255, 1) |
| | | ) |
| | | 2 2; |
| | | /* 头部 */ |
| | | .el-dialog__header { |
| | | width: 1270px; |
| | | height: 47px; |
| | | margin-bottom: 14px; |
| | | background: url('/src/assets/images/home/homeLeft/inspection-vector.png') no-repeat center; |
| | | background-size: 100% 100%; |
| | | font-weight: bold; |
| | | font-size: 16px; |
| | | line-height: 47px; |
| | | } |
| | | |
| | | .el-dialog .el-dialog__header { |
| | | /* margin: 0px !important; */ |
| | | padding: 0px !important; |
| | | padding-left: 0px !important; |
| | | } |
| | | /* 头部 */ |
| | | .el-dialog__title { |
| | | width: 112px; |
| | | height: 19px; |
| | | font-family: Segoe UI, Segoe UI; |
| | | font-weight: bold; |
| | | font-size: 16px; |
| | | line-height: 16px; |
| | | text-shadow: 0px 0px 5px rgba(154, 218, 255, 0.6); |
| | | text-align: left; |
| | | font-style: normal; |
| | | text-transform: none; |
| | | background: linear-gradient(90deg, #fbfdff 0%, #86d4ff 100%); |
| | | margin-left: 16px; |
| | | -webkit-background-clip: text; /* 背景被裁剪成文字的前景色 */ |
| | | -webkit-text-fill-color: transparent; /* 文字填充颜色变透明 */ |
| | | } |
| | | |
| | | .el-scrollbar__thumb { |
| | | background: #13c6ff !important; |
| | | } |
| | | |
| | | |
| | | } |
| | | </style> |
| | | </style> |