From e5dba3b4d05cc3caa5473809101fa7b49a9219ed Mon Sep 17 00:00:00 2001 From: fufeifei Date: Mon, 11 Nov 2024 18:13:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=9A=90=E6=82=A3=E6=95=B4=E6=94=B9?= =?UTF-8?q?=E4=B8=AD=E4=B8=B4=E6=97=B6=E5=AE=89=E5=85=A8=E6=8E=AA=E6=96=BD?= =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hidden/rectify/components/change.vue | 4 ++-- src/views/hiddenApi/publicMethod/list.vue | 20 ++++++++++++------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/views/hidden/rectify/components/change.vue b/src/views/hidden/rectify/components/change.vue index aa45fd9..b1c5e76 100644 --- a/src/views/hidden/rectify/components/change.vue +++ b/src/views/hidden/rectify/components/change.vue @@ -33,7 +33,7 @@ - + @@ -426,7 +426,7 @@ export default { this.loading = true if (this.DAYNUM >= 1 && this.form.TEMPORARY_SAFE_MEASURE == '') { this.$message({ - message: '临时安全措施不能为空,请先返回上个页面填写临时安全措施!!!', + message: '请先输入临时安全措施!!!', type: 'error' }) this.loading = false diff --git a/src/views/hiddenApi/publicMethod/list.vue b/src/views/hiddenApi/publicMethod/list.vue index 1635f0e..74ed8ec 100644 --- a/src/views/hiddenApi/publicMethod/list.vue +++ b/src/views/hiddenApi/publicMethod/list.vue @@ -784,14 +784,20 @@ export default { }, // 添加临时安全措施的点击事件 AddTempSafeMeasureClick() { - if (!this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE && this.dayNum >= 1) { - this.$message({ - message: '请填写临时安全措施', - type: 'error' - }) - this.loading = false - return false + if (!this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE) { + alert(this.dayNum) + if (this.dayNum >= 1) { + this.$message({ + message: '请填写临时安全措施', + type: 'error' + }) + this.loading = false + return false + }else { + this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE = '' + } } + const loading = this.$loading({ lock: true, text: '加载中......',