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
32ca1371
Commit
32ca1371
authored
Dec 17, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workService
parent
af6dfca7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
240 additions
and
240 deletions
+240
-240
analysis-deal.component.html
...operation-work/analysis-deal/analysis-deal.component.html
+50
-50
analysis-event.component.html
...eration-work/analysis-event/analysis-event.component.html
+51
-51
analysis-status.component.html
...ation-work/analysis-status/analysis-status.component.html
+51
-51
resource-alarm.component.html
...app/analysis/resource-alarm/resource-alarm.component.html
+21
-21
resource-usabil.component.html
...p/analysis/resource-usabil/resource-usabil.component.html
+62
-62
account.service.ts
src/main/webapp/app/shared/auth/account.service.ts
+3
-3
auth-jwt.service.ts
src/main/webapp/app/shared/auth/auth-jwt.service.ts
+2
-2
No files found.
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.html
View file @
32ca1371
<!--
<!–处理人统计–>
-->
<
!--<nz-spin [nzSpinning]="isLoading">--
>
<
!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>--
>
<
!--</nz-spin>--
>
<
!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">--
>
<
!--<nz-tab nzTitle="接收流量排行">--
>
<
!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">--
>
<
!--<thead>--
>
<
!--<tr>--
>
<
!--<th nzWidth="20%">监测点名称</th>--
>
<
!--<th>最大值</th>--
>
<
!--<th>最小值</th>--
>
<
!--<th>平均值</th>-->
s
<
!--</tr>--
>
<
!--</thead>--
>
<
!--<tbody>--
>
<
!--<ng-container *ngFor="let item of inList">--
>
<
!--<tr (click)="getEcharts(item.itemid)">--
>
<
!--<td>{{item.itemName}}</td>--
>
<
!--<td>{{item.max | toUtil}}</td>--
>
<
!--<td>{{item.min | toUtil}}</td>--
>
<
!--<td>{{item.avg | toUtil}}</td>--
>
<
!--</tr>--
>
<
!--</ng-container>--
>
<
!--</tbody>--
>
<
!--</nz-table>--
>
<
!--</nz-tab>--
>
<
!--<nz-tab nzTitle="发送流量排行">--
>
<
!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">--
>
<
!--<thead>--
>
<
!--<tr>--
>
<
!--<th nzWidth="20%">监测点名称</th>--
>
<
!--<th>最大值</th>--
>
<
!--<th>最小值</th>--
>
<
!--<th>平均值</th>--
>
<
!--</tr>--
>
<
!--</thead>--
>
<
!--<tbody>--
>
<
!--<ng-container *ngFor="let data of outList">--
>
<
!--<tr class="cursor" (click)="getEcharts(data.itemid)">--
>
<
!--<td>{{data.itemName}}</td>--
>
<
!--<td>{{data.max | toUtil}}</td>--
>
<
!--<td>{{data.min | toUtil}}</td>--
>
<
!--<td>{{data.avg | toUtil}}</td>--
>
<
!--</tr>--
>
<
!--</ng-container>--
>
<
!--</tbody>--
>
<
!--</nz-table>--
>
<
!--</nz-tab>--
>
<
!--</nz-tabset>--
>
<!--
处理人统计
-->
<
nz-spin
[
nzSpinning
]="
isLoading
"
>
<
div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div
>
<
/nz-spin
>
<
nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<
nz-tab
nzTitle=
"接收流量排行"
>
<
nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<
thead
>
<
tr
>
<
th
nzWidth=
"20%"
>
监测点名称
</th
>
<
th>
最大值
</th
>
<
th>
最小值
</th
>
<
th>
平均值
</th>
<
/tr
>
<
/thead
>
<
tbody
>
<
ng-container
*
ngFor=
"let item of inList"
>
<
tr
(
click
)="
getEcharts
(
item
.
itemid
)"
>
<
td>
{{item.itemName}}
</td
>
<
td>
{{item.max | toUtil}}
</td
>
<
td>
{{item.min | toUtil}}
</td
>
<
td>
{{item.avg | toUtil}}
</td
>
<
/tr
>
<
/ng-container
>
<
/tbody
>
<
/nz-table
>
<
/nz-tab
>
<
nz-tab
nzTitle=
"发送流量排行"
>
<
nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<
thead
>
<
tr
>
<
th
nzWidth=
"20%"
>
监测点名称
</th
>
<
th>
最大值
</th
>
<
th>
最小值
</th
>
<
th>
平均值
</th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ng-container
*
ngFor=
"let data of outList"
>
<
tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
<
td>
{{data.itemName}}
</td
>
<
td>
{{data.max | toUtil}}
</td
>
<
td>
{{data.min | toUtil}}
</td
>
<
td>
{{data.avg | toUtil}}
</td
>
<
/tr
>
<
/ng-container
>
<
/tbody
>
<
/nz-table
>
<
/nz-tab
>
<
/nz-tabset
>
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.html
View file @
32ca1371
<!--<!–事件分类统计–>-->
<!--<nz-spin [nzSpinning]="isLoading">-->
<!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
<!--</nz-spin>-->
<!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<!--<nz-tab nzTitle="接收流量排行">-->
<!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let item of inList">-->
<!--<tr (click)="getEcharts(item.itemid)">-->
<!--<td>{{item.itemName}}</td>-->
<!--<td>{{item.max | toUtil}}</td>-->
<!--<td>{{item.min | toUtil}}</td>-->
<!--<td>{{item.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--<nz-tab nzTitle="发送流量排行">-->
<!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let data of outList">-->
<!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<!--<td>{{data.itemName}}</td>-->
<!--<td>{{data.max | toUtil}}</td>-->
<!--<td>{{data.min | toUtil}}</td>-->
<!--<td>{{data.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--</nz-tabset>-->
\ No newline at end of file
<!--事件分类统计-->
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</nz-spin>
<nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-tab
nzTitle=
"接收流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<thead>
<tr>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</thead>
<tbody>
<ng-container
*
ngFor=
"let item of inList"
>
<tr
(
click
)="
getEcharts
(
item
.
itemid
)"
>
<td>
{{item.itemName}}
</td>
<td>
{{item.max | toUtil}}
</td>
<td>
{{item.min | toUtil}}
</td>
<td>
{{item.avg | toUtil}}
</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
<nz-tab
nzTitle=
"发送流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<thead>
<tr>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</thead>
<tbody>
<ng-container
*
ngFor=
"let data of outList"
>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
<td>
{{data.itemName}}
</td>
<td>
{{data.max | toUtil}}
</td>
<td>
{{data.min | toUtil}}
</td>
<td>
{{data.avg | toUtil}}
</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
\ No newline at end of file
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.html
View file @
32ca1371
<!--<!–解决状态统计–>-->
<!--<nz-spin [nzSpinning]="isLoading">-->
<!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
<!--</nz-spin>-->
<!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<!--<nz-tab nzTitle="接收流量排行">-->
<!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let item of inList">-->
<!--<tr (click)="getEcharts(item.itemid)">-->
<!--<td>{{item.itemName}}</td>-->
<!--<td>{{item.max | toUtil}}</td>-->
<!--<td>{{item.min | toUtil}}</td>-->
<!--<td>{{item.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--<nz-tab nzTitle="发送流量排行">-->
<!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let data of outList">-->
<!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<!--<td>{{data.itemName}}</td>-->
<!--<td>{{data.max | toUtil}}</td>-->
<!--<td>{{data.min | toUtil}}</td>-->
<!--<td>{{data.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--</nz-tabset>-->
\ No newline at end of file
<!--解决状态统计-->
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</nz-spin>
<nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-tab
nzTitle=
"接收流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<thead>
<tr>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</thead>
<tbody>
<ng-container
*
ngFor=
"let item of inList"
>
<tr
(
click
)="
getEcharts
(
item
.
itemid
)"
>
<td>
{{item.itemName}}
</td>
<td>
{{item.max | toUtil}}
</td>
<td>
{{item.min | toUtil}}
</td>
<td>
{{item.avg | toUtil}}
</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
<nz-tab
nzTitle=
"发送流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<thead>
<tr>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</thead>
<tbody>
<ng-container
*
ngFor=
"let data of outList"
>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
<td>
{{data.itemName}}
</td>
<td>
{{data.max | toUtil}}
</td>
<td>
{{data.min | toUtil}}
</td>
<td>
{{data.avg | toUtil}}
</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
\ No newline at end of file
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.html
View file @
32ca1371
...
...
@@ -84,26 +84,26 @@
<!--</tbody>-->
<!--</nz-table>-->
<h2>
统计报告
</h2>
<
!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum"-->
<!--[nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">--
>
<
!--<thead>--
>
<
!--<tr>--
>
<
!--<th nzWidth="20%">时间</th>--
>
<
!--<th>异常总数</th>--
>
<
!--<th>告警次数</th>--
>
<
!--<th>严重告警次数</th>--
>
<
!--</tr>--
>
<
!--</thead>--
>
<
!--<tbody>--
>
<
!--<ng-container *ngFor="let data of outList">--
>
<
!--<tr class="cursor" (click)="getEcharts(data.itemid)">--
>
<
!--<td>{{data.itemName}}</td>--
>
<
!--<td>{{data.max | toUtil}}</td>--
>
<
!--<td>{{data.min | toUtil}}</td>--
>
<
!--<td>{{data.avg | toUtil}}</td>--
>
<
!--</tr>--
>
<
!--</ng-container>--
>
<
!--</tbody>--
>
<
!--</nz-table>--
>
<
nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<
thead
>
<
tr
>
<
th
nzWidth=
"20%"
>
时间
</th
>
<
th>
异常总数
</th
>
<
th>
告警次数
</th
>
<
th>
严重告警次数
</th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ng-container
*
ngFor=
"let data of outList"
>
<
tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
<
td>
{{data.itemName}}
</td
>
<
td>
{{data.max | toUtil}}
</td
>
<
td>
{{data.min | toUtil}}
</td
>
<
td>
{{data.avg | toUtil}}
</td
>
<
/tr
>
<
/ng-container
>
<
/tbody
>
<
/nz-table
>
src/main/webapp/app/analysis/resource-usabil/resource-usabil.component.html
View file @
32ca1371
<!--
<!–资源可用性统计–>
-->
<
!--<div nz-row class="breadcrumbs">--
>
<
!--<div nz-col nzSpan="16">--
>
<
!--<nz-breadcrumb class="padding-8-0">--
>
<
!--<nz-breadcrumb-item>--
>
<!--首页-->
<
!--</nz-breadcrumb-item>--
>
<
!--<nz-breadcrumb-item>--
>
<
!--<a>统计分析</a>--
>
<
!--</nz-breadcrumb-item>--
>
<
!--<nz-breadcrumb-item>--
>
<!--资源可用性统计-->
<
!--</nz-breadcrumb-item>--
>
<
!--</nz-breadcrumb>--
>
<
!--</div>--
>
<
!--<div nz-col nzSpan="8" class="text-right">--
>
<
!--<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-arrows-alt"></i></button>--
>
<
!--</div>--
>
<
!--</div>--
>
<
!--<div nz-row [nzGutter]="4" class="search-form">--
>
<
!--<div nz-col nzSpan="3">--
>
<
!--<nz-select style="width: 100%;" nzPlaceHolder="选择分组" [(ngModel)]="obj.groupid" (ngModelChange)="getList()">--
>
<
!--<ng-container *ngFor="let item of groupList">--
>
<
!--<nz-option nzLabel="{{item.name}}" nzValue="{{item.groupid}}"></nz-option>--
>
<
!--</ng-container>--
>
<
!--</nz-select>--
>
<
!--</div>--
>
<
!--<div nz-col nzSpan="3">--
>
<
!--<nz-select style="width: 100%;" nzPlaceHolder="选择主机资源" [(ngModel)]="obj.hostid" (ngModelChange)="getListIO()">--
>
<
!--<ng-container *ngFor="let item of hostList;">--
>
<
!--<nz-option nzLabel="{{item.name}}" nzValue="{{item.hostid}}"></nz-option>--
>
<
!--</ng-container>--
>
<
!--</nz-select>--
>
<
!--</div>--
>
<
!--<div nz-col nzSpan="7">--
>
<
!--<nz-radio-group style="width: 100%;" [(ngModel)]="timeType" (ngModelChange)="changeType()" [nzButtonStyle]="'solid'">--
>
<
!--<label nz-radio-button nzValue="1">今天</label>--
>
<
!--<label nz-radio-button nzValue="2">昨天</label>--
>
<
!--<label nz-radio-button nzValue="3">三天</label>--
>
<
!--<label nz-radio-button nzValue="4">一周</label>--
>
<
!--<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>--
>
<
!--</div>--
>
<
!--<nz-spin [nzSpinning]="isLoading">--
>
<
!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>--
>
<
!--</nz-spin>--
>
<!--
资源可用性统计
-->
<
div
nz-row
class=
"breadcrumbs"
>
<
div
nz-col
nzSpan=
"16"
>
<
nz-breadcrumb
class=
"padding-8-0"
>
<
nz-breadcrumb-item
>
首页
<
/nz-breadcrumb-item
>
<
nz-breadcrumb-item
>
<
a>
统计分析
</a
>
<
/nz-breadcrumb-item
>
<
nz-breadcrumb-item
>
资源可用性统计
<
/nz-breadcrumb-item
>
<
/nz-breadcrumb
>
<
/div
>
<
div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<
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-arrows-alt"
></i></button
>
<
/div
>
<
/div
>
<
div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<
div
nz-col
nzSpan=
"3"
>
<
nz-select
style=
"width: 100%;"
nzPlaceHolder=
"选择分组"
[(
ngModel
)]="
obj
.
groupid
"
(
ngModelChange
)="
getList
()"
>
<
ng-container
*
ngFor=
"let item of groupList"
>
<
nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.groupid}}"
></nz-option
>
<
/ng-container
>
<
/nz-select
>
<
/div
>
<
div
nz-col
nzSpan=
"3"
>
<
nz-select
style=
"width: 100%;"
nzPlaceHolder=
"选择主机资源"
[(
ngModel
)]="
obj
.
hostid
"
(
ngModelChange
)="
getListIO
()"
>
<
ng-container
*
ngFor=
"let item of hostList;"
>
<
nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.hostid}}"
></nz-option
>
<
/ng-container
>
<
/nz-select
>
<
/div
>
<
div
nz-col
nzSpan=
"7"
>
<
nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
[
nzButtonStyle
]="'
solid
'"
>
<
label
nz-radio-button
nzValue=
"1"
>
今天
</label
>
<
label
nz-radio-button
nzValue=
"2"
>
昨天
</label
>
<
label
nz-radio-button
nzValue=
"3"
>
三天
</label
>
<
label
nz-radio-button
nzValue=
"4"
>
一周
</label
>
<
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
>
<
/div
>
<
nz-spin
[
nzSpinning
]="
isLoading
"
>
<
div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div
>
<
/nz-spin
>
src/main/webapp/app/shared/auth/account.service.ts
View file @
32ca1371
import
{
Injectable
}
from
'@angular/core'
;
import
{
HttpClient
,
HttpResponse
}
from
'@angular/common/http'
;
import
{
Observable
}
from
'rxjs/Observable'
;
import
{
SERVER_API_URL
}
from
'../../app.constants'
;
import
{
SERVER_API_URL
,
SERVER_API_URL_coms
}
from
'../../app.constants'
;
@
Injectable
()
export
class
AccountService
{
constructor
(
private
http
:
HttpClient
)
{
}
get
():
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/login'
,
{
observe
:
'response'
});
return
this
.
http
.
post
(
SERVER_API_URL
_coms
+
'/login'
,
{
observe
:
'response'
});
}
save
(
account
:
any
):
Observable
<
HttpResponse
<
any
>>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
''
,
account
,
{
observe
:
'response'
});
return
this
.
http
.
post
(
SERVER_API_URL
_coms
+
''
,
account
,
{
observe
:
'response'
});
}
}
src/main/webapp/app/shared/auth/auth-jwt.service.ts
View file @
32ca1371
...
...
@@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http';
import
{
Router
}
from
"@angular/router"
;
import
{
Observable
}
from
'rxjs/Observable'
;
import
{
LocalStorageService
,
SessionStorageService
}
from
'ngx-webstorage'
;
import
{
SERVER_API_URL
}
from
'../../app.constants'
;
import
{
SERVER_API_URL
,
SERVER_API_URL_coms
}
from
'../../app.constants'
;
import
{
EmitService
}
from
"../../shared/event/eventEmitter"
;
@
Injectable
()
export
class
AuthServerProvider
{
...
...
@@ -27,7 +27,7 @@ export class AuthServerProvider {
password
:
credentials
.
password
,
rememberMe
:
credentials
.
rememberMe
};
return
this
.
http
.
post
(
SERVER_API_URL
+
'/login'
,
data
,
{
observe
:
'response'
}).
map
(
authenticateSuccess
.
bind
(
this
));
return
this
.
http
.
post
(
SERVER_API_URL
_coms
+
'/login'
,
data
,
{
observe
:
'response'
}).
map
(
authenticateSuccess
.
bind
(
this
));
function
authenticateSuccess
(
resp
)
{
const
bearerToken
=
resp
.
body
.
data
;
if
(
bearerToken
)
{
...
...
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