From ec06b7c5fbaba86c367b7ea6e6c4262e4e50596b Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 4 Sep 2019 16:08:59 +0800 Subject: feat: performance-vnf page code optimization Change-Id: I679ef762638160501cdebca2925aa34f0d96bce7 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../performance-vnf/performance-vnf.component.html | 6 ++---- .../performance-vnf/performance-vnf.component.less | 5 +---- .../performance/performance-vnf/performance-vnf.component.ts | 12 ------------ 3 files changed, 3 insertions(+), 20 deletions(-) (limited to 'usecaseui-portal/src/app/views/performance/performance-vnf') diff --git a/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.html b/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.html index 9e0e2ed6..b20ac38e 100644 --- a/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.html +++ b/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.html @@ -30,19 +30,17 @@ -
- - +
{{item.name}}
- PNF + PNF
{{item.name}}
diff --git a/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.less b/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.less index cc4e1ca5..6040dcc5 100644 --- a/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.less +++ b/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.less @@ -58,7 +58,7 @@ :hover { border-color: #48C6EF; } - //下拉框中的样式在style.less中,下拉框是在body中额外临时生成的 + //The style in the drop-down box is in style.less, and the drop-down box is extra temporary generated in the body. } .search { margin-left: 20px; @@ -74,7 +74,6 @@ } .content { - // background-color: #fff; border-radius: 5px; padding: 12px; .vnfs { @@ -82,7 +81,6 @@ flex-wrap: wrap; justify-content: space-around; .vnf { - // width: 180px; background-color: #fff; width: 18%; height: 200px; @@ -118,7 +116,6 @@ } } .empty { - // width: 180px; width: 18%; height: 200px; margin: 5px; diff --git a/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.ts b/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.ts index 5f1d056d..b20c8a55 100644 --- a/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.ts +++ b/usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.ts @@ -39,7 +39,6 @@ export class PerformanceVnfComponent implements OnInit { ngOnInit() { this.getqueryAllSourceNames(); - // this.getperformanceSsourceNames(); let _this = this; setTimeout(function () { _this.totalRecords = [ @@ -88,17 +87,6 @@ export class PerformanceVnfComponent implements OnInit { //Fill the box emptys = []; - // getperformanceSsourceNames() { - // this.myhttp.getperformanceSourceNames(this.currentPage, this.pageSize, this.sourceName).subscribe((data) => { - // this.totalRecords = data.totalRecords; - // this.vnfsdataTotal = data.names; - // if (Number.isInteger(this.totalRecords.length / 5)) { - // this.emptys = new Array(0); - // } else { - // this.emptys = new Array(5 - this.totalRecords.length % 5); - // } - // }) - // } //Detail page title display isHidden = true; graphicshow = false; -- cgit 1.2.3-korg