1 import { Component, OnInit, Input } from '@angular/core';
2 import { NzModalService, NzMessageService } from "ng-zorro-antd";
3 import { SlicingTaskServices } from '.././../../../../../core/services/slicingTaskServices';
4 import { NsiModelComponent } from "../../nsi-management/nsi-model/nsi-model.component";
7 selector: 'app-slicing-business-model',
8 templateUrl: './slicing-business-model.component.html',
9 styleUrls: ['./slicing-business-model.component.less']
11 export class SlicingBusinessModelComponent implements OnInit {
14 private myhttp: SlicingTaskServices,
15 private modalService: NzModalService,
16 private message: NzMessageService
22 businessRequirement: any[];
25 taskModel: boolean = false;
26 isSpinning: boolean = true;
28 businessDetailInfo : any = {}
30 this.status = this.outerData.orchestration_status
31 console.log('status',this.status)
36 this.myhttp.getSlicingBusinessDetail(this.businessId).then(res => {
37 this.isSpinning = false;
38 const { business_demand_info, business_demand_info: { coverage_area_ta_list }, nst_info, nsi_info ,business_detail_info} = res.result_body;
39 this.businessDetailInfo = business_detail_info
40 business_demand_info.area = coverage_area_ta_list.map(item => {
41 item = item.split(';').join('-');
44 // area : Front-end analog data
45 let area = ["Haidian District;Beijing;Beijing", "Xicheng District;Beijing;Beijing", "Changping District;Beijing;Beijing"].map(item => {
46 item = item.split(';').join(' - ');
49 this.businessRequirement = [{ ...business_demand_info, area }];
50 this.NSTinfo = [nst_info];
51 console.log('ngs',this.NSTinfo)
52 if (nsi_info.nsi_id !== null) {
53 this.nsiInfo = [nsi_info];
58 const nsiModal = this.modalService.create({
60 nzContent: NsiModelComponent,