From 8206121d4692d7fe0caece556013fab9d8977e84 Mon Sep 17 00:00:00 2001 From: bestlee Date: Wed, 30 Sep 2026 13:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E4=B8=93=E4=B8=9A=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1-=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/modules/template10.vue | 1 - src/views/professionalStatistics/index.vue | 337 ++++----- src/views/workshopStatistics/index.vue | 656 ++++++------------ .../modules/columnChart.vue | 90 --- .../workshopStatistics/modules/ringChart.vue | 7 +- 5 files changed, 369 insertions(+), 722 deletions(-) delete mode 100644 src/views/workshopStatistics/modules/columnChart.vue diff --git a/src/views/home/modules/template10.vue b/src/views/home/modules/template10.vue index 9a30ceb..7244c09 100644 --- a/src/views/home/modules/template10.vue +++ b/src/views/home/modules/template10.vue @@ -53,7 +53,6 @@ const getData = async () => { loading.value = true; const {data,error} = await homeNonApproverApi(); if(!error){ - console.log(data) homeData.value = data; } loading.value = false; diff --git a/src/views/professionalStatistics/index.vue b/src/views/professionalStatistics/index.vue index 26130be..bd39ed6 100644 --- a/src/views/professionalStatistics/index.vue +++ b/src/views/professionalStatistics/index.vue @@ -10,12 +10,6 @@ import { specialtyStatisticsApi } from '@/service/api/statistics'; const themeStore = useThemeStore(); const { routerPushByKey } = useRouterPush(); -const profHighRisk = [ - { id: "MOC-2026-R01-0035", status: '审批中', title: 'R-201 反应釜搅拌器电机更换(55kW→75kW 防爆电机)' }, - { id: "MOC-2026-R01-0036", status: '审批中', title: '聚合反应温度控制上限调整(78℃→82℃)' }, - { id: "MOC-2026-R01-0037", status: '实施中', title: '原料环己烷供应商变更(新增 B 供应商)' }, -]; - const loading = ref(false); const homeData = ref(null); @@ -23,6 +17,10 @@ const homeData = ref(null); const jumpTo = (key: string) => { routerPushByKey(key as any); } +// 小时转换天 +const hourToDay = (hour: number) => { + return Math.trunc((hour / 24) * 100) / 100; +} // 获取数据 const getData = async () => { @@ -33,7 +31,6 @@ const getData = async () => { }); if(!error){ homeData.value = data; - console.log(data); } loading.value = false; } @@ -44,168 +41,180 @@ onMounted(() => { diff --git a/src/views/workshopStatistics/index.vue b/src/views/workshopStatistics/index.vue index 83fc453..bfefbc5 100644 --- a/src/views/workshopStatistics/index.vue +++ b/src/views/workshopStatistics/index.vue @@ -1,132 +1,77 @@