Commit 8a4b8da1 authored by wangqinghua's avatar wangqinghua

update

parent ddfcadf7
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
<form nz-form> <form nz-form>
<nz-tabset> <nz-tabset>
<nz-tab nzTitle="进流量"> <nz-tab nzTitle="进流量">
<div class="padding-10">
<input (keyup.enter)="getInList()" name="inSearchName" style="width: 200px;" type="text" nz-input [(ngModel)]="inSearchName" placeholder="输入名称">
<button (click)="getInList()" nz-button nzType="default"><i class="anticon anticon-search" style="color: #6097b7"></i>搜索</button>
</div>
<nz-table #basicTable1 [nzData]="inList" <nz-table #basicTable1 [nzData]="inList"
[nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" [nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount"
(nzCurrentPageDataChange)="incurrentPageDataChange($event)" (nzCurrentPageDataChange)="incurrentPageDataChange($event)"
...@@ -24,6 +28,10 @@ ...@@ -24,6 +28,10 @@
</nz-table> </nz-table>
</nz-tab> </nz-tab>
<nz-tab nzTitle="出流量"> <nz-tab nzTitle="出流量">
<div class="padding-10">
<input name="outSearchName" (keyup.enter)="getOutList()" style="width: 200px;" type="text" nz-input [(ngModel)]="outSearchName" placeholder="输入名称">
<button (click)="getOutList()" nz-button nzType="default"><i class="anticon anticon-search" style="color: #6097b7"></i>搜索</button>
</div>
<nz-table #basicTable2 [nzData]="outList" <nz-table #basicTable2 [nzData]="outList"
[nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" [nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount"
(nzCurrentPageDataChange)="outcurrentPageDataChange($event)" (nzCurrentPageDataChange)="outcurrentPageDataChange($event)"
......
...@@ -23,9 +23,11 @@ export class LineComponent implements OnInit { ...@@ -23,9 +23,11 @@ export class LineComponent implements OnInit {
inList; inList;
inSelect = []; inSelect = [];
inSearchName;
outList; outList;
outSelect = []; outSelect = [];
outSearchName;
constructor(private topologySer: TopologyService, private message: NzMessageService, private localStorage: LocalStorageService,) { constructor(private topologySer: TopologyService, private message: NzMessageService, private localStorage: LocalStorageService,) {
} }
...@@ -86,10 +88,11 @@ export class LineComponent implements OnInit { ...@@ -86,10 +88,11 @@ export class LineComponent implements OnInit {
this.getInList(); this.getInList();
} }
//查询进口流量
getInList(){ getInList(){
const data = { const data = {
hostIds:this.hostIds, hostIds:this.hostIds,
search:"", search:this.inSearchName,
type:"in", type:"in",
pageNum:this.inPageNum, pageNum:this.inPageNum,
pageCount:this.inPageCount pageCount:this.inPageCount
...@@ -103,10 +106,11 @@ export class LineComponent implements OnInit { ...@@ -103,10 +106,11 @@ export class LineComponent implements OnInit {
} }
//查询出口流量
getOutList(){ getOutList(){
const data = { const data = {
hostIds:this.hostIds, hostIds:this.hostIds,
search:"", search:this.outSearchName,
type:"out", type:"out",
pageNum:this.outPageNum, pageNum:this.outPageNum,
pageCount:this.outPageCount pageCount:this.outPageCount
...@@ -124,6 +128,8 @@ export class LineComponent implements OnInit { ...@@ -124,6 +128,8 @@ export class LineComponent implements OnInit {
handleLineCancel() { handleLineCancel() {
this.inList = []; this.inList = [];
this.outList = []; this.outList = [];
this.inSearchName = null;
this.outSearchName = null;
this.isLine = false; this.isLine = false;
localStorage.setItem("line",'false'); localStorage.setItem("line",'false');
} }
...@@ -131,6 +137,8 @@ export class LineComponent implements OnInit { ...@@ -131,6 +137,8 @@ export class LineComponent implements OnInit {
handleLineOk() { handleLineOk() {
this.inList = []; this.inList = [];
this.outList = []; this.outList = [];
this.inSearchName = null;
this.outSearchName = null;
this.isLine = false; this.isLine = false;
editor.utils.setLink(this.inSelect,this.outSelect); editor.utils.setLink(this.inSelect,this.outSelect);
localStorage.setItem("line",'false'); localStorage.setItem("line",'false');
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<div class="container"> <div class="container">
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<nz-spin [nzSpinning]="isLoading"> <!--<nz-spin [nzSpinning]="isLoading">-->
<div #topologyBody id="topology-body" class="topology-context"> <div #topologyBody id="topology-body" class="topology-context">
<!-- 鼠标悬浮显示节点信息 --> <!-- 鼠标悬浮显示节点信息 -->
<div class="node-infobox" style="display: none;"> <div class="node-infobox" style="display: none;">
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</p> </p>
</div> </div>
</div> </div>
</nz-spin> <!--</nz-spin>-->
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment