From 6ad571a3c5f070aa2e33b1f98a21143a42b4e9f2 Mon Sep 17 00:00:00 2001 From: Tuzki <1720599558@qq.com> Date: Wed, 8 May 2024 14:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sunPages/addCropForm/addCropForm.vue | 7 ++++--- sunPages/blockDetail/blockDetail.vue | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sunPages/addCropForm/addCropForm.vue b/sunPages/addCropForm/addCropForm.vue index ab94d9a..cc2cb8d 100644 --- a/sunPages/addCropForm/addCropForm.vue +++ b/sunPages/addCropForm/addCropForm.vue @@ -316,14 +316,15 @@ } }, checkArea1(val) { - console.log(this.formData.production) if (val == 1) { - if (this.formData.plantingArea != '') { + console.log(this.formData.plantingArea) + if (this.formData.plantingArea != ''&&this.formData.plantingArea !=undefined) { this.formData.plantingArea = parseFloat(this.formData.plantingArea).toFixed(2); } } if (val == 2) { - if (this.formData.production != '') { + console.log(this.formData.production) + if (this.formData.production != ''&&this.formData.production!=undefined) { this.formData.production = parseFloat(this.formData.production).toFixed(2); } } diff --git a/sunPages/blockDetail/blockDetail.vue b/sunPages/blockDetail/blockDetail.vue index bda1fb7..a8086fd 100644 --- a/sunPages/blockDetail/blockDetail.vue +++ b/sunPages/blockDetail/blockDetail.vue @@ -329,6 +329,7 @@ export default { icon: 'none', title: '已结束' }); + that.blockData = undefined setTimeout(() => { that.$refs.paging.reload(); }, 1500);