lct123456
2022-04-25 8b9344aa1fb3d7893ea408383a8ba62abe5ebeca
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>
@@ -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()