diff --git a/client/src/views/dashboard/index.vue b/client/src/views/dashboard/index.vue index 421edb5..b60aab4 100644 --- a/client/src/views/dashboard/index.vue +++ b/client/src/views/dashboard/index.vue @@ -70,7 +70,7 @@

近7日业务增长趋势

- REALTIME 新增统计 + 实时新增统计

每日新增托管客户与新增合同的对比走势

@@ -138,12 +138,12 @@

待办勘察派单流水

- LIVE ORDERS + 实时单量

最新勘察派单与承接状态的实时跟踪

@@ -184,8 +184,14 @@
- - + + + +
@@ -196,7 +202,7 @@
显示 {{ stats?.surveyList?.length || 0 }} / {{ formatNum(stats?.surveyPending) }} 个待办勘察单 - 进入勘察派单工作流 + 进入勘察派单工作流
@@ -241,7 +247,7 @@

电工资质到期提醒

- CERT ALERT + 证照预警

临期(30 天内)与已过期的电工资质证照清单,已过期优先展示

@@ -297,7 +303,6 @@ import { ScheduleOutlined, FieldTimeOutlined, DeploymentUnitOutlined, - PhoneOutlined, MoreOutlined, UserOutlined, RiseOutlined, @@ -305,7 +310,7 @@ import { } from '@ant-design/icons-vue'; import * as echarts from 'echarts'; import dayjs from 'dayjs'; -import { dashboardApi, type DashboardStats } from '@/api/dashboard'; +import { dashboardApi, type DashboardStats, type SurveyOrderItem } from '@/api/dashboard'; import { workerRegistryApi } from '@/api/workerRegistry'; const router = useRouter(); @@ -515,6 +520,17 @@ function handleRefresh() { loadStats(); } +// 勘察流水行操作 +function handleRowAction(key: string, row: SurveyOrderItem) { + if (key === 'detail') { + router.push({ name: 'DispatchSurveyEdit', params: { id: String(row.id) } }); + } +} + +function goSurveyWorkflow() { + router.push('/dispatch/survey'); +} + function initCharts() { if (trendChartRef.value) trendChart = echarts.init(trendChartRef.value); if (donutChartRef.value) donutChart = echarts.init(donutChartRef.value); @@ -905,6 +921,5 @@ function disposeCharts() { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } - .material-symbols-outlined { font-size: 16px; line-height: 1; } } \ No newline at end of file