From 2f59d78fd5e99ea90a513d06e626f9915f0b945c Mon Sep 17 00:00:00 2001 From: guochuyicmri Date: Wed, 8 May 2019 18:20:13 +0800 Subject: Fix instance instantiation for CCVPN Change-Id: I1b79ec5fd5ab16d93c254b3384c84e841083b05f Issue-ID: USECASEUI-220 Signed-off-by: guochuyicmri --- .../ccvpn-creation/ccvpn-creation.component.css | 2 +- .../ccvpn-creation/ccvpn-creation.component.html | 31 +++++++++++----------- .../app/ccvpn-creation/ccvpn-creation.component.ts | 12 ++++++++- 3 files changed, 27 insertions(+), 18 deletions(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.css b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.css index 5d65e550..ce546cb8 100644 --- a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.css +++ b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.css @@ -63,7 +63,7 @@ hr { } .model .submit{ position: absolute; - width:116px; + width:90px; height: 35px; top: 10px; right: 85px; diff --git a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html index 3ae5af27..6fe6825e 100644 --- a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html +++ b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html @@ -18,10 +18,10 @@
-

{{createParams.commonParams.templateType}} Instance Creation

+

{{createParams.commonParams.templateType}} {{"i18nTextDefine_InstanceCreation" | translate}}

- + @@ -30,14 +30,13 @@
- Instance Topology + {{"i18nTextDefine_InstanceTopology" | translate}}
-
@@ -56,7 +55,7 @@

sdwanVPN List

-
+

Site List

-

Base

+

{{"i18nTextDefine_Base" | translate}}

  • @@ -150,7 +149,7 @@
    @@ -187,13 +186,13 @@
    - - + +
    -

    Base

    +

    {{"i18nTextDefine_Base" | translate}}

    • @@ -216,7 +215,7 @@
    @@ -253,8 +252,8 @@
    - - + +
    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) } -- cgit 1.2.3-korg