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
a8943c91
Commit
a8943c91
authored
Jan 19, 2020
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug update
parent
6c625898
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
26 deletions
+22
-26
business-warning.component.html
...-warning/business-warning/business-warning.component.html
+5
-5
business-warning.component.ts
...ly-warning/business-warning/business-warning.component.ts
+2
-8
resource-warning.component.html
...-warning/resource-warning/resource-warning.component.html
+3
-3
resource-warning.component.ts
...ly-warning/resource-warning/resource-warning.component.ts
+3
-2
work-warning.component.html
...pp/early-warning/work-warning/work-warning.component.html
+5
-5
work-warning.component.ts
.../app/early-warning/work-warning/work-warning.component.ts
+3
-2
tsconfig.json
tsconfig.json
+1
-1
No files found.
src/main/webapp/app/early-warning/business-warning/business-warning.component.html
View file @
a8943c91
...
...
@@ -21,18 +21,18 @@
<div
nz-col
nzSpan=
"6"
>
预警级别:
<nz-radio-group
[(
ngModel
)]="
obj
.
ruleLevel
"
>
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
()"
nz-radio-button
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
Value
()"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"1
2
"
>
<div
nz-col
nzSpan=
"1
0
"
>
预警时间:
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"
6
"
>
<div
nz-col
nzSpan=
"
8
"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<nz-date-picker
nzFormat=
"yyyy-MM-dd"
...
...
@@ -47,11 +47,11 @@
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"10"
>
<input
type=
"text"
(
keyup
.
enter
)="
search
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
<input
type=
"text"
(
keyup
.
enter
)="
search
Value
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
</div>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
<button
(
click
)="
search
Value
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</div>
...
...
src/main/webapp/app/early-warning/business-warning/business-warning.component.ts
View file @
a8943c91
...
...
@@ -75,11 +75,6 @@ export class BusinessWarningComponent implements OnInit {
}
}
//搜索
search
()
{
this
.
page
.
pageNum
=
1
;
this
.
getList
();
}
//时间改变
changeTimeType
(
e
)
{
...
...
@@ -93,10 +88,9 @@ export class BusinessWarningComponent implements OnInit {
//查询
searchValue
()
{
if
(
this
.
time
.
timeType
==
'99'
)
{
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
'
)
+
' 00:00:00'
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
'
)
+
' 23:59:59'
;
}
this
.
getList
();
this
.
page
.
pageNum
=
1
;
this
.
getList
();
}
...
...
src/main/webapp/app/early-warning/resource-warning/resource-warning.component.html
View file @
a8943c91
...
...
@@ -25,14 +25,14 @@
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"1
2
"
>
<div
nz-col
nzSpan=
"1
0
"
>
预警时间:
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"
6
"
>
<div
nz-col
nzSpan=
"
8
"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<nz-date-picker
nzFormat=
"yyyy-MM-dd"
...
...
@@ -51,7 +51,7 @@
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
</div>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
<button
(
click
)="
search
Value
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</div>
...
...
src/main/webapp/app/early-warning/resource-warning/resource-warning.component.ts
View file @
a8943c91
...
...
@@ -95,9 +95,10 @@ export class ResourceWarningComponent implements OnInit {
//查询
searchValue
()
{
if
(
this
.
time
.
timeType
==
'99'
)
{
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
'
)
+
' 00:00:00'
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
'
)
+
' 23:59:59'
;
}
this
.
page
.
pageNum
=
1
;
this
.
getList
();
}
...
...
src/main/webapp/app/early-warning/work-warning/work-warning.component.html
View file @
a8943c91
...
...
@@ -21,18 +21,18 @@
<div
nz-col
nzSpan=
"6"
>
预警级别:
<nz-radio-group
[(
ngModel
)]="
obj
.
ruleLevel
"
>
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
()"
nz-radio-button
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
Value
()"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"1
2
"
>
<div
nz-col
nzSpan=
"1
0
"
>
预警时间:
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"
6
"
>
<div
nz-col
nzSpan=
"
8
"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<nz-date-picker
nzFormat=
"yyyy-MM-dd"
...
...
@@ -47,11 +47,11 @@
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"10"
>
<input
type=
"text"
(
keyup
.
enter
)="
search
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
<input
type=
"text"
(
keyup
.
enter
)="
search
Value
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
</div>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
<button
(
click
)="
search
Value
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</div>
...
...
src/main/webapp/app/early-warning/work-warning/work-warning.component.ts
View file @
a8943c91
...
...
@@ -97,9 +97,10 @@ export class WorkWarningComponent implements OnInit {
//查询
searchValue
()
{
if
(
this
.
time
.
timeType
==
'99'
)
{
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
'
)
+
' 00:00:00'
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
'
)
+
' 23:59:59'
;
}
this
.
page
.
pageNum
=
1
;
this
.
getList
();
}
...
...
tsconfig.json
View file @
a8943c91
...
...
@@ -10,7 +10,7 @@
"noImplicitAny"
:
false
,
"skipLibCheck"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"outDir"
:
"build/
master
/app"
,
"outDir"
:
"build/
www
/app"
,
"lib"
:
[
"es7"
,
"dom"
],
"typeRoots"
:
[
"node_modules/@types"
...
...
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