From be91d04431f5b1decb5697db202d3956fc133731 Mon Sep 17 00:00:00 2001
From: andyesfly <35127884@qq.com>
Date: Wed, 21 Oct 2026 16:55:00 +0800
Subject: [PATCH] =?UTF-8?q?refactor(dashboard):=20=E5=B0=86=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E8=8B=B1=E6=96=87=E6=96=87=E6=9C=AC=E6=9B=BF=E6=8D=A2?=
=?UTF-8?q?=E4=B8=BA=E4=B8=AD=E6=96=87=E5=B9=B6=E4=BC=98=E5=8C=96=E6=93=8D?=
=?UTF-8?q?=E4=BD=9C=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
替换页面中的英文标签为中文,新增勘察流水行详情操作按钮,为工作流链接添加点击事件处理,移除未使用的图标组件。
---
client/src/views/dashboard/index.vue | 35 ++++++++++++++++++++--------
1 file changed, 25 insertions(+), 10 deletions(-)
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 @@
-
-
+
+
+
+ handleRowAction(key as string, row)">
+ 查看详情
+
+
+
|
@@ -196,7 +202,7 @@
@@ -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