From 070e6ce56f585eb26eabbb2ed17fef1e3e4026c5 Mon Sep 17 00:00:00 2001 From: zhoucong <123456> Date: 星期一, 16 五月 2022 16:27:20 +0800 Subject: [PATCH] fix --- src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue | 35 ++++++++++++++++------------------- 1 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue index b68cee8..9586da1 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue @@ -102,7 +102,7 @@ </el-table-column> <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> <template slot-scope="scope"> - <el-button type="text" @click="showMeasureDetail(scope.row)">详情</el-button> + <el-button type="text" @click="showInspectionRecordDetailForm(scope.row)">详情</el-button> </template> </el-table-column> </el-table> @@ -119,11 +119,11 @@ </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 label="巡检开始时间" prop="expTime" align="center"> </el-table-column> - <el-table-column label="巡检结束时间" prop="execUname" align="center"> + <el-table-column label="巡检结束时间" prop="endTime" align="center"> </el-table-column> - <el-table-column label="巡检提交时间" prop="execUname" align="center"> + <el-table-column label="巡检提交时间" prop="execTime" align="center"> </el-table-column> <el-table-column label="任务状态" prop="status" align="center"> <template slot-scope="scope"> @@ -132,7 +132,7 @@ </el-table-column> <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> <template slot-scope="scope"> - <el-button type="text" @click="showInspectionRecordForm(scope.row,'编辑')">查看</el-button> + <el-button type="text" @click="showInspectionRecordDetailForm(scope.row,'编辑')">查看</el-button> </template> </el-table-column> </el-table> @@ -177,16 +177,19 @@ <el-button @click="unitFormVisible = false">取消</el-button> </div> </el-dialog> + <detail ref="detail"></detail> </div> </template> <script> + import detail from './components/detail.vue' import { mapGetters } from 'vuex' import { computePageCount } from '@/utils' import { getInspectionRecord } from '@/api/inspectionTask' import {getAllDepartment, getDepartmentList} from "../../../../api/departmentManage"; import {safetyInspectionItemName} from "../../../../api/safetySelfInspection"; export default { + components: { detail }, name: 'index', filters: { parseType(type){ @@ -257,6 +260,9 @@ }, } }, + components: { + detail + }, created() { this.getInspectionRecordData() this.getDepartment() @@ -299,20 +305,11 @@ }) } }, - showAnalyseUnitForm(value,type){ - this.inspectionRecordVisible = true - this.$nextTick(() =>{ - this.$refs["analyseUnitForm"].clearValidate() - }) - if(type === '新增'){ - this.title = '新增' - this.inspectionRecordData = { - - } - }else{ - this.title = '修改' - this.inspectionRecordData = value - } + showInspectionRecordForm(value){ + this.$refs.detail.showInspectionRecordForm(value) + }, + showInspectionRecordDetailForm(value) { + this.$refs.detail.showInspectionRecordDetailForm(value) }, refreshHandle(){ this.getInspectionRecordData() -- Gitblit v1.9.2