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
21 businessRequirement: any[];
24 taskModel: boolean = false;
25 isSpinning: boolean = true;
27 console.log(this.businessId, "id");
32 this.myhttp.getSlicingBusinessDetail(this.businessId).then(res => {
33 this.isSpinning = false;
34 const { business_demand_info, business_demand_info: { coverage_area_ta_list }, nst_info, nsi_info } = res.result_body;
35 business_demand_info.area = coverage_area_ta_list.map(item => {
36 item = item.split(';').join('-');
39 // area : Front-end analog data
40 let area = ["Haidian District;Beijing;Beijing", "Xicheng District;Beijing;Beijing", "Changping District;Beijing;Beijing"].map(item => {
41 item = item.split(';').join(' - ');
44 this.businessRequirement = [{ ...business_demand_info, area }];
45 this.NSTinfo = [nst_info];
46 if (nsi_info.nsi_id !== null) {
47 this.nsiInfo = [nsi_info];
52 console.log(data, "data.nsi_id");
53 const nsiModal = this.modalService.create({
55 nzContent: NsiModelComponent,