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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
55 deletions
+4
-55
View3D.js
src/view/bank/3dview/View3D.js
+2
-2
indexMap.js
src/view/bank/3dview/indexMap.js
+2
-53
No files found.
src/view/bank/3dview/View3D.js
View file @
5f8ff4a6
...
@@ -1312,9 +1312,9 @@ class View3D extends Component {
...
@@ -1312,9 +1312,9 @@ class View3D extends Component {
this
.
clearMarkers
();
this
.
clearMarkers
();
const
_this
=
this
;
const
_this
=
this
;
const
pointType
=
parseInt
(
item
.
pointType
);
const
pointType
=
parseInt
(
item
.
pointType
);
if
(
type
===
FLOOR
.
FLOOR_3
)
{
if
(
type
===
FLOOR
.
FLOOR_3
||
type
===
FLOOR
.
FLOOR_6
)
{
_this
.
objs
.
forEach
(
obj
=>
{
_this
.
objs
.
forEach
(
obj
=>
{
if
(
obj
.
userData
&&
obj
.
userData
.
key
===
FLOOR
.
FLOOR_3
)
{
if
(
obj
.
userData
&&
obj
.
userData
.
key
===
type
)
{
if
(
!
obj
.
isForceParent
)
{
if
(
!
obj
.
isForceParent
)
{
_this
.
outlineFactory
.
toggleOutline
(
obj
);
_this
.
outlineFactory
.
toggleOutline
(
obj
);
if
(
pointType
===
1
)
{
if
(
pointType
===
1
)
{
...
...
src/view/bank/3dview/indexMap.js
View file @
5f8ff4a6
...
@@ -151,7 +151,7 @@ class IndexMap extends Component {
...
@@ -151,7 +151,7 @@ class IndexMap extends Component {
// client.subscribe('bank/equipment/ping', { qos: 1 }, (res) => {
// client.subscribe('bank/equipment/ping', { qos: 1 }, (res) => {
client
.
subscribe
(
'bank/aisle/alarm'
,
{
qos
:
1
},
(
res
)
=>
{
client
.
subscribe
(
'bank/aisle/alarm'
,
{
qos
:
1
},
(
res
)
=>
{
if
(
!
res
)
{
if
(
!
res
)
{
//
console.log('订阅成功');
console
.
log
(
'订阅成功'
);
// fetchJsonAction('/src/_mock/map/eqp.json', (data) => {
// fetchJsonAction('/src/_mock/map/eqp.json', (data) => {
// let metricJson = JSON.parse(data.metricDatas[0].metricJson);
// let metricJson = JSON.parse(data.metricDatas[0].metricJson);
// let eqpId = data.metricDatas[0].eqpId;
// let eqpId = data.metricDatas[0].eqpId;
...
@@ -202,7 +202,6 @@ class IndexMap extends Component {
...
@@ -202,7 +202,6 @@ class IndexMap extends Component {
});
});
lsTool
.
write
(
'orgCode'
,
orgCode
);
lsTool
.
write
(
'orgCode'
,
orgCode
);
}
}
/**
/**
...
@@ -305,56 +304,6 @@ class IndexMap extends Component {
...
@@ -305,56 +304,6 @@ class IndexMap extends Component {
window
.
map
.
on
(
'zoomchange'
,
()
=>
{
window
.
map
.
on
(
'zoomchange'
,
()
=>
{
thisMap
.
setStyleC
(
window
.
map
.
getZoom
());
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 {
...
@@ -433,7 +382,7 @@ class IndexMap extends Component {
if
(
item
.
dictDataKey
===
city
)
{
if
(
item
.
dictDataKey
===
city
)
{
orgCode
=
item
.
dictDataValue
;
orgCode
=
item
.
dictDataValue
;
}
}
})
})
;
return
orgCode
;
return
orgCode
;
}
}
...
...
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