summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-08 18:20:13 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-08 18:20:17 +0800
commit2f59d78fd5e99ea90a513d06e626f9915f0b945c (patch)
treeb8738e1cdab52e727274701de263e0ae1c4ccfc6 /usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts
parent1f7c49a6330d157c90579f5669e3faf863c81ad4 (diff)
Fix instance instantiation for CCVPN
Change-Id: I1b79ec5fd5ab16d93c254b3384c84e841083b05f Issue-ID: USECASEUI-220 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts')
-rw-r--r--usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts
index 0200de85..258e69d0 100644
--- a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts
+++ b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.ts
@@ -17,6 +17,7 @@ import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';
import * as d3 from 'd3';
import * as $ from 'jquery';
import { MyhttpService } from '../myhttp.service';
+import {el} from "@angular/platform-browser/testing/src/browser_util";
@Component({
selector: 'app-ccvpn-creation',
@@ -32,7 +33,6 @@ export class CcvpnCreationComponent implements OnInit {
}
@Input() createParams;
- @Input() namesTranslate; //Input parameter name conversion
@Output() closeCreate = new EventEmitter();
//tabBarStyle
@@ -244,6 +244,12 @@ export class CcvpnCreationComponent implements OnInit {
console.log(sotnSdwansitelanData);
}
deleteSotnSdwansitelan(num, item, sotnSdwansitelanData){
+ if(this.sotnSdwansitelanData.length <= 1){
+ console.log("num>=1","sotnSdwansitelanData");
+ return false;
+ }else {
+
+ }
this.sotnSdwansitelanData = this.sotnSdwansitelanData.filter((d, i) => i !== num - 1);
console.log(this.sotnSdwansitelanData)
}
@@ -275,6 +281,10 @@ export class CcvpnCreationComponent implements OnInit {
console.log(siteWanData);
}
deleteWanPort(num, item, siteWanData){
+ if(this.siteWanData.length <= 1){
+ console.log("num>=1","siteWanData");
+ return false;
+ }
this.siteWanData = this.siteWanData.filter((d, i) => i !== num - 1);
console.log(this.siteWanData)
}