|
@@ -2,7 +2,8 @@ import { Component, ElementRef, Input, ViewChild } from '@angular/core';
|
|
|
import { StationEvent } from '../../../../classes/d3/line.class';
|
|
|
import { StationD3Model } from '../../../../classes/d3/station.class';
|
|
|
import { horizontalInOutReverse } from '../../../../common.animation';
|
|
|
-import { hazardLevelColor, hazardLevelOptions } from '../../../manager/hazard/hazard.utils';
|
|
|
+import { hazardLevelOptions } from '../../../manager/hazard/hazard.utils';
|
|
|
+import { datavHazardLevelColor } from '../../datav.utils';
|
|
|
import { CommonNzModule } from './../../../../common.nz.module';
|
|
|
import { KnowledgeService } from './../../../../services/knowledge.service';
|
|
|
import { LineAirportComponent } from './../../../../shared/line/airport/airport.component';
|
|
@@ -55,7 +56,7 @@ export class MainMetroComponent {
|
|
|
this.hazardLevels = hazardLevelOptions.map(option => ({
|
|
|
label: option.label + '隐患',
|
|
|
value: this.currentHazardItems.filter(item => item.level === option.value).length,
|
|
|
- color: hazardLevelColor[option.value],
|
|
|
+ color: datavHazardLevelColor[option.value],
|
|
|
key: option.value,
|
|
|
checked: true,
|
|
|
}));
|