summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/performance
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-08-23 11:05:42 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-08-23 11:05:53 +0800
commit4e11ad92dbc929de190a6c211457bebc88636acd (patch)
tree8803e836f32d02032703b7a01c7fcd2b620a745c /usecaseui-portal/src/app/views/performance
parentbeb1797fc10f12fcdab0147fca7223c80e41c5c6 (diff)
refactor: change the position of animates.ts to utils
Change-Id: I712d76b1b327e8803d55e90b7a153ad0e44a14c9 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/performance')
-rw-r--r--usecaseui-portal/src/app/views/performance/performance-vm/performance-vm.component.ts122
-rw-r--r--usecaseui-portal/src/app/views/performance/performance-vnf/performance-vnf.component.ts40
2 files changed, 81 insertions, 81 deletions
diff --git a/usecaseui-portal/src/app/views/performance/performance-vm/performance-vm.component.ts b/usecaseui-portal/src/app/views/performance/performance-vm/performance-vm.component.ts
index c179cdbb..85150b69 100644
--- a/usecaseui-portal/src/app/views/performance/performance-vm/performance-vm.component.ts
+++ b/usecaseui-portal/src/app/views/performance/performance-vm/performance-vm.component.ts
@@ -1,11 +1,11 @@
import { Component, OnInit, HostBinding } from '@angular/core';
-import { slideToRight, showHideAnimate } from '../../../animates';
+import { slideToRight, showHideAnimate } from '../../../shared/utils/animates';
@Component({
selector: 'app-performance-vm',
templateUrl: './performance-vm.component.html',
styleUrls: ['./performance-vm.component.less'],
- animations: [ slideToRight, showHideAnimate ]
+ animations: [slideToRight, showHideAnimate]
})
export class PerformanceVmComponent implements OnInit {
@HostBinding('@routerAnimate') routerAnimateState;
@@ -15,15 +15,15 @@ export class PerformanceVmComponent implements OnInit {
}
// Filter box (drop-down box)
- sourceNameList = ['aaaa','bbbb','cccc','dddddDDDDDDDDDDDDDDD'];
+ sourceNameList = ['aaaa', 'bbbb', 'cccc', 'dddddDDDDDDDDDDDDDDD'];
sourceNameSelected = this.sourceNameList[0];
- ReportingEntityNameList = ['aaaa','bbbb','cccc','ddddd'];
- ReportingEntityNameSelected = this.ReportingEntityNameList[0];
- choseSourceName(item){
+ ReportingEntityNameList = ['aaaa', 'bbbb', 'cccc', 'ddddd'];
+ ReportingEntityNameSelected = this.ReportingEntityNameList[0];
+ choseSourceName(item) {
console.log(item);
this.sourceNameSelected = item;
}
- choseReportingEntityName(item){
+ choseReportingEntityName(item) {
console.log(item);
this.ReportingEntityNameSelected = item;
}
@@ -31,98 +31,98 @@ export class PerformanceVmComponent implements OnInit {
//Tabular data
dataSet = [
{
- name : 'John Brown',
- age : 32,
- expand : false,
- address : 'New York No. 1',
+ name: 'John Brown',
+ age: 32,
+ expand: false,
+ address: 'New York No. 1',
description: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.'
},
{
- name : 'Aim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Aim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Bim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Bim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Cim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Cim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Jim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Jim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Xim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Xim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Jim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Jim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Jim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Jim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Jim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Jim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'Jim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'Jim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'cim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'cim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'bim Green',
- age : 42,
- expand : false,
- address : 'London No. 1',
+ name: 'bim Green',
+ age: 42,
+ expand: false,
+ address: 'London No. 1',
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
},
{
- name : 'aoe Black',
- age : 32,
- expand : false,
- address : 'Sidney No. 1',
+ name: 'aoe Black',
+ age: 32,
+ expand: false,
+ address: 'Sidney No. 1',
description: 'My name is Joe Black, I am 32 years old, living in Sidney No. 1 Lake Park.'
}
];
-
+
//Detail page title display
graphicshow = false;
detailshow = false;
@@ -145,7 +145,7 @@ export class PerformanceVmComponent implements OnInit {
this.detailshow = false;
}
// Selected id
- detailId:number;
+ detailId: number;
detailShow(prems) {
this.state = 'hide';
this.state2 = 'hide';
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 96b5404c..5f1d056d 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
@@ -14,7 +14,7 @@
limitations under the License.
*/
import { Component, OnInit, HostBinding } from '@angular/core';
-import { slideToRight, showHideAnimate } from '../../../animates';
+import { slideToRight, showHideAnimate } from '../../../shared/utils/animates';
import { HomesService } from '../../../core/services/homes.service';
@Component({
@@ -41,27 +41,27 @@ export class PerformanceVnfComponent implements OnInit {
this.getqueryAllSourceNames();
// this.getperformanceSsourceNames();
let _this = this;
- setTimeout(function(){
- _this.totalRecords = [
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"}
+ setTimeout(function () {
+ _this.totalRecords = [
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" }
];
_this.totalpnfs = [
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"},
- {name:"Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��",text:"oahgieango"}
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" },
+ { name: "Mfvs_MMEManagedElem entdElementMfvs_MMEM anagedELement��", text: "oahgieango" }
]
- _this.emptys = new Array(12-_this.totalRecords.length);
- },300)
+ _this.emptys = new Array(12 - _this.totalRecords.length);
+ }, 300)
}
@@ -86,7 +86,7 @@ export class PerformanceVnfComponent implements OnInit {
totalRecords = [];
totalpnfs = [];
//Fill the box
- emptys = [];
+ emptys = [];
// getperformanceSsourceNames() {
// this.myhttp.getperformanceSourceNames(this.currentPage, this.pageSize, this.sourceName).subscribe((data) => {