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
6e87ad81
Commit
6e87ad81
authored
Oct 31, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style update
parent
7d9b25df
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
34 deletions
+16
-34
alarm-list.component.html
...ain/webapp/app/alarm/alarm-list/alarm-list.component.html
+0
-1
alarm-log.component.html
src/main/webapp/app/alarm/alarm-log/alarm-log.component.html
+0
-1
now-alarm.component.html
src/main/webapp/app/alarm/now-alarm/now-alarm.component.html
+2
-2
home.component.html
src/main/webapp/app/home/home.component.html
+1
-1
navbar.component.html
src/main/webapp/app/layouts/navbar/navbar.component.html
+3
-3
basi-check.component.html
...ain/webapp/app/modal/basi-check/basi-check.component.html
+2
-2
basi-check.component.ts
src/main/webapp/app/modal/basi-check/basi-check.component.ts
+1
-1
basic-edit.component.html
...ain/webapp/app/modal/basic-edit/basic-edit.component.html
+0
-7
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+2
-2
basic-detail.component.ts
.../app/overAll/basic/basic-detail/basic-detail.component.ts
+1
-1
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+0
-9
overAll.service.ts
src/main/webapp/app/overAll/overAll.service.ts
+1
-1
group.component.html
src/main/webapp/app/system/group/group.component.html
+3
-3
No files found.
src/main/webapp/app/alarm/alarm-list/alarm-list.component.html
View file @
6e87ad81
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
<button
(
click
)="
searchValue
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
<button
(
click
)="
searchValue
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</div>
</div>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<button
[
nzLoading
]="
isDownload
"
(
click
)="
downLoadExcel
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/app/alarm/alarm-log/alarm-log.component.html
View file @
6e87ad81
...
@@ -56,7 +56,6 @@
...
@@ -56,7 +56,6 @@
</ng-container>
</ng-container>
</div>
</div>
<div
nz-col
nzSpan=
"4"
class=
"text-right"
>
<div
nz-col
nzSpan=
"4"
class=
"text-right"
>
<button
[
nzLoading
]="
isDownload
"
(
click
)="
downLoadExcel
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/app/alarm/now-alarm/now-alarm.component.html
View file @
6e87ad81
...
@@ -26,12 +26,12 @@
...
@@ -26,12 +26,12 @@
</span>
</span>
</div>
</div>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<button
[
nzLoading
]="
isDownload
"
(
click
)="
downLoadExcel
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button
>
<!-- <button [nzLoading]="isDownload" (click)="downLoadExcel()" nz-button nzType="default"><i class="anticon anticon-download"></i>下载</button>--
>
</div>
</div>
</div>
</div>
<div
class=
"tag-warn tag-form handle"
>
<div
class=
"tag-warn tag-form handle"
>
<ng-container
*
ngFor=
"let item of warnCountList"
>
<ng-container
*
ngFor=
"let item of warnCountList"
>
<span
[
ngClass
]="{'
select-border
'
:
selectHostId =
=
item
.
hostid
}"
(
click
)="
search
(
item
.
hostid
)"
>
<span
[
ngClass
]="{'
select-border
'
:
selectHostId =
=
item
.
hostid
}"
(
click
)="
search
()"
>
<nz-tag
*
ngIf=
"item.level == 4 || item.level == 5"
class=
"tag-red"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"item.level == 4 || item.level == 5"
class=
"tag-red"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"item.level == 2 || item.level == 3"
class=
"tag-yellow"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.level == 2 || item.level == 3"
class=
"tag-yellow"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
{{item.name}}({{item.size}})
{{item.name}}({{item.size}})
...
...
src/main/webapp/app/home/home.component.html
View file @
6e87ad81
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</div>
</div>
</div>
</div>
<div
#
rightDiv
nz-col
nzSpan=
"8"
class=
"rightDiv"
style=
"height: 500px;"
>
<div
#
rightDiv
nz-col
nzSpan=
"8"
class=
"rightDiv"
style=
"height: 500px;"
>
<h2>
设备类型
>
</h2>
<h2>
设备类型
</h2>
<div
echarts
[
options
]="
rightTwoChart
"
style=
"height: 250px;width: 100%;margin-top: 50px"
></div>
<div
echarts
[
options
]="
rightTwoChart
"
style=
"height: 250px;width: 100%;margin-top: 50px"
></div>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/app/layouts/navbar/navbar.component.html
View file @
6e87ad81
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
</a>
</a>
<ul
nz-menu
>
<ul
nz-menu
>
<li
(
click
)="
showPasswordModal
()"
nz-menu-item
>
修改密码
</li>
<li
(
click
)="
showPasswordModal
()"
nz-menu-item
>
修改密码
</li>
<ng-container
*
ngIf=
"roleType == 3"
>
<!-- <ng-container *ngIf="roleType == 3">--
>
<li
(
click
)="
showSeparationModal
()"
nz-menu-item
>
三员分立
</li
>
<!-- <li (click)="showSeparationModal()" nz-menu-item>三员分立</li>--
>
</ng-container
>
<!-- </ng-container>--
>
<li
nz-menu-item
(
click
)="
logout
()"
>
退出
</li>
<li
nz-menu-item
(
click
)="
logout
()"
>
退出
</li>
</ul>
</ul>
</nz-dropdown>
</nz-dropdown>
...
...
src/main/webapp/app/modal/basi-check/basi-check.component.html
View file @
6e87ad81
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<input
id=
"key"
style=
"width: 85%;display: inline-block"
placeholder=
"输入键值"
type=
"text"
name=
"key"
<input
id=
"key"
style=
"width: 85%;display: inline-block"
placeholder=
"输入键值"
type=
"text"
name=
"key"
nz-input
formControlName=
"key"
>
nz-input
formControlName=
"key"
>
<!-- <button nz-button nzType="primary" (click)="showKeymodal()">选择</button>-->
<!-- <button nz-button nzType="primary" (click)="showKeymodal()">选择</button>-->
<nz-form-explain
*
ngIf=
"validateForm.get('key').dirty && validateForm.get('key').errors"
>
请
选择
键值!
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('key').dirty && validateForm.get('key').errors"
>
请
输入
键值!
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
>
监控项描述
</nz-form-label>
<nz-form-label
nzRequired
[
nzSpan
]="
6
"
>
监控项描述
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<textarea
nz-input
id=
"description"
name=
"description"
formControlName=
"description"
placeholder=
"监控项描述"
[
nzAutosize
]="{
minRows:
2
,
maxRows:
6
}"
></textarea>
<textarea
nz-input
id=
"description"
name=
"description"
formControlName=
"description"
placeholder=
"监控项描述"
[
nzAutosize
]="{
minRows:
2
,
maxRows:
6
}"
></textarea>
</nz-form-control>
</nz-form-control>
...
...
src/main/webapp/app/modal/basi-check/basi-check.component.ts
View file @
6e87ad81
...
@@ -73,7 +73,7 @@ export class BasiCheckComponent implements OnInit {
...
@@ -73,7 +73,7 @@ export class BasiCheckComponent implements OnInit {
delay
:
[
null
,
[
Validators
.
required
]],
delay
:
[
null
,
[
Validators
.
required
]],
interfaceid
:
[
null
],
interfaceid
:
[
null
],
templateid
:[
null
],
templateid
:[
null
],
description
:[
null
],
description
:[
null
,[
Validators
.
required
]
],
});
});
this
.
triggerObj
=
{
this
.
triggerObj
=
{
condition
:
''
,
condition
:
''
,
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.html
View file @
6e87ad81
...
@@ -52,13 +52,6 @@
...
@@ -52,13 +52,6 @@
<nz-form-control
[
nzSpan
]="
20
"
>
<nz-form-control
[
nzSpan
]="
20
"
>
<ng-container
*
ngFor=
"let item of interfaceslist;let i = index;"
>
<ng-container
*
ngFor=
"let item of interfaceslist;let i = index;"
>
<div
nz-row
[
nzGutter
]="
12
"
>
<div
nz-row
[
nzGutter
]="
12
"
>
<nz-form-control
nz-col
[
nzSpan
]="
5
"
>
<nz-select
name=
"main"
nzPlaceHolder=
"选择接口类型"
[(
ngModel
)]="
item
.
main
"
(
ngModelChange
)="
changeMain
(
i
)"
>
<nz-option
nzValue=
"1"
nzLabel=
"默认"
></nz-option>
<nz-option
nzValue=
"0"
nzLabel=
"不默认"
></nz-option>
</nz-select>
</nz-form-control>
<nz-form-control
nz-col
[
nzSpan
]="
4
"
>
<nz-form-control
nz-col
[
nzSpan
]="
4
"
>
<input
type=
"text"
placeholder=
"IP地址"
nz-input
name=
"ip"
[(
ngModel
)]="
item
.
ip
"
>
<input
type=
"text"
placeholder=
"IP地址"
nz-input
name=
"ip"
[(
ngModel
)]="
item
.
ip
"
>
</nz-form-control>
</nz-form-control>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
6e87ad81
...
@@ -172,8 +172,8 @@
...
@@ -172,8 +172,8 @@
<span
(
click
)="
showEditModal
(
data
)"
>
编辑监测点
</span>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑监测点
</span>
<span
(
click
)="
deleteCheckItem
(
data
)"
>
删除监测点
</span>
<span
(
click
)="
deleteCheckItem
(
data
)"
>
删除监测点
</span>
<br>
<br>
<span
*
ngIf=
"data.triggerCount == 0"
(
click
)="
showAddThresholdModal
(
data
)"
>
添加阈值
</span>
<span
(
click
)="
showAddThresholdModal
(
data
)"
>
添加阈值
</span>
<span
*
ngIf=
"data.triggerCount > 0"
(
click
)="
showEditThresholdModal
(
data
)"
>
编辑阈值
</span>
<span
(
click
)="
showEditThresholdModal
(
data
)"
>
编辑阈值
</span>
</ng-container>
</ng-container>
<span
*
ngIf=
"data.status == 0 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color: green"
>
已启用
</span>
<span
*
ngIf=
"data.status == 0 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color: green"
>
已启用
</span>
<span
*
ngIf=
"data.status == 0 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color: red"
>
不支持的
</span>
<span
*
ngIf=
"data.status == 0 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color: red"
>
不支持的
</span>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.ts
View file @
6e87ad81
...
@@ -651,7 +651,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -651,7 +651,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
//添加阈值
//添加阈值
showAddThresholdModal
(
item
){
showAddThresholdModal
(
item
){
this
.
smartThreshold
.
showAddModal
(
"添加阈值"
,
item
.
i
temid
,
this
.
realN
ame
);
this
.
smartThreshold
.
showAddModal
(
"添加阈值"
,
item
.
i
d
,
item
.
n
ame
);
}
}
//编辑阈值
//编辑阈值
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
6e87ad81
...
@@ -86,12 +86,6 @@
...
@@ -86,12 +86,6 @@
</button>
</button>
</div>
</div>
<div
nz-col
nzSpan=
"7"
class=
"text-right button"
>
<div
nz-col
nzSpan=
"7"
class=
"text-right button"
>
<button
(
click
)="
openBatchHost
(
1
,'停止')"
nz-button
nzType=
"default"
>
<i
class=
"anticon anticon-pause-circle-o"
></i>
停止监控
</button>
<button
(
click
)="
openBatchHost
(
0
,'开启')"
nz-button
nzType=
"default"
>
<i
class=
"anticon anticon-play-circle-o"
></i>
开启监控
</button>
<button
(
click
)="
batchDeleteConfirm
()"
nz-button
nzType=
"default"
>
<button
(
click
)="
batchDeleteConfirm
()"
nz-button
nzType=
"default"
>
<i
class=
"anticon anticon-close-circle-o"
></i>
删除资源
<i
class=
"anticon anticon-close-circle-o"
></i>
删除资源
</button>
</button>
...
@@ -102,7 +96,6 @@
...
@@ -102,7 +96,6 @@
(
nzPageIndexChange
)="
change
($
event
)"
>
(
nzPageIndexChange
)="
change
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th
[
nzChecked
]="
allChecked
"
></th>
<th>
名称
</th>
<th>
名称
</th>
<th>
状态
</th>
<th>
状态
</th>
<th>
设备类型
</th>
<th>
设备类型
</th>
...
@@ -113,8 +106,6 @@
...
@@ -113,8 +106,6 @@
<tbody>
<tbody>
<ng-container
*
ngFor=
"let item of nzTable.data"
>
<ng-container
*
ngFor=
"let item of nzTable.data"
>
<tr>
<tr>
<td
nzShowCheckbox
(
nzCheckedChange
)="
selectChecked
($
event
,
item
)"
[(
nzChecked
)]="
item
.
checked
"
></td>
<td
class=
"cursor main-color"
>
<td
class=
"cursor main-color"
>
<span
(
click
)="
goDetail
(
item
)"
>
{{item.name}}
</span>
<span
(
click
)="
goDetail
(
item
)"
>
{{item.name}}
</span>
</td>
</td>
...
...
src/main/webapp/app/overAll/overAll.service.ts
View file @
6e87ad81
...
@@ -37,7 +37,7 @@ export class OverAllService {
...
@@ -37,7 +37,7 @@ export class OverAllService {
//停止-开启监控
//停止-开启监控
updateHostStatus
(
data
):
Observable
<
any
>
{
updateHostStatus
(
data
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/host/updateHostStatus
/
'
+
this
.
commonSer
.
toQuery
(
data
));
return
this
.
http
.
get
(
SERVER_API_URL
+
'/host/updateHostStatus
?
'
+
this
.
commonSer
.
toQuery
(
data
));
}
}
//批量停止开启监控接口
//批量停止开启监控接口
...
...
src/main/webapp/app/system/group/group.component.html
View file @
6e87ad81
...
@@ -42,9 +42,9 @@
...
@@ -42,9 +42,9 @@
<button
(
click
)="
showUserModal
()"
nz-button
nzType=
"primary"
>
新增用户
</button>
<button
(
click
)="
showUserModal
()"
nz-button
nzType=
"primary"
>
新增用户
</button>
<button
(
click
)="
batchDelete
()"
nz-button
nzType=
"default"
>
批量删除
</button>
<button
(
click
)="
batchDelete
()"
nz-button
nzType=
"default"
>
批量删除
</button>
<!--<button nz-button nzType="default">批量修改</button>-->
<!--<button nz-button nzType="default">批量修改</button>-->
<button
(
click
)="
downLoad
()"
nz-button
nzType=
"default"
>
下载模版
</button
>
<!-- <button (click)="downLoad()" nz-button nzType="default">下载模版</button>--
>
<button
(
click
)="
showUploadModalOrg
()"
nz-button
nzType=
"default"
>
导入组织
</button
>
<!-- <button (click)="showUploadModalOrg()" nz-button nzType="default">导入组织</button>--
>
<button
(
click
)="
showUploadModalUser
()"
nz-button
nzType=
"default"
>
导入用户
</button
>
<!-- <button (click)="showUploadModalUser()" nz-button nzType="default">导入用户</button>--
>
<button
style=
"float: right"
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
<button
style=
"float: right"
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
<input
style=
"display: inline-block;width: 150px;margin-right: 10px;float: right"
nz-input
placeholder=
"姓名/手机号码"
(
keyup
.
enter
)="
search
()"
[(
ngModel
)]="
name
"
>
<input
style=
"display: inline-block;width: 150px;margin-right: 10px;float: right"
nz-input
placeholder=
"姓名/手机号码"
(
keyup
.
enter
)="
search
()"
[(
ngModel
)]="
name
"
>
</div>
</div>
...
...
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