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