From 5b483cbdf6faa822fc77840fb04a886c8ce123b9 Mon Sep 17 00:00:00 2001 From: shanao Date: Tue, 10 Sep 2024 17:19:18 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BA=8B=E6=95=85?= =?UTF-8?q?=E8=B0=83=E6=9F=A5=E7=AE=A1=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accident/records/components/addOrEdit.vue | 249 ++++++++++++++++++ .../accident/records/components/list.vue | 211 +++++++++++++++ .../accident/records/components/listCount.vue | 152 +++++++++++ src/views/accident/records/index.vue | 39 +++ 4 files changed, 651 insertions(+) create mode 100644 src/views/accident/records/components/addOrEdit.vue create mode 100644 src/views/accident/records/components/list.vue create mode 100644 src/views/accident/records/components/listCount.vue create mode 100644 src/views/accident/records/index.vue diff --git a/src/views/accident/records/components/addOrEdit.vue b/src/views/accident/records/components/addOrEdit.vue new file mode 100644 index 0000000..262ebe0 --- /dev/null +++ b/src/views/accident/records/components/addOrEdit.vue @@ -0,0 +1,249 @@ + + + + + diff --git a/src/views/accident/records/components/list.vue b/src/views/accident/records/components/list.vue new file mode 100644 index 0000000..f99763a --- /dev/null +++ b/src/views/accident/records/components/list.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/src/views/accident/records/components/listCount.vue b/src/views/accident/records/components/listCount.vue new file mode 100644 index 0000000..473cfd4 --- /dev/null +++ b/src/views/accident/records/components/listCount.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/accident/records/index.vue b/src/views/accident/records/index.vue new file mode 100644 index 0000000..1545f04 --- /dev/null +++ b/src/views/accident/records/index.vue @@ -0,0 +1,39 @@ + + + + + From ce9d974e99211723615c2e9e6e70df87da60e26a Mon Sep 17 00:00:00 2001 From: shanao Date: Thu, 12 Sep 2024 18:03:09 +0800 Subject: [PATCH 2/3] =?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 @@