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
ddffc116
Commit
ddffc116
authored
Dec 24, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6c33be72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
4 deletions
+32
-4
warn-list.component.html
src/main/webapp/app/modal/warn-list/warn-list.component.html
+1
-1
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+1
-1
basic-detail.component.ts
.../app/overAll/basic/basic-detail/basic-detail.component.ts
+30
-2
No files found.
src/main/webapp/app/modal/warn-list/warn-list.component.html
View file @
ddffc116
...
...
@@ -32,7 +32,7 @@
<ng-container
*
ngIf=
"data.r_clock"
>
已恢复
</ng-container>
<ng-container
*
ngIf=
"!data.r_clock"
>
告警中
</ng-container>
</td>
<td
class=
"list-icon"
(
click
)="
showLog
(
data
)"
><i
class=
"anticon anticon-profile"
></i></td>
<td
class=
"list-icon
cursor
"
(
click
)="
showLog
(
data
)"
><i
class=
"anticon anticon-profile"
></i></td>
</tr>
</tbody>
</nz-table>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
ddffc116
...
...
@@ -25,7 +25,7 @@
<div
class=
"tabset-btn"
>
<button
(
click
)="
showCheckModal
()"
nz-button
nzType=
"default"
>
添加监测点
</button>
<!--<button nz-button nzType="default">编辑</button>-->
<button
nz-button
nzType=
"default"
>
删除
</button>
<button
(
click
)="
showDeleteConfirm
()"
nz-button
nzType=
"default"
>
删除
</button>
</div>
<div
class=
"releative"
#
checkEle
>
<div
#
colorEle
class=
"checkTags tag-form"
>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.ts
View file @
ddffc116
import
{
AfterViewInit
,
Component
,
ElementRef
,
OnInit
,
Renderer
,
ViewChild
,}
from
'@angular/core'
;
import
{
ActivatedRoute
}
from
'@angular/router'
;
import
{
ActivatedRoute
,
Router
}
from
'@angular/router'
;
import
{
OverAllService
}
from
'../../overAll.service'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'@angular/forms'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
...
...
@@ -108,7 +108,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
validateForm
:
FormGroup
;
constructor
(
private
routerInfo
:
ActivatedRoute
,
private
message
:
NzMessageService
,
private
overAllSer
:
OverAllService
,
private
renderer
:
Renderer
,
private
overAllSer
:
OverAllService
,
private
renderer
:
Renderer
,
private
router
:
Router
,
private
fb
:
FormBuilder
,
private
modalService
:
NzModalService
,
private
datePipe
:
DatePipe
)
{
}
...
...
@@ -829,4 +829,32 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
});
}
//删除单个资源
showDeleteConfirm
()
{
this
.
modalService
.
confirm
({
nzTitle
:
'删除'
,
nzContent
:
'<b style="color: red;">确认删除该资源吗?</b>'
,
nzOkText
:
'确定'
,
nzOkType
:
'danger'
,
nzOnOk
:
()
=>
{
const
data
=
{
hostids
:[]
};
data
.
hostids
.
push
(
this
.
hostId
);
this
.
overAllSer
.
deleteHostPost
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
message
.
success
(
'删除成功'
);
this
.
router
.
navigate
([
'app/main/basic'
]);
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
}
);
},
nzCancelText
:
'取消'
,
nzOnCancel
:
()
=>
console
.
log
(
'Cancel'
)
});
}
}
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