Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supervise-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
牛晓林
supervise-front
Commits
49bf2c85
Commit
49bf2c85
authored
Aug 02, 2019
by
niuxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest
parent
0befb261
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
main.component.less
src/app/main/main.component.less
+3
-1
main.component.ts
src/app/main/main.component.ts
+5
-3
video.component.html
src/app/video/video.component.html
+1
-8
video.component.ts
src/app/video/video.component.ts
+6
-4
getscript.js
src/getscript.js
+0
-0
styles.less
src/styles.less
+1
-0
No files found.
src/app/main/main.component.less
View file @
49bf2c85
...
...
@@ -123,7 +123,7 @@ fieldset{
border-radius: 13px;
margin-bottom: 5em;
margin-left: 2em;
width:1
2
0%;
width:1
8
0%;
legend{
color: #0089ea;
padding: 0.5em;
...
...
@@ -149,6 +149,8 @@ fieldset{
.item{
text-align: left;
padding-top: 0.3em;
font-size: 22px;
color: white;
}
label{
...
...
src/app/main/main.component.ts
View file @
49bf2c85
...
...
@@ -41,7 +41,7 @@ export interface DialogData {
export
class
MainComponent
implements
OnInit
{
cameraSum
:
any
=
{};
allsecs
:
any
=
[];
curive
:
boolean
=
tru
e
;
curive
:
boolean
=
fals
e
;
curiveLength
:
number
=
10
;
theme
:
any
;
...
...
@@ -174,6 +174,8 @@ export class MainComponent implements OnInit {
this
.
projects
=
res
.
data
;
var
points
=
this
.
loadPolys
(
res
,
true
);
});
}
else
{
map
.
centerAndZoom
(
"山西省"
,
8
);
}
}
...
...
@@ -377,7 +379,7 @@ export class MainComponent implements OnInit {
var
bdary
=
new
BMap
.
Boundary
();
bdary
.
get
(
'山西省'
,
function
(
rs
)
{
map
.
clearOverlays
();
//
map.clearOverlays();
//清除地图覆盖物
//思路:利用行政区划点的集合与外围自定义东南西北形成一个环形遮罩层
//1.获取选中行政区划边框点的集合rs.boundaries[0]
...
...
@@ -400,7 +402,7 @@ export class MainComponent implements OnInit {
var
ply1
=
new
BMap
.
Polygon
(
ENWS
+
E_JW
+
SE_JW
+
S_JW
+
WS_JW
+
W_JW
+
NW_JW
+
N_JW
+
EN_JW
+
E_JW
,
{
strokeColor
:
"none"
,
strokeOpacity
:
0
,
fillColor
:
"#0002069c"
,
fillOpacity
:
"0.5"
});
//建立多边形覆盖物
map
.
addOverlay
(
ply1
);
//遮罩物是半透明的,如果需要纯色可以多添加几层
//4. 给目标行政区划添加边框,其实就是给目标行政区划添加一个没有填充物的遮罩层
var
ply
=
new
BMap
.
Polygon
(
rs
.
boundaries
[
0
],
{
strokeWeight
:
0
,
strokeColor
:
"#1
14bf3
"
,
fillColor
:
""
,
fillOpacity
:
"0"
});
var
ply
=
new
BMap
.
Polygon
(
rs
.
boundaries
[
0
],
{
strokeWeight
:
0
,
strokeColor
:
"#1
6e8d6
"
,
fillColor
:
""
,
fillOpacity
:
"0"
});
map
.
addOverlay
(
ply
);
map
.
setViewport
(
ply
.
getPath
());
//调整视野
...
...
src/app/video/video.component.html
View file @
49bf2c85
...
...
@@ -10,14 +10,7 @@
<nz-tree
[
nzData
]="
nodes
"
nzAsyncData
(
nzClick
)="
addVCR
($
event
)"
(
nzExpandChange
)="
nzEvent
($
event
)"
>
</nz-tree>
<a
(
click
)="
preview
()"
style=
" color: white;
text-decoration: none;
margin-left: 2em;"
>
演示demo1
</a>
<a
(
click
)="
preview2
()"
style=
" color: white;
text-decoration: none;
margin-left: 2em;
display: inherit;
"
>
演示demo2
</a>
</div>
<div
class=
"right"
>
<div
id=
"playWnd"
>
...
...
src/app/video/video.component.ts
View file @
49bf2c85
...
...
@@ -155,10 +155,12 @@ export class VideoComponent implements OnInit {
default
:
break
;
}
this
.
http
.
get
(
this
.
d
.
basePath
+
request
+
node
.
key
).
subscribe
(
res
=>
{
console
.
log
(
res
);
node
.
addChildren
((
res
as
any
).
data
.
map
((
d
,
index
)
=>
({
title
:
d
.
name
||
d
.
cameraName
,
key
:
d
.
id
||
d
.
cameraIndexCode
,
index
:
index
})));
});
if
(
node
&&
node
.
getChildren
().
length
===
0
&&
node
.
isExpanded
)
{
this
.
http
.
get
(
this
.
d
.
basePath
+
request
+
node
.
key
).
subscribe
(
res
=>
{
console
.
log
(
res
);
node
.
addChildren
((
res
as
any
).
data
.
map
((
d
,
index
)
=>
({
title
:
d
.
name
||
d
.
cameraName
,
key
:
d
.
id
||
d
.
cameraIndexCode
,
index
:
index
})));
});
}
// if (node && node.getChildren().length === 0 && node.isExpanded) {
// this.loadNode().then(data => {
// node.addChildren(data);
...
...
src/getscript.js
0 → 100644
View file @
49bf2c85
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/styles.less
View file @
49bf2c85
...
...
@@ -240,6 +240,7 @@ body.jw-modal-open {
//video style
.ant-tree li .ant-tree-node-content-wrapper{
color:white!important;
font-size: 17px;
}
.ant-tree li span.ant-tree-iconEle, .ant-tree li span.ant-tree-switcher{
color:white!important;
...
...
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