bug修复,如果社会编码为空会有异常。
parent
ceeaa04ec0
commit
87ef70fcbe
|
@ -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()
|
||||
|
|
|
@ -250,6 +250,10 @@ export default {
|
|||
})
|
||||
}
|
||||
var hasSocialCode = (rule, value, callback) => {
|
||||
if (value == null || value === '') {
|
||||
callback(new Error('统一社会信用代码为空'))
|
||||
return
|
||||
}
|
||||
requestFN(
|
||||
'/relevantunits/hasSocialCode',
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue