diff --git a/src/views/accident/records/components/addOrEdit.vue b/src/views/accident/records/components/addOrEdit.vue index 262ebe0..71a9240 100644 --- a/src/views/accident/records/components/addOrEdit.vue +++ b/src/views/accident/records/components/addOrEdit.vue @@ -3,7 +3,6 @@ @@ -55,12 +54,10 @@ - + @@ -138,46 +135,14 @@ export default { incidentTypes: [], /** 事故等级 */ incidentLevels: [], - - /** 图片 */ - fileList: [], - allowRemove: true, // 添加一个控制标志 /** 预览弹窗 */ dialogImgVisible: false, - rules: { - incidentNumber: [{ required: true, message: '事故案号不能为空', trigger: 'blur' }], - incidentName: [{ required: true, message: '事故名称不能为空', trigger: 'blur' }], - HIDDENTYPE: [{ required: true, message: '事故类型不能为空', trigger: 'blur' }], - incidentType: [{ required: true, message: '隐患类型不能为空', trigger: 'blur' }], - incidentLevel: [{ required: true, message: '事故级别不能为空', trigger: 'blur' }], - incidentNature: [{ required: true, message: '事故性质不能为空', trigger: 'blur' }], - location: [{ required: true, message: '事故发生地点不能为空', trigger: 'blur' }], - incidentDate: [{ required: true, message: '事故发生时间不能为空', trigger: 'blur' }], - directLoss: [{ required: true, message: '直接经济损失(万元)不能为空', trigger: 'blur' }], - injured: [{ required: true, message: '受伤人数不能为空', trigger: 'blur' }], - seriouslyInjured: [{ required: true, message: '隐患类型不能为空', trigger: 'blur' }], - cause: [{ required: true, message: '事故起因不能为空', trigger: 'blur' }], - summary: [{ required: true, message: '事故概述不能为空', trigger: 'blur' }], - photos: [{ required: true, message: '事故照片不能为空', trigger: 'blur' }], - analysis: [{ required: true, message: '原因分析及责任认定不能为空', trigger: 'blur' }], - suggestions: [{ required: true, message: '考核建议不能为空', trigger: 'blur' }], - measures: [{ required: true, message: '整改措施不能为空', trigger: 'blur' }], - creator: [{ required: true, message: '填表人不能为空', trigger: 'blur' }], - reportDate: [{ required: true, message: '报出日期不能为空', trigger: 'blur' }] - } + isDisabled: true } }, - - computed: { - isDisabled() { - return true - } - }, - created() { this.getDict() - const id = this.$parent.id - requestFN('/accident/' + id, {}).then((data) => { + requestFN('/accident/info/' + this.$parent.id, {}).then((data) => { this.infoForm = data.info }).catch(() => { }) diff --git a/src/views/accident/records/components/list.vue b/src/views/accident/records/components/list.vue index f99763a..5203015 100644 --- a/src/views/accident/records/components/list.vue +++ b/src/views/accident/records/components/list.vue @@ -1,16 +1,17 @@