Commit 5f8ff4a6 authored by zhengjiangtao's avatar zhengjiangtao

Merge branch 'develop' of http://172.16.10.76/bank/AmosBankView into develop

parents ace53b11 498906cc
......@@ -1312,9 +1312,9 @@ class View3D extends Component {
this.clearMarkers();
const _this = this;
const pointType = parseInt(item.pointType);
if (type === FLOOR.FLOOR_3) {
if (type === FLOOR.FLOOR_3 || type === FLOOR.FLOOR_6) {
_this.objs.forEach( obj => {
if (obj.userData && obj.userData.key === FLOOR.FLOOR_3) {
if (obj.userData && obj.userData.key === type) {
if (!obj.isForceParent ) {
_this.outlineFactory.toggleOutline(obj);
if (pointType === 1) {
......
......@@ -151,7 +151,7 @@ class IndexMap extends Component {
// client.subscribe('bank/equipment/ping', { qos: 1 }, (res) => {
client.subscribe('bank/aisle/alarm', { qos: 1 }, (res) => {
if (!res) {
// console.log('订阅成功');
console.log('订阅成功');
// fetchJsonAction('/src/_mock/map/eqp.json', (data) => {
// let metricJson = JSON.parse(data.metricDatas[0].metricJson);
// let eqpId = data.metricDatas[0].eqpId;
......@@ -202,7 +202,6 @@ class IndexMap extends Component {
});
lsTool.write('orgCode', orgCode);
}
/**
......@@ -305,56 +304,6 @@ class IndexMap extends Component {
window.map.on('zoomchange', () => {
thisMap.setStyleC(window.map.getZoom());
});
// window.AMapUI.loadUI(['geo/DistrictExplorer'], (DistrictExplorer) => {
// //启动页面
// //创建一个实例
// var districtExplorer = new DistrictExplorer({
// map: map //关联的地图实例
// });
// let adcode = 610000; //陕西的区划编码
// districtExplorer.loadAreaNode(adcode, (error, areaNode) => {
// if (error) {
// console.error(error);
// return;
// }
// renderAreaNode(districtExplorer, areaNode);
// window.map.on('zoomchange', () => {
// thisMap.setStyleC(window.map.getZoom());
// renderAreaNode(districtExplorer, areaNode);
// });
// // if (!outMap) {
// // renderAreaNode(districtExplorer, areaNode);
// // window.map.on('zoomchange', () => {
// // thisMap.setStyleC(window.map.getZoom());
// // });
// // } else {
// // window.map.on('zoomchange', () => {
// // thisMap.setStyleC(window.map.getZoom());
// // renderAreaNode(districtExplorer, areaNode);
// // if (window.map.getZoom() === 6) {
// // outMap && districtExplorer.clearFeaturePolygons();
// // } else {
// // renderAreaNode(districtExplorer, areaNode);
// // }
// // });
// // }
// });
// });
// function renderAreaNode(districtExplorer, areaNode) {
// //清除已有的绘制内容
// districtExplorer.clearFeaturePolygons();
// districtExplorer.renderParentFeature(areaNode, {
// cursor: 'default',
// bubble: true,
// strokeColor: '#152AE8', //线颜色
// fillColor: '#B4B8F7',
// strokeWeight: 2, //线宽
// fillOpacity: 0.4, //填充透明度
// });
// }
}
/**
......@@ -433,7 +382,7 @@ class IndexMap extends Component {
if (item.dictDataKey === city) {
orgCode = item.dictDataValue;
}
})
});
return orgCode;
}
......@@ -742,7 +691,7 @@ class IndexMap extends Component {
let companyName = this.getSelectCityByOrgCode(selectedCompanyOrg, dicCodeList);
let map = null;
if (companyName.indexOf("清算中心")!==-1){
map = { 'is3DPage': true, 'city': city, 'orgCode': orgCode ,'flag':flag,'pid':id,'pointName':pointName,'pointAttrs':pointAttrs,'floor':floor,'pointtype':pointtype};
map = { 'is3DPage': true, 'city': city, 'orgCode': orgCode ,'flag':flag,'pid':id,'pointName':pointName,'pointAttrs':pointAttrs,'floor':floor,'pointtype':pointtype};
} else {
//如果不是西安CCPC,orgCode为空
map = { 'is3DPage': true, 'city': city, 'orgCode': '','flag':flag ,'pid':id,'pointName':pointName,'pointAttrs':pointAttrs,'floor':floor,'pointtype':pointtype};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment