diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2019-08-27 14:41:41 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2019-08-27 14:41:44 +0800 |
commit | 6c761959f074dd37bd053ace71753707db36a1e7 (patch) | |
tree | c95142841508752d9ff0626ff942e712b71e4008 /usecaseui-portal/src/app/views | |
parent | f3b5e83683b7e5f47454fc59cb2ebd4789f5524a (diff) |
feat:remove excess console for ccvpn creation page
Change-Id: I9e6197f317d94b5408e014c7bbd5457c48a291de
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/ccvpn-detail/ccvpn-detail.component.ts | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts b/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts index 109c143b..8e4d6f1d 100644 --- a/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts +++ b/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts @@ -85,14 +85,12 @@ export class CcvpnDetailComponent implements OnInit { } //tabBarStyle dataInit() { - console.log(this.detailParams); // this.input_parameters = JSON.stringify(this.detailParams['input-parameters']) if (this.detailParams['input-parameters']) { this.input_parameters = JSON.parse(this.detailParams['input-parameters']); } else { return false; } - console.log(this.input_parameters); this.templateParameters.service = { name: this.input_parameters.service.name, description: this.input_parameters.service.description, @@ -157,9 +155,6 @@ export class CcvpnDetailComponent implements OnInit { } }); - console.log(this.templateParameters.site); - console.log(this.siteTableData); - this.showTemParametersSotnVpn(); this.showTemParametersSite(); @@ -269,7 +264,6 @@ export class CcvpnDetailComponent implements OnInit { showSiteDetail(num) { this.siteDetail = true; this.isEditSite = num; - console.log(this.siteTableData[num - 1]); Object.keys(this.siteBaseData).forEach((item) => { this.siteBaseData[item] = this.siteTableData[num - 1][item]; }); @@ -523,7 +517,6 @@ export class CcvpnDetailComponent implements OnInit { this.siteWanData[addNum] = inputsData; this.tabInputShowWanPort[addNum] = true; this.siteWanData = [...this.siteWanData]; //Table refresh - console.log(this.siteWanData) } editUpdateWanPort(num, item, siteWanData) { @@ -541,10 +534,10 @@ export class CcvpnDetailComponent implements OnInit { this.siteWanData = this.siteWanData.filter((d, i) => i !== num - 1); } - // site节点图形描绘 - // site分类,根据site查tp pnf --> allotted-resource - localSite = [];//本地site - outerSite = [];//外部site + // site node graphic depiction + // site sort,Check tp add pnf according to site --> allotted-resource + localSite = [];//local site + outerSite = [];//outer site getSiteAResource() { return new Promise((res, rej) => { @@ -605,7 +598,6 @@ export class CcvpnDetailComponent implements OnInit { return item3["relationship-key"] == "vpn-binding.vpn-id" })["relationship-value"] }); - console.log(vpns); this.detailParams.vpns = vpns.map((item) => { return { name: item } }); @@ -642,8 +634,6 @@ export class CcvpnDetailComponent implements OnInit { vpn.sitetpname = this.localSite.find((site) => { return tpnames.includes(site.tpsitename) }).tpsitename; - console.log(tpnames); - console.log(vpn.sitetpname); vpn.othertpname = tpnames.find((name) => { return name != vpn.sitetpname }); @@ -653,12 +643,9 @@ export class CcvpnDetailComponent implements OnInit { return name != vpn.sitetpname }); } - this.vpns = this.detailParams.vpns; - console.log(this.vpns) res(this.detailParams.vpns) - }) - console.log(this.detailParams.vpns) + }); }) }) }) @@ -680,7 +667,7 @@ export class CcvpnDetailComponent implements OnInit { if (this.localSite.length == 2) { let line = { "x1": "30%", "y1": "55%", "x2": "42%", "y2": "55%"//tp2--tp3 - } + }; this.detailLines.push(line); } // when cloud site have 2 @@ -691,13 +678,9 @@ export class CcvpnDetailComponent implements OnInit { this.detailLines.push(line); } } - }) + }); let allnodes = [this.getSiteAResource(), this.getSotnAresource()]; Promise.all(allnodes).then((data) => { - console.log(data); - console.log(this.localSite); - - }) } @@ -799,7 +782,6 @@ export class CcvpnDetailComponent implements OnInit { servicebody.service.parameters.requestInputs[item] = [].concat(this.sotnVpnTableData); } }); - console.log(servicebody); this.closeUpdate.emit(servicebody); } |