From ce9d974e99211723615c2e9e6e70df87da60e26a Mon Sep 17 00:00:00 2001 From: shanao Date: Thu, 12 Sep 2024 18:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accident/records/components/addOrEdit.vue | 47 ++------------ .../accident/records/components/list.vue | 40 +++++++----- .../accident/records/components/listCount.vue | 63 +++++++++---------- src/views/accident/records/index.vue | 3 +- 4 files changed, 64 insertions(+), 89 deletions(-) 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 @@