From 87ef70fcbe974984c31878ee9ad27a37bcfdc99c Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 15 Mar 2024 17:20:24 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E7=A4=BE=E4=BC=9A=E7=BC=96=E7=A0=81=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E4=BC=9A=E6=9C=89=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/index.vue | 2 ++ src/views/relevantunits/insert/components/corpInfoEdit.vue | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 7c61220..4d423f4 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1461,6 +1461,7 @@ export default { if (viewer && px) { var picks = viewer.scene.drillPick(px) var cartesian = null + // eslint-disable-next-line one-var var isOn3dtiles = false, isOnTerrain = false // drillPick @@ -1550,6 +1551,7 @@ export default { }, clickPort({ id, longitude, latitude, height, CORP_INFO_ID }) { + console.log('按钮被点击了') this.gangkouActive = id this.CORP_INFO_ID = CORP_INFO_ID this.componentKey = Math.random() diff --git a/src/views/relevantunits/insert/components/corpInfoEdit.vue b/src/views/relevantunits/insert/components/corpInfoEdit.vue index 3194f53..913e1dd 100644 --- a/src/views/relevantunits/insert/components/corpInfoEdit.vue +++ b/src/views/relevantunits/insert/components/corpInfoEdit.vue @@ -250,6 +250,10 @@ export default { }) } var hasSocialCode = (rule, value, callback) => { + if (value == null || value === '') { + callback(new Error('统一社会信用代码为空')) + return + } requestFN( '/relevantunits/hasSocialCode', {