summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-04 16:08:59 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-09-04 16:09:11 +0800
commitec06b7c5fbaba86c367b7ea6e6c4262e4e50596b (patch)
tree98337bf522fa4033a703272f9f4349c052929f8c /usecaseui-portal/src/app/views
parent17c87c1ae1b09e22764b15af7e9a1ab04410bc5f (diff)
feat: performance-vnf page code optimization
Change-Id: I679ef762638160501cdebca2925aa34f0d96bce7 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views')
-rw-r--r--usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.html6
-rw-r--r--usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.less5
-rw-r--r--usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.ts12
3 files changed, 3 insertions, 20 deletions
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 @@
</nz-dropdown>
<button class="search" nz-button [nzType]="'primary'"><i
class="anticon anticon-search"></i><span>Search</span></button>
- <!-- <button class="search" nz-button [nzType]="'primary'" (click)="getperformanceSsourceNames()"><i class="anticon anticon-search"></i><span>Search</span></button> -->
</div>
<div class="content" [@showHideAnimate]="state">
<div class="vnfs">
<div class="vnf" *ngFor="let item of totalRecords">
- <img src="../../../../assets/images/vnf01.png" title="VNF" (click)="graphicShow2(item)">
- <!-- <h3>{{item.name}}</h3> -->
+ <img src="assets/images/vnf01.png" title="VNF" (click)="graphicShow2(item)">
<div class="intro">
{{item.name}}
</div>
</div>
<div class="vnf" *ngFor="let item of totalpnfs">
- <img src="../../../../assets/images/pnf01.png" alt="PNF" (click)="graphicShow2(item)">
+ <img src="assets/images/pnf01.png" alt="PNF" (click)="graphicShow2(item)">
<div class="intro">
{{item.name}}
</div>
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;