diff options
author | 2019-12-09 10:13:59 +0800 | |
---|---|---|
committer | 2019-12-09 10:14:06 +0800 | |
commit | a0e23263ff319da6b34b122bcde42a810599df4c (patch) | |
tree | 5993552f09d7e65776e2c1a706b828b1998807eb /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts | |
parent | 9b2981c50e58fa641621d4a4bcb9d8827eb5968d (diff) |
feat:add model business code of slicing business page
Change-Id: I08ddb3d37e9d96c44c596b535083306992f2bf52
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts | 54 |
1 files changed, 47 insertions, 7 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts index dc144c97..8115a79b 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts @@ -1,15 +1,55 @@ -import { Component, OnInit } from '@angular/core'; +import {Component, OnInit, Input} from '@angular/core'; +import {NzModalService} from "ng-zorro-antd"; +import {SlicingTaskServices} from '.././../../../../../core/services/slicingTaskServices'; +import {NsiModelComponent} from "../../nsi-management/nsi-model/nsi-model.component"; @Component({ - selector: 'app-slicing-business-model', - templateUrl: './slicing-business-model.component.html', - styleUrls: ['./slicing-business-model.component.less'] + selector: 'app-slicing-business-model', + templateUrl: './slicing-business-model.component.html', + styleUrls: ['./slicing-business-model.component.less'] }) export class SlicingBusinessModelComponent implements OnInit { - constructor() { } + constructor( + private myhttp: SlicingTaskServices, + private modalService: NzModalService + ) { + } - ngOnInit() { - } + @Input() businessId; + businessRequirement: any[]; + NSTinfo: any[]; + nsiInfo: any[]; + taskModel: boolean = false; + ngOnInit() { + console.log(this.businessId, "id"); + this.getDetail() + } + getDetail() { + this.myhttp.getSlicingBusinessDetail(this.businessId).subscribe(res => { + const {result_header: {result_code}, result_body: {business_demand_info,nst_info,nsi_info} } = res; + if (+result_code === 200) { + // business_demand_info.coverage_area_ta_list.map((item)=>{ + // item.replace(";"," ") + // }); + this.businessRequirement = [business_demand_info]; + this.NSTinfo = [nst_info]; + this.nsiInfo = [nsi_info]; + } + }) + } + showdetail(data) { + console.log(data,"data.nsi_id"); + const nsiModal = this.modalService.create({ + nzTitle:"Detail", + nzContent: NsiModelComponent, + nzWidth:"70%", + nzOkText: null, + nzCancelText: null, + nzComponentParams:{ + businessId:data.nsi_id + } + }); + } } |