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
258f38d1
Commit
258f38d1
authored
Dec 19, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
15a41fab
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
31 deletions
+65
-31
home.component.html
src/main/webapp/app/home/home.component.html
+25
-27
home.component.ts
src/main/webapp/app/home/home.component.ts
+21
-1
basic-edit.component.ts
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
+6
-0
select-person.component.html
...bapp/app/modal/select-person/select-person.component.html
+1
-2
select-person.component.ts
...webapp/app/modal/select-person/select-person.component.ts
+2
-1
overAll.service.ts
src/main/webapp/app/overAll/overAll.service.ts
+10
-0
No files found.
src/main/webapp/app/home/home.component.html
View file @
258f38d1
<!--<!–资源可用性统计–>-->
<!--资源可用性统计-->
<!--<div nz-row class="breadcrumbs">-->
<div
nz-row
class=
"breadcrumbs"
>
<!--<div nz-col nzSpan="16">-->
<div
nz-col
nzSpan=
"16"
>
<!--<nz-breadcrumb class="padding-8-0">-->
<nz-breadcrumb
class=
"padding-8-0"
>
<!--<nz-breadcrumb-item>-->
<nz-breadcrumb-item>
<!--当前位置:首页-->
当前位置:首页
<!--</nz-breadcrumb-item>-->
</nz-breadcrumb-item>
<!--</nz-breadcrumb>-->
</nz-breadcrumb>
<!--</div>-->
</div>
<!--<div nz-col nzSpan="8" class="text-right">-->
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<!--<button (click)="search()" nz-button nzType="primary"><i class="anticon anticon-search"></i></button>-->
<button
(
click
)="
search
()"
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-search"
></i></button>
<!--<button nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>-->
<button
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-sync"
></i></button>
<!--<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>-->
<button
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-arrows-alt"
></i></button>
<!--</div>-->
</div>
<!--</div>-->
</div>
<!--<div nz-row nzGutter="4">-->
<div
nz-row
nzGutter=
"4"
>
<!--<div nz-col nzSpan="16">-->
<div
nz-col
nzSpan=
"16"
>
<!--<nz-spin [nzSpinning]="isTopLoading">-->
<div
echarts
[
options
]="
leftOneChart
"
style=
"height: 400px;width: 100%"
></div>
<!--<div echarts [options]="chartTopOption" style="height: 400px;width: 100%"></div>-->
<div
echarts
[
options
]="
leftTwoChart
"
style=
"height: 400px;width: 100%"
></div>
<!--</nz-spin>-->
</div>
<!--</div>-->
<div
nz-col
nzSpan=
"12"
>
<!--<div nz-col nzSpan="12">-->
<div
echarts
[
options
]="
rightOneChart
"
style=
"height: 400px;width: 100%"
></div>
<!--<nz-spin [nzSpinning]="isLastLoading">-->
<div
echarts
[
options
]="
rightTwoChart
"
style=
"height: 400px;width: 100%"
></div>
<!--<div echarts [options]="chartLastOption" style="height: 400px;width: 100%"></div>-->
</div>
<!--</nz-spin>-->
</div>
<!--</div>-->
<!--</div>-->
src/main/webapp/app/home/home.component.ts
View file @
258f38d1
...
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
...
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
import
{
NgbModalRef
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbModalRef
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
JhiEventManager
}
from
'ng-jhipster'
;
import
{
JhiEventManager
}
from
'ng-jhipster'
;
import
{
Account
,
Principal
}
from
'../shared'
;
import
{
Account
,
Principal
}
from
'../shared'
;
import
{
OverAllService
}
from
'../overAll/overAll.service'
;
@
Component
({
@
Component
({
selector
:
'jhi-home'
,
selector
:
'jhi-home'
,
...
@@ -19,15 +20,34 @@ export class HomeComponent implements OnInit {
...
@@ -19,15 +20,34 @@ export class HomeComponent implements OnInit {
rightTwoChart
;
rightTwoChart
;
constructor
(
constructor
(
private
overAllSer
:
OverAllService
,
private
principal
:
Principal
,
private
principal
:
Principal
,
private
eventManager
:
JhiEventManager
private
eventManager
:
JhiEventManager
)
{
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
findGroupCount
();
this
.
findHostCount
();
}
findGroupCount
(){
this
.
overAllSer
.
findGroupCount
().
subscribe
(
(
res
)
=>
{
}
)
}
findHostCount
(){
this
.
overAllSer
.
findHostCount
().
subscribe
(
(
res
)
=>
{
}
)
}
}
login
()
{
search
(){
}
}
}
}
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
View file @
258f38d1
...
@@ -217,6 +217,9 @@ export class BasicEditComponent implements OnInit {
...
@@ -217,6 +217,9 @@ export class BasicEditComponent implements OnInit {
if
(
this
.
macroTYpe
==
'macroExpand'
)
{
if
(
this
.
macroTYpe
==
'macroExpand'
)
{
this
.
validateForm
.
macros
=
this
.
macroList2
;
this
.
validateForm
.
macros
=
this
.
macroList2
;
}
}
if
(
!
this
.
isInVentory
){
this
.
validateForm
.
inventoryExtend
=
null
;
}
this
.
overAllSer
.
createHost
(
this
.
validateForm
).
subscribe
(
this
.
overAllSer
.
createHost
(
this
.
validateForm
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
...
@@ -239,6 +242,9 @@ export class BasicEditComponent implements OnInit {
...
@@ -239,6 +242,9 @@ export class BasicEditComponent implements OnInit {
update
()
{
update
()
{
//比较监控模版是否发生变化
//比较监控模版是否发生变化
const
clearArr
=
[];
const
clearArr
=
[];
if
(
!
this
.
isInVentory
){
this
.
validateForm
.
inventoryExtend
=
null
;
}
this
.
templatesResoure
.
forEach
(
res
=>
{
this
.
templatesResoure
.
forEach
(
res
=>
{
if
(
this
.
validateForm
.
templates
.
indexOf
(
res
)
==
-
1
)
{
if
(
this
.
validateForm
.
templates
.
indexOf
(
res
)
==
-
1
)
{
clearArr
.
push
(
res
);
clearArr
.
push
(
res
);
...
...
src/main/webapp/app/modal/select-person/select-person.component.html
View file @
258f38d1
...
@@ -22,8 +22,7 @@
...
@@ -22,8 +22,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr
*
ngFor=
"let data of basicTable.data"
>
<tr
*
ngFor=
"let data of basicTable.data"
>
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
(
nzCheckedChange
)="
selectItem
(
data
,$
event
)"
></td>
(
nzCheckedChange
)="
selectItem
(
data
,$
event
)"
></td>
<td>
{{data.name}}
</td>
<td>
{{data.name}}
</td>
<td>
{{data.phoneNumber}}
</td>
<td>
{{data.phoneNumber}}
</td>
</tr>
</tr>
...
...
src/main/webapp/app/modal/select-person/select-person.component.ts
View file @
258f38d1
...
@@ -150,8 +150,9 @@ export class SelectPersonComponent implements OnInit {
...
@@ -150,8 +150,9 @@ export class SelectPersonComponent implements OnInit {
handEditleOk
(){
handEditleOk
(){
if
(
this
.
title
==
"授予用户"
){
if
(
this
.
title
==
"授予用户"
){
}
else
{
this
.
done
.
emit
(
this
.
selectList
);
}
}
this
.
done
.
emit
(
this
.
selectList
);
this
.
isVisible
=
false
;
this
.
isVisible
=
false
;
this
.
init
();
this
.
init
();
}
}
...
...
src/main/webapp/app/overAll/overAll.service.ts
View file @
258f38d1
...
@@ -314,4 +314,14 @@ export class OverAllService {
...
@@ -314,4 +314,14 @@ export class OverAllService {
return
this
.
http
.
get
(
SERVER_API_URL
+
'/valuemap/find'
);
return
this
.
http
.
get
(
SERVER_API_URL
+
'/valuemap/find'
);
}
}
//主机组中的主机数量统计
findGroupCount
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/findGroupCount'
);
}
//查询设备类型下主机的数量
findHostCount
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/statistics/findHostCount'
);
}
}
}
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