|
@@ -9,7 +9,7 @@
|
|
|
icon="fa-solid:project-diagram"
|
|
|
icon-bg-color="text-blue-500"
|
|
|
icon-color="bg-blue-100"
|
|
|
- title="设备数"
|
|
|
+ :title="t('stat.deviceCount')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -18,7 +18,7 @@
|
|
|
icon="fa-solid:list"
|
|
|
icon-bg-color="text-pink-500"
|
|
|
icon-color="bg-blue-100"
|
|
|
- title="维修工单"
|
|
|
+ :title="t('stat.maintenanceOrder')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -27,7 +27,7 @@
|
|
|
icon="fa-solid:times-circle"
|
|
|
icon-bg-color="text-purple-500"
|
|
|
icon-color="bg-purple-100"
|
|
|
- title="运行未填写"
|
|
|
+ :title="t('stat.operationNotFilled')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -36,7 +36,7 @@
|
|
|
icon="fa-solid:award"
|
|
|
icon-bg-color="text-purple-500"
|
|
|
icon-color="bg-purple-100"
|
|
|
- title="运行已填写"
|
|
|
+ :title="t('stat.operationFilled')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -45,7 +45,7 @@
|
|
|
icon="fa-solid:times-circle"
|
|
|
icon-bg-color="text-green-500"
|
|
|
icon-color="bg-green-100"
|
|
|
- title="未执行保养"
|
|
|
+ :title="t('stat.notMaintained')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -54,7 +54,7 @@
|
|
|
icon="fa-solid:award"
|
|
|
icon-bg-color="text-green-500"
|
|
|
icon-color="bg-green-100"
|
|
|
- title="已执行保养"
|
|
|
+ :title="t('stat.maintained')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -63,7 +63,7 @@
|
|
|
icon="fa-solid:times-circle"
|
|
|
icon-bg-color="text-yellow-500"
|
|
|
icon-color="bg-yellow-100"
|
|
|
- title="待填写巡检"
|
|
|
+ :title="t('stat.notInspected')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :sm="3" :xs="12">
|
|
@@ -72,7 +72,7 @@
|
|
|
icon="fa-solid:award"
|
|
|
icon-bg-color="text-yellow-500"
|
|
|
icon-color="bg-yellow-100"
|
|
|
- title="已填写巡检"
|
|
|
+ :title="t('stat.inspected')"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<!-- 其他统计卡片... -->
|
|
@@ -154,8 +154,8 @@
|
|
|
<el-card class="chart-card" shadow="never">
|
|
|
<template #header>
|
|
|
<div class="flex items-center justify-between">
|
|
|
- <span class="text-base font-medium " style="color: #b6c8da">MTTR(平均解决时间)</span>
|
|
|
- <span class="text-base font-medium " style="color: #b6c8da">库存预警物料数量</span>
|
|
|
+ <span class="text-base font-medium " style="color: #b6c8da">{{t('stat.mttr')}}</span>
|
|
|
+ <span class="text-base font-medium " style="color: #b6c8da">{{t('stat.materialsUnderInventory')}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="flex flex-col h-[250px]">
|
|
@@ -181,7 +181,7 @@
|
|
|
<el-card class="chart-card" shadow="never">
|
|
|
<template #header>
|
|
|
<div class="flex items-center">
|
|
|
- <span class="text-base font-medium " style="color: #b6c8da">设备状态统计</span>
|
|
|
+ <span class="text-base font-medium " style="color: #b6c8da">{{t('stat.deviceStatus')}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div ref="statusChartRef" class="h-[250px]"></div>
|
|
@@ -191,7 +191,7 @@
|
|
|
<el-card class="chart-card" shadow="never">
|
|
|
<template #header>
|
|
|
<div class="flex items-center">
|
|
|
- <span class="text-base font-medium " style="color: #b6c8da">设备类别TOP5数量</span>
|
|
|
+ <span class="text-base font-medium " style="color: #b6c8da">{{t('stat.deviceClassifyTop5')}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div ref="topContainer" class="h-[250px]"></div>
|
|
@@ -205,7 +205,7 @@
|
|
|
<el-card class="chart-card" shadow="never">
|
|
|
<template #header>
|
|
|
<div class="flex items-center justify-between">
|
|
|
- <span class="text-base font-medium " style="color: #b6c8da">近一周用户活跃度</span>
|
|
|
+ <span class="text-base font-medium " style="color: #b6c8da">{{t('stat.lastWeekActivity')}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div ref="activeDom" class="h-[320px]"></div>
|
|
@@ -215,7 +215,7 @@
|
|
|
<el-card class="chart-card" shadow="never">
|
|
|
<template #header>
|
|
|
<div class="flex items-center justify-between">
|
|
|
- <span class="text-base font-medium" style="color: #b6c8da">工单数量情况</span>
|
|
|
+ <span class="text-base font-medium" style="color: #b6c8da">{{t('stat.orderCount')}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div ref="qxRef" class="h-[320px]"></div>
|
|
@@ -278,10 +278,7 @@ const queryParams = reactive({
|
|
|
const backendData = ref([])
|
|
|
const statusChartRef = ref() // 设备数量统计的图表
|
|
|
const deviceMessageCountChartRef = ref() // 上下行消息量统计的图表
|
|
|
-const writeChartRef = ref() // 上下行消息量统计的图表
|
|
|
-const finishedChartRef = ref() // 上下行消息量统计的图表
|
|
|
-const writeTodayChartRef = ref() // 上下行消息量统计的图表
|
|
|
-const finishedTodayChartRef = ref() // 上下行消息量统计的图表
|
|
|
+const { t } = useI18n() // 国际化
|
|
|
// 基础统计数据
|
|
|
// TODO @super:初始为 -1,然后界面展示先是加载中?试试用 cursor 改哈
|
|
|
const statsData = ref<IotStatisticsSummaryRespVO>({
|