|
|
@@ -236,16 +236,37 @@ const qualificationWarnings = computed(() => [
|
|
|
{ label: t('qhse.indexvue325112-91'), value: 0, accent: '#e6ab00', key: 'warn' }
|
|
|
])
|
|
|
|
|
|
-const qhseMetricTabs = [
|
|
|
- { label: 'LTIR(百万工时)', value: 'ltir', accent: '#3d7cff', label2: '百万工时损失工时事故率' },
|
|
|
- { label: 'TRIR(百万工时)', value: 'trir', accent: '#17b6c5', label2: '百万工时总可记录事件率' },
|
|
|
+// const qhseMetricTabs = [
|
|
|
+// { label: 'LTIR(百万工时)', value: 'ltir', accent: '#3d7cff', label2: '百万工时损失工时事故率' },
|
|
|
+// { label: 'TRIR(百万工时)', value: 'trir', accent: '#17b6c5', label2: '百万工时总可记录事件率' },
|
|
|
+// {
|
|
|
+// label: 'PMVA(百万公里)',
|
|
|
+// value: 'pmva',
|
|
|
+// accent: '#f2a93b',
|
|
|
+// label2: '百万公里可预防性交通事故率'
|
|
|
+// }
|
|
|
+// ] as const
|
|
|
+
|
|
|
+const qhseMetricTabs = computed(() => [
|
|
|
{
|
|
|
- label: 'PMVA(百万公里)',
|
|
|
+ label: t('qhse.indexvue325112-112'),
|
|
|
+ value: 'ltir',
|
|
|
+ accent: '#3d7cff',
|
|
|
+ label2: '百万工时损失工时事故率'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('qhse.indexvue325112-113'),
|
|
|
+ value: 'trir',
|
|
|
+ accent: '#17b6c5',
|
|
|
+ label2: '百万工时总可记录事件率'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('qhse.indexvue325112-114'),
|
|
|
value: 'pmva',
|
|
|
accent: '#f2a93b',
|
|
|
label2: '百万公里可预防性交通事故率'
|
|
|
}
|
|
|
-] as const
|
|
|
+])
|
|
|
|
|
|
const activeQhseMetric = ref<QhseMetricValue>('ltir')
|
|
|
const dangerGradeOptions = computed(() => getStrDictOptions(DICT_TYPE.DANGER_GRADE))
|
|
|
@@ -697,7 +718,7 @@ function destroySafeDayChart() {
|
|
|
|
|
|
function getQhseTrendChartOption(): echarts.EChartsOption {
|
|
|
const activeTab =
|
|
|
- qhseMetricTabs.find((item) => item.value === activeQhseMetric.value) || qhseMetricTabs[0]
|
|
|
+ qhseMetricTabs.value.find((item) => item.value === activeQhseMetric.value) || qhseMetricTabs[0]
|
|
|
const seriesData = qhseTrendSeries.value[activeQhseMetric.value] || []
|
|
|
|
|
|
return {
|