Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AmosBankView
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bank
AmosBankView
Commits
5f8ff4a6
Commit
5f8ff4a6
authored
May 15, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://172.16.10.76/bank/AmosBankView
into develop
parents
ace53b11
498906cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
56 deletions
+5
-56
View3D.js
src/view/bank/3dview/View3D.js
+2
-2
indexMap.js
src/view/bank/3dview/indexMap.js
+3
-54
No files found.
src/view/bank/3dview/View3D.js
View file @
5f8ff4a6
...
...
@@ -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
)
{
...
...
src/view/bank/3dview/indexMap.js
View file @
5f8ff4a6
...
...
@@ -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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment