yanghao пре 2 дана
родитељ
комит
f844878bde
3 измењених фајлова са 35 додато и 6 уклоњено
  1. 4 0
      src/locales/en.ts
  2. 4 0
      src/locales/zh-CN.ts
  3. 27 6
      src/views/pms/qhse/kanban/index.vue

+ 4 - 0
src/locales/en.ts

@@ -9005,6 +9005,10 @@ export default {
     'indexvue325112-110': 'QHSE Kanban',
     'indexvue325112-111': 'Certificate Information',
 
+    'indexvue325112-112': 'LTIR(mwh)',
+    'indexvue325112-113': 'TRIR(mwh)',
+    'indexvue325112-114': 'PMVA(mkm)',
+
     'indexvue621523-0': 'Name',
     'indexvue621523-1': 'Please enter the name of the measuring instrument',
     'indexvue621523-2': 'Responsible Person',

+ 4 - 0
src/locales/zh-CN.ts

@@ -8890,6 +8890,10 @@ export default {
     'indexvue325112-110': 'QHSE管理看板',
     'indexvue325112-111': '证书信息看板',
 
+    'indexvue325112-112': 'LTIR(百万工时)',
+    'indexvue325112-113': 'TRIR(百万工时)',
+    'indexvue325112-114': 'PMVA(百万公里)',
+
     'indexvue621523-0': '计量器具名称',
     'indexvue621523-1': '请输入计量器具名称',
     'indexvue621523-2': '责任人',

+ 27 - 6
src/views/pms/qhse/kanban/index.vue

@@ -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 {