From 70fb6d09d29ca1b4ba29a9299f310e2455301b8c Mon Sep 17 00:00:00 2001 From: lct123456 <lucht> Date: 星期一, 25 四月 2022 15:36:11 +0800 Subject: [PATCH] 四色图 --- src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue index 4c61f8c..b68cee8 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue @@ -91,11 +91,14 @@ </el-table-column> <el-table-column label="隐患排查内容" prop="content" align="center"> </el-table-column> - <el-table-column label="巡检内容" prop="info" align="center"> + <el-table-column label="上报说明" prop="info" align="center"> </el-table-column> - <el-table-column label="巡检照片" prop="img" align="center"> + <el-table-column label="上报照片" prop="img" align="center"> </el-table-column> <el-table-column label="状态" prop="status" align="center"> + <template slot-scope="scope"> + {{ scope.row.status | parseStatusList}} + </template> </el-table-column> <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> <template slot-scope="scope"> @@ -115,6 +118,12 @@ <el-table-column label="异常通知人" prop="noticeUname" align="center"> </el-table-column> <el-table-column label="巡检人" prop="execUname" align="center"> + </el-table-column> + <el-table-column label="巡检开始时间" prop="execUname" align="center"> + </el-table-column> + <el-table-column label="巡检结束时间" prop="execUname" align="center"> + </el-table-column> + <el-table-column label="巡检提交时间" prop="execUname" align="center"> </el-table-column> <el-table-column label="任务状态" prop="status" align="center"> <template slot-scope="scope"> @@ -176,6 +185,7 @@ import { computePageCount } from '@/utils' import { getInspectionRecord } from '@/api/inspectionTask' import {getAllDepartment, getDepartmentList} from "../../../../api/departmentManage"; + import {safetyInspectionItemName} from "../../../../api/safetySelfInspection"; export default { name: 'index', filters: { @@ -193,6 +203,19 @@ return "任务关闭" } }, + parseStatusList(status) { + if(status === 1){ + return "待巡检" + }else if(status === 2) { + return "巡检中" + }else if(status === 3) { + return "已完成" + }else if(status === 4) { + return "超时未巡检" + }else{ + return "已取消" + } + } }, computed: { ...mapGetters([ @@ -237,6 +260,7 @@ created() { this.getInspectionRecordData() this.getDepartment() + this.getUser() }, methods: { async getInspectionRecordData(){ @@ -264,6 +288,17 @@ }) } }, + async getUser(){ + let res = await safetyInspectionItemName() + if(res.data.code === '200'){ + this.userList = res.data.result + }else{ + this.$message({ + message:res.data.message, + type:'warning' + }) + } + }, showAnalyseUnitForm(value,type){ this.inspectionRecordVisible = true this.$nextTick(() =>{ -- Gitblit v1.9.2