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
57f83bed
Commit
57f83bed
authored
Jun 26, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug update
parent
13f91b0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
basic.component.ts
src/main/webapp/app/overAll/basic/basic.component.ts
+1
-1
database.component.html
...webapp/app/overAll/modal/database/database.component.html
+2
-2
database.component.ts
...n/webapp/app/overAll/modal/database/database.component.ts
+15
-9
server.component.html
...ain/webapp/app/overAll/modal/server/server.component.html
+1
-1
No files found.
src/main/webapp/app/overAll/basic/basic.component.ts
View file @
57f83bed
...
...
@@ -550,7 +550,7 @@ export class BasicComponent implements OnInit {
//前往设备类型页面
goEquip
(
item
)
{
let
type
;
if
(
item
.
equipmentType
==
'数据库'
)
{
if
(
item
.
equipmentType
==
'数据库'
||
item
.
equipmentType
==
'业务软件'
)
{
type
=
'database'
;
}
else
if
(
item
.
equipmentType
==
'交换机'
)
{
type
=
'switch'
;
...
...
src/main/webapp/app/overAll/modal/database/database.component.html
View file @
57f83bed
...
...
@@ -42,7 +42,7 @@
告警总数趋势
</div>
<div
class=
"host-item-content"
>
<nz-radio-group
class=
"time-group"
[(
ngModel
)]="
timeTypeFlow
"
(
ngModelChange
)="
changeTypeFlow
()"
>
<nz-radio-group
class=
"time-group"
[(
ngModel
)]="
timeTypeFlow
"
(
ngModelChange
)="
changeTypeFlow
(
$
event
)"
>
<label
nz-radio-button
nzValue=
"3"
>
三天
</label>
<label
nz-radio-button
nzValue=
"4"
>
一周
</label>
<label
nz-radio-button
nzValue=
"5"
>
一月
</label>
...
...
@@ -72,7 +72,7 @@
<nz-col
nzSpan=
"20"
class=
"padding-left-10"
style=
"position: relative;"
>
<div>
<nz-select
class=
"time-group"
nzPlaceHolder=
"选择分组"
(
ngModelChange
)="
changeTypeDatabase
()"
[(
ngModel
)]="
timeTypeDatabase
"
>
(
ngModelChange
)="
changeTypeDatabase
(
$
event
)"
[(
ngModel
)]="
timeTypeDatabase
"
>
<nz-option
nzLabel=
"最近一小时"
nzValue=
"0"
></nz-option>
<nz-option
nzLabel=
"最近一天"
nzValue=
"2"
></nz-option>
<nz-option
nzLabel=
"最近三天"
nzValue=
"3"
></nz-option>
...
...
src/main/webapp/app/overAll/modal/database/database.component.ts
View file @
57f83bed
...
...
@@ -61,19 +61,21 @@ export class DatabaseComponent implements OnInit {
this
.
findDatabase
();
this
.
findIndexDetail
();
this
.
eventFind
();
this
.
changeTypeFlow
();
this
.
changeTypeDatabase
();
this
.
changeTypeFlow
(
'4'
);
this
.
changeTypeDatabase
(
'0'
);
}
//查询所有数据库类型
findDatabase
()
{
this
.
overAllSer
.
findAllDatabaseByHost
(
this
.
hostId
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
this
.
databaseList
=
res
.
data
;
this
.
databaseType
=
this
.
databaseList
[
0
].
type
;
this
.
findTarget
();
}
else
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
data
.
length
>
0
)
{
this
.
databaseList
=
res
.
data
;
this
.
databaseType
=
this
.
databaseList
[
0
].
type
;
this
.
findTarget
();
}
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
}
...
...
@@ -122,8 +124,9 @@ export class DatabaseComponent implements OnInit {
);
}
changeTypeFlow
()
{
changeTypeFlow
(
e
)
{
this
.
isFlowLoading
=
true
;
this
.
timeTypeFlow
=
e
;
this
.
flowObj
=
this
.
commonSer
.
getTimeByType
(
this
.
timeTypeFlow
);
this
.
getAlarmTrend
();
}
...
...
@@ -138,8 +141,10 @@ export class DatabaseComponent implements OnInit {
this
.
overAllSer
.
waringTrendByHost
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
data
)
{
const
response
=
res
.
data
;
this
.
setAlarmTrend
(
response
);
}
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
...
...
@@ -229,8 +234,9 @@ export class DatabaseComponent implements OnInit {
};
}
changeTypeDatabase
()
{
changeTypeDatabase
(
e
)
{
this
.
isDatabaseLoading
=
true
;
this
.
timeTypeDatabase
=
e
;
this
.
databaseObj
=
this
.
commonSer
.
getTimeByType
(
this
.
timeTypeDatabase
);
this
.
databaseChart
();
}
...
...
src/main/webapp/app/overAll/modal/server/server.component.html
View file @
57f83bed
...
...
@@ -73,7 +73,7 @@
</nz-row>
<nz-row>
<nz-col
nzSpan=
"8"
>
IP地址:
</nz-col>
<nz-col
nzSpan=
"16"
>
{{server?.
ip
|| '-'}}
</nz-col>
<nz-col
nzSpan=
"16"
>
{{server?.
host
|| '-'}}
</nz-col>
</nz-row>
<nz-row>
<nz-col
nzSpan=
"8"
>
设备类型:
</nz-col>
...
...
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