TANGWY 5 months ago
commit eb6db892d9
  1. 30
      src/app/routes/config/layout/manage/path/path.component.ts

@ -16,6 +16,8 @@ export class PathComponent implements OnInit, OnChanges {
rules; rules;
queryLogUrl = "/WebApi/isoc/static/base/#/route/threat-state/log/action?" queryLogUrl = "/WebApi/isoc/static/base/#/route/threat-state/log/action?"
// /WebApi/isoc/static/base/#/route/threat-state/log/action?startTime=1717396269&endTime=1717403469&sip=zhang3 // /WebApi/isoc/static/base/#/route/threat-state/log/action?startTime=1717396269&endTime=1717403469&sip=zhang3
startTime;
endTime;
constructor( constructor(
private noticeService: NoticeService, private noticeService: NoticeService,
public message: NzMessageService, public message: NzMessageService,
@ -54,17 +56,23 @@ 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') {
this.viewType = this.detail_data[dataKey]; switch (dataKey) {
} else { case 'type':
if(dataKey === 'startTime'||dataKey === 'endTime'){ this.viewType = this.detail_data[dataKey];
continue; break;
} case 'startTime':
this.data = this.detail_data[dataKey]; this.startTime = this.detail_data[dataKey];
this.data.forEach(item => { break;
item['is_in_white_list'] = 0; case 'endTime':
item['is_in_grey_list'] = 0; this.endTime = this.detail_data[dataKey];
}); break;
default:
this.data = this.detail_data[dataKey];
this.data.forEach(item => {
item['is_in_white_list'] = 0;
item['is_in_grey_list'] = 0;
});
} }
} }
} }

Loading…
Cancel
Save