| | |
| | | </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> |
| | |
| | | </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> |
| | |
| | | <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){ |
| | |
| | | }, |
| | | } |
| | | }, |
| | | components: { |
| | | detail |
| | | }, |
| | | created() { |
| | | this.getInspectionRecordData() |
| | | this.getDepartment() |
| | |
| | | }) |
| | | } |
| | | }, |
| | | 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() |