1 import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
2 import { WIRELESS_FORM_ITEMS, TRANSFRER_FORM_ITEMS, CORE_FORM_ITEMS } from '../.../../../../../../../../constants/constants'
5 selector: 'app-subnet-params-model',
6 templateUrl: './subnet-params-model.component.html',
7 styleUrls: ['./subnet-params-model.component.less']
9 export class SubnetParamsModelComponent implements OnInit {
11 @Input() showModel: boolean;
12 @Input() detailData: any;
13 @Input() title: string;
14 @Output() cancel = new EventEmitter<boolean>();
16 transferFormItems = TRANSFRER_FORM_ITEMS;
17 coreFormItems = CORE_FORM_ITEMS;
18 wirelessFormItems = WIRELESS_FORM_ITEMS;
26 if (this.title === '无线域') {
27 this.AreaFormatting();
32 let areaList = [...this.detailData.an_coverage_area_ta_list];
33 this.areaList = areaList.map ( (item: any) => {
34 let arr = item.split(';');
35 item = arr.map( ite => {
38 obj.options = [{name: ite, id: ite}]
50 this.showModel = false
51 this.cancel.emit(this.showModel)