bug修复,如果社会编码为空会有异常。

5_7_地图同步
liujun 2024-03-15 17:20:24 +08:00
parent ceeaa04ec0
commit 87ef70fcbe
2 changed files with 6 additions and 0 deletions

View File

@ -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()

View File

@ -250,6 +250,10 @@ export default {
})
}
var hasSocialCode = (rule, value, callback) => {
if (value == null || value === '') {
callback(new Error('统一社会信用代码为空'))
return
}
requestFN(
'/relevantunits/hasSocialCode',
{