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(); };