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
1049820a
Commit
1049820a
authored
Aug 20, 2019
by
杨子
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.juicestime.com:niuxiaolin/supervise-front
parents
21dc1005
4bd80689
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
15 deletions
+21
-15
app.module.ts
src/app/app.module.ts
+0
-2
main.component.html
src/app/main/main.component.html
+7
-2
main.component.ts
src/app/main/main.component.ts
+9
-5
qs-mark.component.html
src/app/qs-mark/qs-mark.component.html
+2
-2
qs-mark.component.ts
src/app/qs-mark/qs-mark.component.ts
+0
-1
main.ts
src/main.ts
+3
-3
No files found.
src/app/app.module.ts
View file @
1049820a
...
@@ -15,7 +15,6 @@ import { NgZorroAntdModule, NZ_I18N, zh_CN, NzIconModule } from "ng-zorro-antd";
...
@@ -15,7 +15,6 @@ import { NgZorroAntdModule, NZ_I18N, zh_CN, NzIconModule } from "ng-zorro-antd";
import
{
BrowserAnimationsModule
}
from
"@angular/platform-browser/animations"
;
import
{
BrowserAnimationsModule
}
from
"@angular/platform-browser/animations"
;
import
{
LoginComponent
}
from
"./login/login.component"
;
import
{
LoginComponent
}
from
"./login/login.component"
;
import
{
QsMarkComponent
}
from
"./qs-mark/qs-mark.component"
;
import
{
QsMarkComponent
}
from
"./qs-mark/qs-mark.component"
;
import
{
NgxEchartsModule
}
from
"ngx-echarts"
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
AppComponent
,
AppComponent
,
...
@@ -34,7 +33,6 @@ import { NgxEchartsModule } from "ngx-echarts";
...
@@ -34,7 +33,6 @@ import { NgxEchartsModule } from "ngx-echarts";
FormsModule
,
FormsModule
,
ReactiveFormsModule
,
ReactiveFormsModule
,
ApiModule
,
ApiModule
,
NgxEchartsModule
,
NzIconModule
,
NzIconModule
,
/** 导入 ng-zorro-antd 模块 **/
/** 导入 ng-zorro-antd 模块 **/
NgZorroAntdModule
,
NgZorroAntdModule
,
...
...
src/app/main/main.component.html
View file @
1049820a
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
</fieldset>
</fieldset>
<fieldset>
<fieldset>
<legend>
普通干线
</legend>
<legend
(
click
)="
toNormalWay
()"
>
普通干线
</legend>
<div
class=
"proj-info"
*
ngIf=
"!normalShow"
>
<div
class=
"proj-info"
*
ngIf=
"!normalShow"
>
<label>
<label>
...
@@ -100,10 +100,15 @@
...
@@ -100,10 +100,15 @@
</div>
</div>
</label>
</label>
</div>
</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 (click)="highLight(i,prj)" *ngFor="let prj of normalProjects;let i=index">{{prj.name}}
</label>
</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>
</section>
</fieldset>
</fieldset>
</div>
</div>
...
...
src/app/main/main.component.ts
View file @
1049820a
...
@@ -357,15 +357,19 @@ export class MainComponent implements OnInit {
...
@@ -357,15 +357,19 @@ export class MainComponent implements OnInit {
//map.setViewport(allPoints.map(p => ({ lng: p[0], lat: p[1] })));
//map.setViewport(allPoints.map(p => ({ lng: p[0], lat: p[1] })));
}
}
toNormal
()
{
toNormalWay
()
{
this
.
map
.
clearOverlays
();
this
.
normalShow
=
!
this
.
normalShow
;
this
.
normalShow
=
!
this
.
normalShow
;
this
.
http
if
(
this
.
normalShow
)
{
.
get
<
any
>
(
this
.
s
.
basePath
+
`/project/list/
${
markType
.
NORMAL
}
`
)
///map.clearOverlays();
.
subscribe
(
res
=>
{
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
`/project/list/
${
markType
.
NORMAL
}
`
)
.
subscribe
(
res
=>
{
this
.
normalProjects
=
res
.
data
;
this
.
normalProjects
=
res
.
data
;
var
points
=
this
.
loadPolys
(
res
,
true
);
});
});
}
else
{
this
.
map
.
centerAndZoom
(
"山西省"
,
8
);
}
}
}
openDialog
(
id
:
string
)
{
openDialog
(
id
:
string
)
{
this
.
modalService
.
open
(
id
);
this
.
modalService
.
open
(
id
);
...
...
src/app/qs-mark/qs-mark.component.html
View file @
1049820a
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"aside"
>
<div
class=
"aside"
>
<button
class=
"ie-fix-button"
(
click
)="
back
()"
>
返回
</button>
<button
class=
"ie-fix-button"
>
返回
</button>
<nz-tree
[
nzShowIcon
]="
true
"
[
nzTreeTemplate
]="
nzTreeTemplate
"
[
nzData
]="
nodes
"
nzAsyncData
<nz-tree
[
nzShowIcon
]="
true
"
[
nzTreeTemplate
]="
nzTreeTemplate
"
[
nzData
]="
nodes
"
nzAsyncData
(
nzClick
)="
addVCR
($
event
)"
(
nzExpandChange
)="
nzEvent
($
event
)"
>
(
nzExpandChange
)="
nzEvent
($
event
)"
>
<ng-template
#
nzTreeTemplate
let-node
>
<ng-template
#
nzTreeTemplate
let-node
>
<span
*
ngIf=
"node.isLeaf"
>
<span
*
ngIf=
"node.isLeaf"
>
<i
nz-icon
nzType=
"video-camera"
nzTheme=
"outline"
></i>
<i
nz-icon
nzType=
"video-camera"
nzTheme=
"outline"
></i>
...
...
src/app/qs-mark/qs-mark.component.ts
View file @
1049820a
...
@@ -2,7 +2,6 @@ import { Component, OnInit } from "@angular/core";
...
@@ -2,7 +2,6 @@ import { Component, OnInit } from "@angular/core";
import
{
HttpClient
}
from
"@angular/common/http"
;
import
{
HttpClient
}
from
"@angular/common/http"
;
import
{
NzFormatEmitEvent
}
from
"ng-zorro-antd"
;
import
{
NzFormatEmitEvent
}
from
"ng-zorro-antd"
;
import
{
DefaultService
}
from
"../api"
;
import
{
DefaultService
}
from
"../api"
;
import
{
EChartOption
}
from
"echarts"
;
@
Component
({
@
Component
({
selector
:
"app-qs-mark"
,
selector
:
"app-qs-mark"
,
templateUrl
:
"./qs-mark.component.html"
,
templateUrl
:
"./qs-mark.component.html"
,
...
...
src/main.ts
View file @
1049820a
...
@@ -4,9 +4,9 @@ import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
...
@@ -4,9 +4,9 @@ import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import
{
AppModule
}
from
"./app/app.module"
;
import
{
AppModule
}
from
"./app/app.module"
;
import
{
environment
}
from
"./environments/environment"
;
import
{
environment
}
from
"./environments/environment"
;
/** echarts extensions: */
/** echarts extensions: */
import
"echarts-gl"
;
//
import "echarts-gl";
import
"echarts/theme/macarons.js"
;
//
import "echarts/theme/macarons.js";
import
"echarts/dist/extension/bmap.min.js"
;
//
import "echarts/dist/extension/bmap.min.js";
if
(
environment
.
production
)
{
if
(
environment
.
production
)
{
enableProdMode
();
enableProdMode
();
}
}
...
...
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