From 889ccabb94ef3688e8fbfbea10c78db022d9274f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=82=83?= <15833576927@163.com> Date: Thu, 23 May 2024 11:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E5=9C=B0=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basicData/breedingBase/breedingBaseForm.vue | 5 ++++- src/views/basicData/breedingBase/index.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/basicData/breedingBase/breedingBaseForm.vue b/src/views/basicData/breedingBase/breedingBaseForm.vue index 1c20a26..3477b94 100644 --- a/src/views/basicData/breedingBase/breedingBaseForm.vue +++ b/src/views/basicData/breedingBase/breedingBaseForm.vue @@ -41,6 +41,7 @@ const toUpdate = (row) => { geyById(row) } const geyById = (row) => { + formRef.value.clearValidate() showDrawer.value = true selLoading.value = true breedingQueryById({id:row.id}).then(res =>{ @@ -67,6 +68,8 @@ const saveBreedingBase = () => { }).finally(()=>{ loading.value = false }) + }else{ + proxy.$modal.msgError('保存失败,请确认所有信息均已填写'); } }) } @@ -117,7 +120,7 @@ const changeArea = (value) =>{
地块基地/资源圃
- + diff --git a/src/views/basicData/breedingBase/index.vue b/src/views/basicData/breedingBase/index.vue index 9c417f5..906673d 100644 --- a/src/views/basicData/breedingBase/index.vue +++ b/src/views/basicData/breedingBase/index.vue @@ -193,7 +193,7 @@ function handleQuery() { /** 重置按钮操作 */ function resetQuery() { - proxy.resetForm("queryRef"); + queryParams.value = {} handleQuery(); };