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
2684c3ca
Commit
2684c3ca
authored
Jan 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9a8a65c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
14 deletions
+27
-14
resource-alarm.component.html
...app/analysis/resource-alarm/resource-alarm.component.html
+1
-2
resource-usabil.component.html
...p/analysis/resource-usabil/resource-usabil.component.html
+18
-12
template.component.html
src/main/webapp/app/overAll/template/template.component.html
+4
-0
template.component.ts
src/main/webapp/app/overAll/template/template.component.ts
+4
-0
No files found.
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.html
View file @
2684c3ca
...
...
@@ -150,8 +150,7 @@
</ng-container>
</tbody>
</nz-table>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i>
</ng-template>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i></ng-template>
<nz-modal
[(
nzVisible
)]="
isVisiable
"
nzWidth=
"780"
[
nzTitle
]="
title
"
[
nzFooter
]="
null
"
(
nzOnCancel
)="
handleCancel
()"
>
<nz-table
#
nzTable
[
nzData
]="
modalList
"
[
nzFrontPagination
]="
true
"
>
<thead>
...
...
src/main/webapp/app/analysis/resource-usabil/resource-usabil.component.html
View file @
2684c3ca
...
...
@@ -36,18 +36,24 @@
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '5'"
>
<nz-date-picker
nzShowTime
[(
ngModel
)]="
startTime
"
nzPlaceHolder=
"开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat=
"yyyy-MM-dd HH:mm:ss"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
<div
nz-col
nzSpan=
"8"
>
<ng-container
*
ngIf=
"timeType == '5'"
>
<nz-date-picker
nzShowTime
[(
ngModel
)]="
startTime
"
nzPlaceHolder=
"开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat=
"yyyy-MM-dd HH:mm:ss"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
</ng-container>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
...
...
src/main/webapp/app/overAll/template/template.component.html
View file @
2684c3ca
...
...
@@ -122,6 +122,7 @@
<span
(
click
)="
goToTri
(
item
)"
>
{{item.triggersCount}}
</span>
</td>
<td
class=
"handle main-color"
>
<span
(
click
)="
cloneTemp
(
item
)"
>
克隆
</span>
<span
(
click
)="
showTempEditModal
(
item
)"
>
编辑
</span>
<span
(
click
)="
showDeleteConfirm
(
item
)"
>
删除
</span>
</td>
...
...
@@ -131,6 +132,9 @@
</tbody>
</nz-table>
<nz-spin
style=
"position: absolute;top: 35%;left: 50%;"
[
nzIndicator
]="
indicatorTemplate
"
nzTip=
'克隆中...'
[
nzSpinning
]="
isClone
"
></nz-spin>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i></ng-template>
<!-- 添加资源-->
<smart-basic-edit
#
basicEdit
(
done
)="
handleOk
($
event
)"
></smart-basic-edit>
<!--添加监测点-->
...
...
src/main/webapp/app/overAll/template/template.component.ts
View file @
2684c3ca
...
...
@@ -62,6 +62,8 @@ export class TemplateComponent implements OnInit {
templateList
=
[];
indeterminate
;
isClone
=
false
;
constructor
(
private
fb
:
FormBuilder
,
private
overAllSer
:
OverAllService
,
private
router
:
Router
,
private
modalService
:
NzModalService
,
private
message
:
NzMessageService
,
private
main
:
JhiMainComponent
)
{
}
...
...
@@ -409,6 +411,7 @@ export class TemplateComponent implements OnInit {
nzOkText
:
'确定'
,
nzOkType
:
'danger'
,
nzOnOk
:
()
=>
{
this
.
isClone
=
true
;
const
data
=
{
templateid
:
Number
(
item
.
templateid
)
};
...
...
@@ -420,6 +423,7 @@ export class TemplateComponent implements OnInit {
}
else
{
this
.
message
.
info
(
res
.
errMsg
);
}
this
.
isClone
=
false
;
}
);
},
...
...
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