diff --git a/gear-ui3/public/favicon.png b/gear-ui3/public/favicon.png index 3300251..515dfb1 100644 Binary files a/gear-ui3/public/favicon.png and b/gear-ui3/public/favicon.png differ diff --git a/gear-ui3/src/App.vue b/gear-ui3/src/App.vue index 4aa6b2c..47ef027 100644 --- a/gear-ui3/src/App.vue +++ b/gear-ui3/src/App.vue @@ -6,12 +6,21 @@ import useSettingsStore from '@/store/modules/settings' import { handleThemeStyle } from '@/utils/theme' import useProductStore from '@/store/modules/product' +import { getToken } from '@/utils/auth' +import { useDark } from '@vueuse/core' + +const isDark = useDark() onMounted(() => { nextTick(() => { - // 初始化主题样式 + console.log(isDark.value) + if (!isDark.value) { + useSettingsStore().toggleTheme() + } handleThemeStyle(useSettingsStore().theme) - useProductStore().fetchProductMap() + if (getToken()) { + useProductStore().fetchProductMap() + } }) }) diff --git a/gear-ui3/src/assets/images/back.jpg b/gear-ui3/src/assets/images/back.jpg new file mode 100644 index 0000000..29a48ab Binary files /dev/null and b/gear-ui3/src/assets/images/back.jpg differ diff --git a/gear-ui3/src/assets/images/back.png b/gear-ui3/src/assets/images/back.png new file mode 100644 index 0000000..1250e4f Binary files /dev/null and b/gear-ui3/src/assets/images/back.png differ diff --git a/gear-ui3/src/assets/images/right.jpg b/gear-ui3/src/assets/images/right.jpg new file mode 100644 index 0000000..d45c852 Binary files /dev/null and b/gear-ui3/src/assets/images/right.jpg differ diff --git a/gear-ui3/src/assets/images/right.png b/gear-ui3/src/assets/images/right.png new file mode 100644 index 0000000..401d10e Binary files /dev/null and b/gear-ui3/src/assets/images/right.png differ diff --git a/gear-ui3/src/assets/logo/logo-full.jpg b/gear-ui3/src/assets/logo/logo-full.jpg new file mode 100644 index 0000000..40daf31 Binary files /dev/null and b/gear-ui3/src/assets/logo/logo-full.jpg differ diff --git a/gear-ui3/src/assets/logo/logo.png b/gear-ui3/src/assets/logo/logo.png index 3300251..515dfb1 100644 Binary files a/gear-ui3/src/assets/logo/logo.png and b/gear-ui3/src/assets/logo/logo.png differ diff --git a/gear-ui3/src/components/AllApplications.vue b/gear-ui3/src/components/AllApplications.vue index 6be0684..994e142 100644 --- a/gear-ui3/src/components/AllApplications.vue +++ b/gear-ui3/src/components/AllApplications.vue @@ -1,71 +1,151 @@ \ No newline at end of file diff --git a/gear-ui3/src/layout/components/Navbar.vue b/gear-ui3/src/layout/components/Navbar.vue index 29ec3fa..ba0a337 100644 --- a/gear-ui3/src/layout/components/Navbar.vue +++ b/gear-ui3/src/layout/components/Navbar.vue @@ -10,16 +10,16 @@ - + - + diff --git a/gear-ui3/src/views/dashboard/common/ChartRenderer.vue b/gear-ui3/src/views/dashboard/common/ChartRenderer.vue deleted file mode 100644 index e69de29..0000000 diff --git a/gear-ui3/src/views/dashboard/common/ChartWrapper.vue b/gear-ui3/src/views/dashboard/common/ChartWrapper.vue deleted file mode 100644 index e69de29..0000000 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/ChartLayoutPreview.vue b/gear-ui3/src/views/dashboard/grid/ChartLayoutPreview.vue new file mode 100644 index 0000000..6a56a14 --- /dev/null +++ b/gear-ui3/src/views/dashboard/grid/ChartLayoutPreview.vue @@ -0,0 +1,212 @@ + + + + + + \ 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..ad6040d 100644 --- a/gear-ui3/src/views/dashboard/grid/index.vue +++ b/gear-ui3/src/views/dashboard/grid/index.vue @@ -1,181 +1,185 @@ \ 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..9c08c05 100644 --- a/gear-ui3/src/views/dashboard/grid/setting.vue +++ b/gear-ui3/src/views/dashboard/grid/setting.vue @@ -3,155 +3,168 @@

图表布局设置

-
- - +
+ 应用设置 - + 取消修改
- +
- -
-

布局预览

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

图表配置

- - - - +

+ 图表配置 +

+ + + + + - - + - + - + + + + + + + + + +
+ + +
+ \ 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..68f4a1f 100644 --- a/gear-ui3/src/views/dashboard/layout/index.vue +++ b/gear-ui3/src/views/dashboard/layout/index.vue @@ -36,7 +36,7 @@ - + diff --git a/gear-ui3/src/views/index.vue b/gear-ui3/src/views/index.vue index cde14b1..1ea9a22 100644 --- a/gear-ui3/src/views/index.vue +++ b/gear-ui3/src/views/index.vue @@ -2,150 +2,21 @@
- - -
-

常用应用

- -
-
-
-
- -
-

{{ module.title }}

-
-
- - -
-
-
-

编辑常用应用

- -
-
-
- 暂无常用应用,可从下方"全部应用"中添加 -
-
    -
  • -
    - {{ index + 1 }} - {{ module.title }} -
    -
    - - - - - - -
    -
  • -
-
- -
-