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
daf938e5
Commit
daf938e5
authored
Jan 14, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监控项
parent
8c13791b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
12 deletions
+35
-12
alarm-set.component.html
src/main/webapp/app/alarm/alarm-set/alarm-set.component.html
+11
-3
send-set.component.html
src/main/webapp/app/alarm/send-set/send-set.component.html
+8
-2
overAll.service.ts
src/main/webapp/app/overAll/overAll.service.ts
+3
-3
item-list.component.html
.../overAll/template/list/item-list/item-list.component.html
+1
-1
item-list.component.ts
...pp/overAll/template/list/item-list/item-list.component.ts
+8
-2
tri-modal.component.ts
...pp/overAll/template/list/tri-modal/tri-modal.component.ts
+4
-1
No files found.
src/main/webapp/app/alarm/alarm-set/alarm-set.component.html
View file @
daf938e5
...
...
@@ -58,9 +58,17 @@
<span
*
ngIf=
"data.status == 1"
>
禁用
</span>
<span
*
ngIf=
"data.status == 0"
>
启用
</span>
</td>
<td>
发送方式
</td>
<td>
发送对象
</td>
<td>
生成事件
</td>
<td>
<span
*
ngFor=
"let item of data.mediaTypeDtos"
>
{{item.name}}
</span>
</td>
<td>
<span
*
ngFor=
"let item of data.userDtos"
>
{{item.name}}
</span>
</td>
<td>
{{data.event.title}}
</td>
<td
class=
"handle text-center main-color"
>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
(
click
)="
deleteAlarm
(
data
)"
>
删除
</span>
...
...
src/main/webapp/app/alarm/send-set/send-set.component.html
View file @
daf938e5
...
...
@@ -28,7 +28,7 @@
<th>
类型
</th>
<th>
用于告警推送
</th>
<th>
状态
</th>
<th
nzWidth=
"
1
5%"
>
细节
</th>
<th
nzWidth=
"
2
5%"
>
细节
</th>
<th
style=
"text-align: center"
>
操作
</th>
</tr>
</thead>
...
...
@@ -49,7 +49,13 @@
<span
*
ngIf=
"data.status == 0"
>
启用
</span>
<span
*
ngIf=
"data.status == 1"
>
暂停
</span>
</td>
<td>
细节
</td>
<td>
<span
*
ngIf=
"data.type == 0"
>
GSM 调制解调器:"{{data.gsm_modem}}"
</span>
<span
*
ngIf=
"data.type == 1"
>
脚本名称:"{{data.exec_path}}"
</span>
<span
*
ngIf=
"data.type == 2"
>
GSM 调制解调器:"{{data.gsm_modem}}"
</span>
<span
*
ngIf=
"data.type == 3"
>
Jabber 标识符:"{{data.username}}"
</span>
<span
*
ngIf=
"data.type == 100"
>
用户名称:"{{data.username}}"
</span>
</td>
<td
class=
"handle text-center main-color"
>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
(
click
)="
deleteSend
(
data
)"
>
删除
</span>
...
...
src/main/webapp/app/overAll/overAll.service.ts
View file @
daf938e5
...
...
@@ -414,17 +414,17 @@ export class OverAllService {
return
this
.
http
.
get
(
SERVER_API_URL
+
'/itemprototype/find/'
+
params
);
}
//创建
触发器
//创建
阈值
createTri
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/trigger/create'
,
data
);
}
//修改
触发器
//修改
阈值
updateTri
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/trigger/update'
,
data
);
}
//查询
触发器
//查询
阈值列表
findTri
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/trigger/findTrigger'
,
data
);
}
...
...
src/main/webapp/app/overAll/template/list/item-list/item-list.component.html
View file @
daf938e5
...
...
@@ -95,4 +95,4 @@
</div>
<!--监控项-->
<smart-
check
#
smartCheck
(
done
)="
getList
()"
></smart
-check>
<smart-
basi-check
#
smartBasiCheck
(
done
)="
getList
()"
></smart-basi
-check>
src/main/webapp/app/overAll/template/list/item-list/item-list.component.ts
View file @
daf938e5
...
...
@@ -39,7 +39,7 @@ import {BasiCheckComponent} from '../../../../modal/basi-check/basi-check.compon
]
})
export
class
ItemListComponent
implements
OnInit
{
@
ViewChild
(
'smart
Check'
)
smart
Check
:
BasiCheckComponent
;
@
ViewChild
(
'smart
BasiCheck'
)
smartBasi
Check
:
BasiCheckComponent
;
tempName
;
disName
;
...
...
@@ -160,8 +160,14 @@ export class ItemListComponent implements OnInit {
);
}
//添加监测点
showAddModal
(){
this
.
smartCheck
.
showAddModal
(
this
.
hostId
,
this
.
tempName
,
"添加监测点"
);
this
.
smartBasiCheck
.
showAddModal
(
this
.
hostId
,
this
.
tempName
,
"添加监测点"
);
}
//编辑监测点
showEditModal
(
item
){
this
.
smartBasiCheck
.
showEditModal
(
this
.
hostId
,
item
.
itemid
,
this
.
tempName
,
item
.
templateid
);
}
}
src/main/webapp/app/overAll/template/list/tri-modal/tri-modal.component.ts
View file @
daf938e5
...
...
@@ -50,7 +50,10 @@ export class TriModalComponent implements OnInit {
this
.
triggerId
=
id
;
this
.
isVisiable
=
true
;
this
.
hostName
=
hostName
;
this
.
overAllSer
.
findTriggerById
(
id
).
subscribe
(
const
data
=
{
triggerid
:
id
}
this
.
overAllSer
.
findTri
(
data
).
subscribe
(
(
res
)
=>
{
const
data
=
res
.
data
[
0
];
this
.
triggerObj
.
expression
=
data
.
expression
;
...
...
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