From 8a8b4df35256cc1efd7234a45905c76f7f77436d Mon Sep 17 00:00:00 2001 From: xyq <392009588@qq.com> Date: Wed, 9 Aug 2023 16:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/add.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index acdc10e2..fc19bbbc 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -844,6 +844,10 @@ export default { methods: { submitzjd(){ this.$refs.form.validate().then(() => { + if(this.form.theGeomJson == null){ + Dialog({ type: 'danger', message: '请在地图上标注宅基地所在位置!' }); + return; + } if(this.form.id == null){ let surveyItem = JSON.parse(localStorage.getItem("surveyItem")); this.$set(this.form, 'surveyId', surveyItem.id);