From cfdb68dafbca5d169e3d6c5bff57f7b7f860338d Mon Sep 17 00:00:00 2001 From: shanao Date: Wed, 11 Dec 2024 15:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=201.=20=E6=8E=92=E7=8F=AD?= =?UTF-8?q?=E7=99=BB=E8=AE=B0=E7=AE=A1=E7=90=86=E6=90=9C=E7=B4=A2=E6=8A=A5?= =?UTF-8?q?=E9=94=99=202.=20=E4=BC=81=E4=B8=9A=E5=BA=94=E6=80=A5=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E6=96=B0=E5=A2=9E=E3=80=81=E4=BF=AE=E6=94=B9=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=AD=97=E6=AE=B5=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../case_library/components/casebasic.vue | 5 +- .../emergency_personnel/components/list.vue | 104 ++++++++++++++---- .../shift_registration/components/list.vue | 4 + 3 files changed, 90 insertions(+), 23 deletions(-) diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue index 4f91032..73d0ac5 100644 --- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue +++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue @@ -281,10 +281,11 @@ export default { //* ***************************数据保存********************************** handleEdit(v) { this.dialogFormEdit = true + const newVar = v.LEVEL == null || v.LEVEL === '' ? null : v.LEVEL this.form = { TITLE: v.TITLE, CONTENT: v.CONTENT, - LEVEL: v.LEVEL, + LEVEL: newVar, ID: v.ID } this.dialogType = 'editUser' @@ -315,6 +316,8 @@ export default { }, dataSave() { this.listLoading = true + // 避免修改时mybatis-plus 自动过滤空值 + this.form.LEVEL = this.form.LEVEL == null ? '' : this.form.LEVEL requestFN( '/caseLibrary/save', this.form ).then((data) => { diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue index 3396779..30a7784 100644 --- a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue @@ -57,46 +57,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + - - + + - - - - - - - - - - - - - - + + diff --git a/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue b/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue index 8bb18d4..a0ad6b0 100644 --- a/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue @@ -5,6 +5,7 @@ @@ -418,6 +419,9 @@ export default { label: node.name, children: node.nodes } + }, + rules: { + monthvalue: [{ required: true, message: '请输入月份' }] } } },