blob: 1a3a194e78e1169eec1e923e671daa5a8b9f4fa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { WIRELESS_FORM_ITEMS, TRANSFRER_FORM_ITEMS, CORE_FORM_ITEMS } from '../.../../../../../../../../constants/constants'
@Component({
selector: 'app-subnet-params-model',
templateUrl: './subnet-params-model.component.html',
styleUrls: ['./subnet-params-model.component.less']
})
export class SubnetParamsModelComponent implements OnInit {
@Input() showModel: boolean;
@Input() detailData: any;
@Input() title: string;
@Output() cancel = new EventEmitter<boolean>();
transferFormItems = TRANSFRER_FORM_ITEMS;
coreFormItems = CORE_FORM_ITEMS;
wirelessFormItems = WIRELESS_FORM_ITEMS;
areaList: any[] = [];
constructor() { }
ngOnInit() { }
ngOnChanges() {
if (this.title === '无线域') {
this.AreaFormatting();
}
}
AreaFormatting () {
let areaList = [...this.detailData.an_coverage_area_ta_list];
this.areaList = areaList.map ( (item: any) => {
let arr = item.split(';');
item = arr.map( ite => {
let obj: any = {};
obj.selected = ite
obj.options = [{name: ite, id: ite}]
return obj
})
return item;
})
}
creatAreaList () {
}
handleCancel() {
this.showModel = false
this.cancel.emit(this.showModel)
}
handleOk(): void {
this.handleCancel()
}
}
|