From 2cb77a3487b8c5da6fe02f3c1018dcf70f73d29a Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期一, 19 十月 2026 10:25:22 +0800
Subject: [PATCH] feat(hrm): 社保公积金方案新增大病医疗/长期护理(输入支持两位小数)
---
src/views/dashboard/analytics/index.vue | 53 +++++++----------------------------------------------
1 files changed, 7 insertions(+), 46 deletions(-)
diff --git a/src/views/dashboard/analytics/index.vue b/src/views/dashboard/analytics/index.vue
index 6085aef..4d25b15 100644
--- a/src/views/dashboard/analytics/index.vue
+++ b/src/views/dashboard/analytics/index.vue
@@ -1,24 +1,16 @@
<script lang="ts" setup>
-import { computed, onMounted, ref } from 'vue';
+import { computed } from 'vue';
import { useRouter } from 'vue-router';
import { Page } from '@vben/common-ui';
-import { Card, Col, Row } from 'ant-design-vue';
-
-import { getHomeSummary } from '#/api/mes/home';
-
-import { defaultSummary } from './data';
-import AlertPanel from './modules/alert-panel.vue';
import BizCards from './modules/biz-cards.vue';
import KpiCards from './modules/kpi-cards.vue';
-import ProductionTrend from './modules/production-trend.vue';
import QuickActions from './modules/quick-actions.vue';
defineOptions({ name: 'DashboardAnalytics' });
const router = useRouter();
-const summary = ref(defaultSummary);
const greeting = computed(() => {
const hour = new Date().getHours();
@@ -36,17 +28,9 @@
return `${d.getFullYear()}骞�${d.getMonth() + 1}鏈�${d.getDate()}鏃� 鏄熸湡${weekNames[d.getDay()]}`;
});
-function handleNavigate(name: string) {
- router.push({ name });
+function handleNavigate(path: string) {
+ router.push(path);
}
-
-async function loadSummary() {
- summary.value = await getHomeSummary();
-}
-
-onMounted(() => {
- loadSummary();
-});
</script>
<template>
@@ -70,37 +54,14 @@
</div>
</div>
- <!-- MES 鐢熶骇 KPI -->
- <KpiCards :summary="summary" @navigate="handleNavigate" />
+ <!-- 浜哄姏璧勬簮妯″潡 -->
+ <KpiCards @navigate="handleNavigate" />
- <!-- ERP/WMS/BPM 缁忚惀 KPI -->
+ <!-- 鍞悗绠$悊妯″潡 -->
<BizCards @navigate="handleNavigate" />
- <!-- 鐢熶骇瓒嬪娍 + 棰勮闈㈡澘 -->
- <Row :gutter="16" class="mb-4">
- <Col :lg="14" :md="24" :sm="24" :xl="14" :xs="24" class="mb-4">
- <div class="glass-card rounded-2xl p-5">
- <h3 class="mb-4 text-base font-semibold text-gray-800 dark:text-gray-100">
- 鐢熶骇瓒嬪娍锛堣繎7澶╋級
- </h3>
- <ProductionTrend />
- </div>
- </Col>
- <Col :lg="10" :md="24" :sm="24" :xl="10" :xs="24" class="mb-4">
- <AlertPanel
- :andon-active-count="summary.andonActiveCount"
- :repair-active-count="summary.repairActiveCount"
- @navigate="handleNavigate"
- />
- </Col>
- </Row>
-
<!-- 蹇嵎鎿嶄綔 -->
- <Row :gutter="16" class="mb-4">
- <Col :span="24">
- <QuickActions @navigate="handleNavigate" />
- </Col>
- </Row>
+ <QuickActions @navigate="handleNavigate" />
</Page>
</template>
--
Gitblit v1.9.3