|
@@ -344,9 +344,7 @@ export default {
|
|
|
this.$message.error(error.message)
|
|
|
}
|
|
|
)
|
|
|
-
|
|
|
this.initLayers()
|
|
|
-
|
|
|
this.initSplitMaps()
|
|
|
this.initActiveViewEvents()
|
|
|
this.initMapEvents()
|
|
@@ -400,7 +398,6 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
initLayers() {
|
|
|
if (this.layerList.length == 0) {
|
|
|
this.$message.warn('未查询到图层相关配置')
|
|
@@ -549,7 +546,6 @@ export default {
|
|
|
if (this.layerNum == this.layerCount) {
|
|
|
this.$emit('layer-loadAll', true)
|
|
|
this.mapView.extent = this.initExtent
|
|
|
- // this.initBaseLayer() // 此处会导致进入地图页面后影像消失,所以注释掉
|
|
|
}
|
|
|
})
|
|
|
if (parseInt(layerItem.zIndex)) {
|
|
@@ -559,7 +555,6 @@ export default {
|
|
|
esriMap.add(layer_opacity)
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
initBaseLayer() {
|
|
|
let baseRasterLayer = new WMTSLayer({
|
|
|
url: this.baseRasterLayerUrl,
|
|
@@ -678,55 +673,8 @@ export default {
|
|
|
if (actionId === 'showDKDetail' && this.resData.sysOrgCode != null) {
|
|
|
//获取弹出的popup所归属的graphic的attributes
|
|
|
// getAction("")
|
|
|
- if (this.resData.sysOrgCode.slice(0, 3) == 'A04') {
|
|
|
- // this.result.单位名称 = this.resData.createBy
|
|
|
- // this.result.地块名称 = this.resData.dk
|
|
|
- // this.result.文件类型 = this.resData.wjlx
|
|
|
- // this.result.文件编号 = this.resData.wjbh
|
|
|
- // this.result.土地使用权人 = this.resData.tdsyqr
|
|
|
- // this.result.实际占用土地面积 = parseFloat(this.resData.sjzytdmj).toFixed(2)+'㎡'
|
|
|
- // this.result.其中证载使用土地面积 = parseFloat(this.resData.qzpzsymj).toFixed(2)+'㎡'
|
|
|
- // this.result.实际使用建筑面积 = parseFloat(this.resData.sjsyjzmj).toFixed(2)+'㎡'
|
|
|
- // this.result.其中证载使用建筑面积 = parseFloat(this.resData.qzpzsymj2).toFixed(2)+'㎡'
|
|
|
- // this.result.是否共用宗 = this.resData.sfgyz
|
|
|
- // this.result.容积率 = parseFloat(this.resData.sjrjl).toFixed(2)
|
|
|
- // this.result.使用权使用方式 = this.resData.syqsyfs
|
|
|
- // this.result.坐落位置 = this.resData.zlwz
|
|
|
- // this.result.实际用途 = this.resData.sjytText
|
|
|
- // this.result.权属起始时间 = this.resData.qsqssj
|
|
|
- // this.result.权属结束时间 = this.resData.qsdqsj
|
|
|
- // this.result.担保 = this.resData.dbdycfqk
|
|
|
- // this.result.备注 = this.resData.BZ
|
|
|
- // this.result.土地使用现状 = this.resData.tdsyxz
|
|
|
- // this.result.地块编号 = this.resData.dkbh
|
|
|
- // this.result.IMAGE = this.resData.images
|
|
|
- this.infoShow = true
|
|
|
- this.$refs.detail.loadDetail(this.resData)
|
|
|
- }
|
|
|
- if (this.resData.sysOrgCode.slice(0, 3) == 'A03') {
|
|
|
- // this.result.单位名称 = this.resData.createBy
|
|
|
- // this.result.地块名称 = this.resData.dk
|
|
|
- // this.result.文件类型 = this.resData.zslx
|
|
|
- // this.result.文件编号 = this.resData.wjbh
|
|
|
- // this.result.土地使用权人 = this.resData.tdsyqr
|
|
|
- // this.result.实际占用土地面积 = parseFloat(this.resData.sjzytdmj).toFixed(2)+'㎡'
|
|
|
- // this.result.其中证载使用土地面积 = parseFloat(this.resData.qzpzsymj).toFixed(2)+'㎡'
|
|
|
- // this.result.实际使用建筑面积 = parseFloat(this.resData.sjsyjzmj).toFixed(2)+'㎡'
|
|
|
- // this.result.其中证载使用建筑面积 = parseFloat(this.resData.qzpzsymj2).toFixed(2)+'㎡'
|
|
|
- // this.result.使用权使用方式 = this.resData.syqsyfs
|
|
|
- // this.result.坐落位置 = this.resData.zlwz
|
|
|
- // this.result.实际用途 = this.resData.sjyt
|
|
|
- // this.result.权属起始时间 = this.resData.qsqssj
|
|
|
- // this.result.权属结束时间 = this.resData.qsdqsj
|
|
|
- // this.result.担保 = this.resData.dbdycfqk
|
|
|
- // this.result.土地使用现状 = this.resData.tdsyxz
|
|
|
- // this.result.备注 = this.resData.BZ
|
|
|
- // this.result.地块编号 = this.resData.dkbh
|
|
|
- // this.result.IMAGE = this.resData.images
|
|
|
- this.infoShow = true
|
|
|
- this.$refs.detail.loadDetail(this.resData)
|
|
|
- //this.$refs.detail.loadDetail(this.result)
|
|
|
- }
|
|
|
+ this.infoShow = true
|
|
|
+ this.$refs.detail.loadDetail(this.resData)
|
|
|
} else if (actionId == 'showAll') {
|
|
|
if (this.resData.vr == null) {
|
|
|
this.$message.warn('全景图片不存在!')
|
|
@@ -740,8 +688,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- //TODO 点击地图时弹出信息
|
|
|
+ /*点击地图时弹出信息*/
|
|
|
selectChange(feature) {
|
|
|
+ this.isVr=false;
|
|
|
//console.log('selectChange'+JSON.stringify(feature))
|
|
|
let content = document.createElement('div')
|
|
|
this.resData = []
|
|
@@ -764,17 +713,12 @@ export default {
|
|
|
var sjyd = res.sjytText
|
|
|
var sjzytdmj = res.sjzytdmj
|
|
|
var sjsyjzmj = res.sjsyjzmj
|
|
|
- // <!--<div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >其中批准使用土地面积:</div><div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >其中批准使用建筑面积:</div>-->
|
|
|
content.innerHTML =
|
|
|
`<div><span style="font-weight: bold;">企业名称:</span> <span>${dwmc}<span/></div>
|
|
|
<div><span style="font-weight: bold;">地块名称:</span> <span>${dkmc}</span></div>
|
|
|
<div><span style="font-weight: bold;">实际用地:</span> <span>${sjyd}</span></div>
|
|
|
- <div class="ant-tag" style="background-color: #feeeeb;margin-top: 5px;color: #d57a55;border:1px solid #d57a55 " >实际占用土地面积:${
|
|
|
- sjzytdmj || 0
|
|
|
- }²</div>
|
|
|
- <div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >实际使用建筑面积:${
|
|
|
- sjsyjzmj || 0
|
|
|
- }²</div>`
|
|
|
+ <div class="ant-tag" style="background-color: #feeeeb;margin-top: 5px;color: #d57a55;border:1px solid #d57a55 " >实际占用土地面积:${sjzytdmj || 0}²</div>
|
|
|
+ <div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >实际使用建筑面积:${sjsyjzmj || 0}²</div>`
|
|
|
return content
|
|
|
} else {
|
|
|
var dwmc = res.createBy
|
|
@@ -783,26 +727,20 @@ export default {
|
|
|
var sjzytdmj = res.sjzytdmj
|
|
|
var sjsyjzmj = res.sjsyjzmj
|
|
|
let content = document.createElement('div')
|
|
|
- // <!--<div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >其中批准使用土地面积:</div><div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >其中批准使用建筑面积:</div>-->
|
|
|
content.innerHTML =
|
|
|
`<div><span style="font-weight: bold;">企业名称:</span> <span>${dwmc}<span/></div>
|
|
|
<div><span style="font-weight: bold;">地块名称:</span> <span>${dkmc}</span></div>
|
|
|
<div><span style="font-weight: bold;">实际用地:</span> <span>${sjyd}</span></div>
|
|
|
- <div class="ant-tag" style="background-color: #feeeeb;margin-top: 5px;color: #d57a55;border:1px solid #d57a55 " >实际占用土地面积:${
|
|
|
- sjzytdmj || 0
|
|
|
- }²</div>
|
|
|
- <div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >实际使用建筑面积:${
|
|
|
- sjsyjzmj || 0
|
|
|
- }²</div>
|
|
|
- `
|
|
|
+ <div class="ant-tag" style="background-color: #feeeeb;margin-top: 5px;color: #d57a55;border:1px solid #d57a55 " >实际占用土地面积:${sjzytdmj || 0}²</div>
|
|
|
+ <div class="ant-tag" style="background-color: #feeeeb ;color: #d57a55;border:1px solid #d57a55 " >实际使用建筑面积:${sjsyjzmj || 0}²</div>`
|
|
|
return content
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
return (content.innerHTML =
|
|
|
- ` <div><span style="font-weight: bold;">企业名称:</span> <span>${feature.graphic.attributes.DWMC}<span/></div>
|
|
|
- <div><span style="font-weight: bold;">证书编号:</span> <span>${feature.graphic.attributes.ZSBH}</span></div>
|
|
|
- <div class="ant-tag" style="background-color: #feeeeb;margin-top: 5px;color: #d57a55;border:1px solid #d57a55 " >地块信息未上报</div>`
|
|
|
+ `<div><span style="font-weight: bold;">企业名称:</span> <span>${feature.graphic.attributes.DWMC}<span/></div>
|
|
|
+ <div><span style="font-weight: bold;">证书编号:</span> <span>${feature.graphic.attributes.ZSBH}</span></div>
|
|
|
+ <div class="ant-tag" style="background-color: #feeeeb;margin-top: 5px;color: #d57a55;border:1px solid #d57a55 " >地块信息未上报</div>`
|
|
|
)
|
|
|
// this.$info({
|
|
|
// title: '说明',
|