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
895be7a0
Commit
895be7a0
authored
Aug 20, 2019
by
niuxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest ui 08/20/2019 10:52:31
parent
088531f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
main.component.html
src/app/main/main.component.html
+7
-2
main.component.ts
src/app/main/main.component.ts
+10
-7
No files found.
src/app/main/main.component.html
View file @
895be7a0
...
...
@@ -70,7 +70,7 @@
</fieldset>
<fieldset>
<legend>
普通干线
</legend>
<legend
(
click
)="
toNormalWay
()"
>
普通干线
</legend>
<div
class=
"proj-info"
*
ngIf=
"!normalShow"
>
<label>
...
...
@@ -101,10 +101,15 @@
</div>
</label>
</div>
<section
*
ngIf=
"normalShow"
class=
"sub"
>
<
!-- <
section *ngIf="normalShow" class="sub">
<label (click)="highLight(i,prj)" *ngFor="let prj of normalProjects;let i=index">{{prj.name}}
</label>
</section> -->
<section
*
ngIf=
"normalShow"
class=
"sub"
>
<div
class=
"item"
*
ngFor=
"let prj of normalProjects;let i=index"
>
<label
(
click
)="
highLight
(
i
,
prj
,'
p
');
setPrj
(
prj
);"
>
{{prj.name}}
</label>
</div>
</section>
</fieldset>
</div>
...
...
src/app/main/main.component.ts
View file @
895be7a0
...
...
@@ -319,15 +319,18 @@ export class MainComponent implements OnInit {
//map.setViewport(allPoints.map(p => ({ lng: p[0], lat: p[1] })));
}
toNormal
()
{
this
.
map
.
clearOverlays
();
toNormalWay
()
{
this
.
normalShow
=
!
this
.
normalShow
;
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
`/project/list/
${
markType
.
NORMAL
}
`
).
subscribe
(
res
=>
{
this
.
normalProjects
=
res
.
data
;
});
if
(
this
.
normalShow
)
{
///map.clearOverlays();
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
`/project/list/
${
markType
.
NORMAL
}
`
).
subscribe
(
res
=>
{
this
.
projects
=
res
.
data
;
var
points
=
this
.
loadPolys
(
res
,
true
);
});
}
else
{
this
.
map
.
centerAndZoom
(
"山西省"
,
8
);
}
}
openDialog
(
id
:
string
)
{
...
...
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