From b293cbd04f202a4da08f5ea990ccc15a1854a8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Fri, 5 Sep 2025 14:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=8F=AF=E8=A7=86=E5=8C=96?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gear-ui3/src/components/AllApplications.vue | 3 +- .../components/RecentOrdersTable.vue | 214 ++++++++ .../components/SalesByCustomerChart.vue | 2 + .../dashboard/components/SalesMetricsCard.vue | 119 ++++ gear-ui3/src/views/dashboard/grid/index.vue | 191 +++---- gear-ui3/src/views/dashboard/grid/setting.vue | 518 +++++++++++------- gear-ui3/src/views/dashboard/index.vue | 18 +- gear-ui3/src/views/dashboard/layout/index.vue | 2 +- 8 files changed, 752 insertions(+), 315 deletions(-) create mode 100644 gear-ui3/src/views/dashboard/components/RecentOrdersTable.vue create mode 100644 gear-ui3/src/views/dashboard/components/SalesMetricsCard.vue diff --git a/gear-ui3/src/components/AllApplications.vue b/gear-ui3/src/components/AllApplications.vue index 6be0684..dd8f1f5 100644 --- a/gear-ui3/src/components/AllApplications.vue +++ b/gear-ui3/src/components/AllApplications.vue @@ -63,9 +63,8 @@ export default { computed: { filteredMenus() { const filterHidden = (menus) => { - console.log(menus) return menus - .filter(menu => menu.hidden !== true) + .filter(menu => menu.hidden !== true && menu?.meta?.title != '综合大屏') .map(menu => { if (menu.children) { menu.children = filterHidden(menu.children) diff --git a/gear-ui3/src/views/dashboard/components/RecentOrdersTable.vue b/gear-ui3/src/views/dashboard/components/RecentOrdersTable.vue new file mode 100644 index 0000000..f5cfbd5 --- /dev/null +++ b/gear-ui3/src/views/dashboard/components/RecentOrdersTable.vue @@ -0,0 +1,214 @@ + + + + + \ No newline at end of file diff --git a/gear-ui3/src/views/dashboard/components/SalesByCustomerChart.vue b/gear-ui3/src/views/dashboard/components/SalesByCustomerChart.vue index d9324b5..db09fe3 100644 --- a/gear-ui3/src/views/dashboard/components/SalesByCustomerChart.vue +++ b/gear-ui3/src/views/dashboard/components/SalesByCustomerChart.vue @@ -20,6 +20,8 @@ const props = defineProps({ isRefreshing: { type: Boolean, default: false } }); +console.log(props.orders, '客户订单汇总') + // 图表容器引用 const barChartRef = ref(null); const radarChartRef = ref(null); diff --git a/gear-ui3/src/views/dashboard/components/SalesMetricsCard.vue b/gear-ui3/src/views/dashboard/components/SalesMetricsCard.vue new file mode 100644 index 0000000..084f8e0 --- /dev/null +++ b/gear-ui3/src/views/dashboard/components/SalesMetricsCard.vue @@ -0,0 +1,119 @@ + + + + + \ No newline at end of file diff --git a/gear-ui3/src/views/dashboard/grid/index.vue b/gear-ui3/src/views/dashboard/grid/index.vue index 2d71a28..7aefd4a 100644 --- a/gear-ui3/src/views/dashboard/grid/index.vue +++ b/gear-ui3/src/views/dashboard/grid/index.vue @@ -1,13 +1,13 @@ \ No newline at end of file diff --git a/gear-ui3/src/views/dashboard/grid/setting.vue b/gear-ui3/src/views/dashboard/grid/setting.vue index 83346f3..0edd8e9 100644 --- a/gear-ui3/src/views/dashboard/grid/setting.vue +++ b/gear-ui3/src/views/dashboard/grid/setting.vue @@ -3,21 +3,12 @@

图表布局设置

-
- +
+ 应用设置 - + 取消修改
@@ -25,106 +16,132 @@
- -
-

布局预览

-
- - -
-
- {{ chart.title }} - -
-
- {{ chart.id }} -
-
-
-
-
-
- -
-

图表配置

- - - - +

+ 图表配置 +

+ + + + + + + + - - + + + - + + - + + + + + + + + + + + + + + @@ -134,22 +151,22 @@
+ \ No newline at end of file diff --git a/gear-ui3/src/views/dashboard/index.vue b/gear-ui3/src/views/dashboard/index.vue index a063549..67e783b 100644 --- a/gear-ui3/src/views/dashboard/index.vue +++ b/gear-ui3/src/views/dashboard/index.vue @@ -85,17 +85,17 @@ const resizeFn = debounce(function () { }, 200); // 组件挂载后自动全屏 -// onMounted(() => { -// const documentWidth = document.body.offsetWidth; -// const ratio = documentWidth / 1920; -// if (documentWidth > 1920) { -// document.body.style.transform = `scale(${ratio}, ${ratio})`; -// } +onMounted(() => { + const documentWidth = document.body.offsetWidth; + const ratio = documentWidth / 1920; + if (documentWidth > 1920) { + document.body.style.transform = `scale(${ratio}, ${ratio})`; + } -// window.addEventListener('resize', resizeFn); + window.addEventListener('resize', resizeFn); -// setTimeout(handleEnterFullscreen, 100); -// }); + setTimeout(handleEnterFullscreen, 100); +}); // 路由离开前退出全屏 onBeforeRouteLeave((to, from, next) => { diff --git a/gear-ui3/src/views/dashboard/layout/index.vue b/gear-ui3/src/views/dashboard/layout/index.vue index 1f8b308..bc6f62e 100644 --- a/gear-ui3/src/views/dashboard/layout/index.vue +++ b/gear-ui3/src/views/dashboard/layout/index.vue @@ -36,7 +36,7 @@ - +