| | |
| | | </el-form-item> |
| | | <el-form-item label="故障类型" prop="errorTypeList"> |
| | | <el-select v-model="queryParams.errorTypeList" multiple placeholder="故障类型" clearable @clear="handleQuery"> |
| | | <el-option v-for="dict in dict.type.error_type" |
| | | :value="dict.value" |
| | | :label="dict.label"/> |
| | | <el-option v-for="dict in dict.type.error_type" :value="dict.value" :key="dict.value" :label="dict.label" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单状态" prop="status"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row v-if="workOrderList && workOrderList.length > 0" :gutter="20" v-loading="loading"> |
| | | <el-row :gutter="20" v-loading="loading"> |
| | | <el-col :xl="6" :lg="8" :md="12" :sm="24" v-for="item in workOrderList" :key="item.id"> |
| | | <div class="my-col"> |
| | | <div style="padding-left: 10px; padding-top: 8px"> |
| | |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | <el-empty v-else description="暂无数据"></el-empty> |
| | | <el-empty v-if="empty" description="暂无数据"></el-empty> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | > |
| | | <el-form-item label="故障类型" prop="errorType"> |
| | | <el-select v-model="batchAuditingWorkOrder.errorTypes" multiple placeholder="故障类型"> |
| | | <el-option v-for="(item, index) in errorTypeOptions" :label="item.dictLabel" :value="item.dictValue" |
| | | :key="index" |
| | | ></el-option> |
| | | <el-option v-for="dict in dict.type.error_type" :value="dict.value" :key="dict.value" :label="dict.label" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="审核说明" prop="auditingRemark"> |
| | |
| | | getYwAuditingList |
| | | } from '@/api/platform/work-order' |
| | | import { addReport } from '@/api/platform/report' |
| | | import { getDicts } from '@/api/system/dict/data' |
| | | |
| | | export default { |
| | | name: 'Work-order', |
| | |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | empty: false, |
| | | openShowCurrent: null, |
| | | errorTypeOptions: [], |
| | | ywConditions: [], |
| | | batchAuditingVisible: false, |
| | | batchAuditingWorkOrder: { |
| | |
| | | }, |
| | | /** 查询运维工单列表 */ |
| | | getList() { |
| | | this.empty = false; |
| | | this.loading = true |
| | | this.queryParams.params = {} |
| | | this.queryParams['start'] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[0] : null |
| | |
| | | this.workOrderList = response.data |
| | | this.total = response.total |
| | | this.loading = false |
| | | if (this.total === 0) { |
| | | this.empty = true |
| | | } |
| | | }) |
| | | }, |
| | | // 取消按钮 |