});
// 请求数据地址
-var global_url = "/api/usecaseui-server/v1";
+var global_url = "/api/usecaseui-server/v1/";
})
this.service.parameters.resources.push(nsService);
})
-
+ this.service.parameters.requestInputs['orchestrator'] = this.createParams.orchestrator.name;
+ if(this.createParams.isSol005Interface){
+ this.service.parameters.requestInputs['isSol005Interface'] = this.createParams.isSol005Interface;
+ }
this.e2eCloseCreate.emit({service:this.service});
}else if(type == "ns"){
enum baseUrl{
- baseUrl = '/api/usecaseui-server/v1' //online
+ baseUrl = '/api/usecaseui/server/v1' //online
// baseUrl = 'http://172.19.44.223/api/usecaseui-server/v1' //local one
// baseUrl = 'http://10.73.191.100:8082' //local two
}
url = {
listSortMasters:this.baseUrl+"/listSortMasters",
customers: this.baseUrl + "/uui-lcm/customers",
+ orchestrators: this.baseUrl + "/uui-lcm/orchestrators",
serviceType: this.baseUrl + "/uui-lcm/customers/" + "*_*" + "/service-subscriptions",
servicesTableData: this.baseUrl + '/uui-lcm/service-instances',
serviceTemplates: this.baseUrl + "/uui-lcm/service-templates",
return this.http.get<any>(this.url.customers);
}
+ // Get all Orchestrators
+ getAllOrchestrators() {
+ return this.http.get<any>(this.url.orchestrators);
+ }
+
// Get relevant serviceType
getServiceTypes(customer) {
let url = this.url.serviceType.replace("*_*", customer.id);
</div>
</div>
+ <div *ngIf="templateTypeSelected == 'E2E Service'">
+ <div class="select-list">
+ <span style="display:inline-block;width:70px;">Orchestrator: </span>
+ <nz-select style="width: 176px;float: right;" [(ngModel)]="orchestratorSelected" nzAllowClear>
+ <nz-option *ngFor="let item of orchestratorList" [nzValue]="item" [nzLabel]="item.name"></nz-option>
+ </nz-select>
+ </div>
+ </div>
<div *ngIf="templateTypeSelected == 'E2E Service'||templateTypeSelected == 'Network Service'">
<div class="select-list">
<span style="display:inline-block;width:70px;">TEMPLATE: </span>
</nz-select>
</div>
</div>
+ <div *ngIf="templateTypeSelected == 'E2E Service'">
+ <div class="check-box" style="margin:30px; height: 50px">
+ <input class="check-box-style" style="zoom: 1.8; width: 70px" type="checkbox" [(ngModel)]="isSol005Interface" value="true" nzAllowClear>
+ <label class="label" style="font-size: 20px; color: rgb(60,79,140,.5)">Sol005</label>
+ </div>
+ </div>
</nz-modal>
</div>
<nz-layout style=" padding: 20px 32px; ">
this.inputNamests();
}
// customer servicetype
+ isSol005Interface = false;
customerList = [];
+ orchestratorList = [];
customerSelected = {name:null,id:null};
+ orchestratorSelected = {name:null,id:null};
serviceTypeList = [];
serviceTypeSelected = {name:null};
listSortMasters=JSON.parse(sessionStorage.getItem('listSortMasters'));
})
}
+ getallOrchestrators(){
+ this.myhttp.getAllOrchestrators()
+ .subscribe((data)=>{
+ this.orchestratorList = data.map((item)=>{return {name:item["name"],id:item["name"]}});
+ if(this.orchestratorList.length==0){
+ console.log("orchestratorList.length == 0",this.orchestratorList);
+ return false;
+ }
+ this.orchestratorSelected = this.orchestratorList[0];
+ })
+ }
+
choseCustomer(item){
this.customerSelected = item;
this.myhttp.getServiceTypes(this.customerSelected)
// console.log(this.listServiceTypes);
})
}
+
choseServiceType(item){
this.serviceTypeSelected = item;
this.getTableData();
isVisible = false;
createModal(): void {
this.isVisible = true;
+ this.getallOrchestrators();
this.getAlltemplates();
}
//
templateTypeSelected = "SOTN";
choseTemplateType(){
+ this.getallOrchestrators();
this.getAlltemplates();
}
//
this.createshow = true;
this.listDisplay = true;
}else if(this.templateTypeSelected=="E2E Service"||this.templateTypeSelected=="Network Service"){
- this.createData = {commonParams:{customer:this.customerSelected, serviceType:this.serviceTypeSelected, templateType:this.templateTypeSelected},template:this.template4};
+ this.createData = {commonParams:{customer:this.customerSelected, serviceType:this.serviceTypeSelected, templateType:this.templateTypeSelected},template:this.template4, orchestrator:this.orchestratorSelected, isSol005Interface:this.isSol005Interface};
this.createshow2 = true;
this.listDisplay = true;
}
this.detailshow2 = true;
}
this.listDisplay = true;
+ this.detailshow = true;
this.detailData = service;
console.log(service);
}