Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
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
wangqinghua
smart
Commits
22d0ba8d
Commit
22d0ba8d
authored
Jan 02, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(click)="ngOnInit()"
parent
b287c733
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
17 deletions
+20
-17
alarm-set.component.html
src/main/webapp/app/alarm/alarm-set/alarm-set.component.html
+1
-2
alarm-set.component.ts
src/main/webapp/app/alarm/alarm-set/alarm-set.component.ts
+2
-1
home.component.html
src/main/webapp/app/home/home.component.html
+0
-0
home.component.ts
src/main/webapp/app/home/home.component.ts
+8
-8
home.css
src/main/webapp/app/home/home.css
+2
-1
topology-img.component.html
.../app/netTopology/topology-img/topology-img.component.html
+3
-5
documentation.css
src/main/webapp/content/css/documentation.css
+4
-0
No files found.
src/main/webapp/app/alarm/alarm-set/alarm-set.component.html
View file @
22d0ba8d
...
...
@@ -21,7 +21,7 @@
<div
nz-row
class=
"search-form"
>
<div
nz-col
nzSpan=
"12"
>
<nz-select
style=
"width: 200px;"
nzShowSearch
nzAllowClear
nzPlaceHolder=
"选择告警组"
[(
ngModel
)]="
alertGroupId
"
(
ngModelChange
)="
getList
()"
>
<nz-select
style=
"width: 200px;"
nzPlaceHolder=
"选择告警组"
[(
ngModel
)]="
alertGroupId
"
(
ngModelChange
)="
getList
()"
>
<ng-container
*
ngFor=
"let item of groupList;let i = index;"
>
<nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.id}}"
></nz-option>
</ng-container>
...
...
@@ -32,7 +32,6 @@
</button>
<button
nz-button
nzType=
"default"
(
click
)="
editGroup
()"
><i
class=
"anticon anticon-form"
></i>
编辑
</button>
<button
nz-button
nzType=
"default"
(
click
)="
deleteGroup
()"
><i
class=
"anticon anticon-close-circle-o"
></i>
删除
</button>
<!--<button nz-button nzType="default"><i class="anticon anticon-pause-circle-o"></i>暂停</button>-->
</div>
</div>
<div
nz-row
class=
"search-form"
>
...
...
src/main/webapp/app/alarm/alarm-set/alarm-set.component.ts
View file @
22d0ba8d
...
...
@@ -26,7 +26,6 @@ export class AlarmSetComponent implements OnInit {
}
ngOnInit
()
{
this
.
getList
();
this
.
getGroupAlarm
();
}
...
...
@@ -53,6 +52,8 @@ export class AlarmSetComponent implements OnInit {
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
groupList
=
res
.
data
;
this
.
alertGroupId
=
this
.
groupList
[
0
].
id
;
this
.
getList
();
}
}
);
...
...
src/main/webapp/app/home/home.component.html
View file @
22d0ba8d
This diff is collapsed.
Click to expand it.
src/main/webapp/app/home/home.component.ts
View file @
22d0ba8d
...
...
@@ -335,9 +335,9 @@ export class HomeComponent implements OnInit,AfterViewInit {
name
:
"设备"
,
type
:
'pie'
,
clockWise
:
true
,
center
:
[
"4
5
%"
,
"50%"
],
center
:
[
"4
7
%"
,
"50%"
],
radius
:
[
'40%'
,
'60%'
],
color
:
[
'#f
cee56'
,
'#ff8400'
,
'#f93215'
,
'#701002
'
,
'#2fb35b'
,
'#a0a0a0'
],
color
:
[
'#f
93215'
,
'#ff8400
'
,
'#2fb35b'
,
'#a0a0a0'
],
label
:
{
normal
:
{
show
:
false
,
...
...
@@ -350,10 +350,10 @@ export class HomeComponent implements OnInit,AfterViewInit {
}
},
data
:
[
{
value
:
data
.
warning
,
name
:
'告警'
},
{
value
:
data
.
disabled
,
name
:
'禁止'
},
{
value
:
data
.
high
,
name
:
'严重'
},
{
value
:
data
.
warning
,
name
:
'告警'
},
{
value
:
data
.
normal
,
name
:
'正常'
},
{
value
:
data
.
disabled
,
name
:
'禁止'
},
],
itemStyle
:
{
emphasis
:
{
...
...
@@ -422,9 +422,9 @@ export class HomeComponent implements OnInit,AfterViewInit {
name
:
"监测点"
,
type
:
'pie'
,
clockWise
:
true
,
center
:
[
"4
5
%"
,
"50%"
],
center
:
[
"4
7
%"
,
"50%"
],
radius
:
[
'40%'
,
'60%'
],
color
:
[
'#f
cee56'
,
'#ff8400'
,
'#f93215'
,
'#701002
'
,
'#2fb35b'
,
'#a0a0a0'
],
color
:
[
'#f
93215'
,
'#ff8400
'
,
'#2fb35b'
,
'#a0a0a0'
],
label
:
{
normal
:
{
show
:
false
,
...
...
@@ -437,10 +437,10 @@ export class HomeComponent implements OnInit,AfterViewInit {
}
},
data
:
[
{
value
:
data
.
warning
,
name
:
'告警'
},
{
value
:
data
.
disabled
,
name
:
'禁止'
},
{
value
:
data
.
high
,
name
:
'严重'
},
{
value
:
data
.
warning
,
name
:
'告警'
},
{
value
:
data
.
normal
,
name
:
'正常'
},
{
value
:
data
.
disabled
,
name
:
'禁止'
},
],
itemStyle
:
{
emphasis
:
{
...
...
src/main/webapp/app/home/home.css
View file @
22d0ba8d
...
...
@@ -41,6 +41,7 @@ p {
.rightDiv
{
border
:
1px
solid
#ddd
;
padding
:
10px
!important
;
}
.rightDiv
>
p
{
...
...
@@ -96,7 +97,7 @@ p {
}
.calcle-follow
{
position
:
absolute
;
top
:
5px
;
top
:
1
5px
;
right
:
15px
;
}
.chart-font
{
...
...
src/main/webapp/app/netTopology/topology-img/topology-img.component.html
View file @
22d0ba8d
...
...
@@ -20,22 +20,20 @@
</div>
<div
nz-row
class=
"search-form"
>
<div
nz-col
nzSpan=
"12"
>
<
button
nz-button
(
click
)="
addIcon
()"
nzType=
"default"
><i
class=
"anticon anticon-plus-circle-o"
></i>
添加图标
</button
>
<
!--<button nz-button (click)="addIcon()" nzType="default"><i class="anticon anticon-plus-circle-o"></i>添加图标</button>--
>
</div>
</div>
<nz-table
#
nzTable
[
nzData
]="
iconList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNum
"
[
nzPageIndex
]="
pageNum
"
[
nzPageSize
]="
pageCount
"
(
nzPageIndexChange
)="
changePage
($
event
)"
>
<thead>
<tr>
<th>
一级类型
</th>
<th>
默认图标
</th>
<th>
所有图标
</th>
<th>
资源类型
</th>
<th>
图标
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let data of iconList"
>
<td>
{{data.firstTypeName}}
</td>
<td>
{{data.defaultIcon}}
</td>
<td>
<img
style=
"width: 40px;"
[
src
]="
imgUrl
+
data
.
url
"
>
</td>
...
...
src/main/webapp/content/css/documentation.css
View file @
22d0ba8d
...
...
@@ -160,4 +160,7 @@
}
.color-green
{
color
:
green
;
}
.padding-10
{
padding
:
10px
;
}
\ No newline at end of file
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