|
|
@ -14,6 +14,8 @@ export class PathComponent implements OnInit, OnChanges { |
|
|
|
whiteListParam = {}; |
|
|
|
whiteListParam = {}; |
|
|
|
greyListParam = {}; |
|
|
|
greyListParam = {}; |
|
|
|
rules; |
|
|
|
rules; |
|
|
|
|
|
|
|
startTime; |
|
|
|
|
|
|
|
endTime; |
|
|
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
private noticeService: NoticeService, |
|
|
|
private noticeService: NoticeService, |
|
|
@ -52,9 +54,17 @@ export class PathComponent implements OnInit, OnChanges { |
|
|
|
parseData() { |
|
|
|
parseData() { |
|
|
|
for (const dataKey in this.detail_data) { |
|
|
|
for (const dataKey in this.detail_data) { |
|
|
|
if (this.detail_data.hasOwnProperty(dataKey)) { |
|
|
|
if (this.detail_data.hasOwnProperty(dataKey)) { |
|
|
|
if (dataKey === 'type') { |
|
|
|
switch (dataKey) { |
|
|
|
|
|
|
|
case 'type': |
|
|
|
this.viewType = this.detail_data[dataKey]; |
|
|
|
this.viewType = this.detail_data[dataKey]; |
|
|
|
} else { |
|
|
|
break; |
|
|
|
|
|
|
|
case 'startTime': |
|
|
|
|
|
|
|
this.startTime = this.detail_data[dataKey]; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 'endTime': |
|
|
|
|
|
|
|
this.endTime = this.detail_data[dataKey]; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
this.data = this.detail_data[dataKey]; |
|
|
|
this.data = this.detail_data[dataKey]; |
|
|
|
this.data.forEach(item => { |
|
|
|
this.data.forEach(item => { |
|
|
|
item['is_in_white_list'] = 0;
|
|
|
|
item['is_in_white_list'] = 0;
|
|
|
|