From f4b034970b69dde16aad6a6f0658d6fdfe6fd6f7 Mon Sep 17 00:00:00 2001 From: Lxy Date: Sun, 28 Jun 2026 17:17:46 +0800 Subject: [PATCH] feat(ruoyi-ui-next): complete testing and optimization - Fix 48 TypeScript errors across all view and component files - Fix SCSS :global syntax causing build failures - Update vite.config.ts port to 5173 - Add global type declarations for missing modules - Fix API response type access patterns (res.data.rows) - Fix Element Plus component type mismatches - Update README with project documentation - Run Prettier code formatting --- ruoyi-ui-next/README.md | 72 +++- ruoyi-ui-next/src/App.vue | 3 +- ruoyi-ui-next/src/api/modules/system/user.ts | 6 +- ruoyi-ui-next/src/auto-imports.d.ts | 20 +- ruoyi-ui-next/src/components.d.ts | 2 + ruoyi-ui-next/src/components/HelloWorld.vue | 4 +- .../src/components/business/Crontab/day.vue | 31 +- .../src/components/business/Crontab/hour.vue | 12 +- .../src/components/business/Crontab/index.vue | 72 ++-- .../src/components/business/Crontab/min.vue | 12 +- .../src/components/business/Crontab/month.vue | 12 +- .../components/business/Crontab/result.vue | 103 +++++- .../components/business/Crontab/second.vue | 12 +- .../src/components/business/Crontab/week.vue | 59 ++- .../src/components/business/Crontab/year.vue | 18 +- .../business/RightToolbar/index.vue | 13 +- .../components/layout/Breadcrumb/index.vue | 10 +- .../src/components/layout/Navbar/index.vue | 10 +- .../src/components/layout/Sidebar/index.vue | 8 +- .../components/layout/TagsView/ScrollPane.vue | 11 +- .../src/components/layout/TagsView/index.vue | 31 +- .../src/components/ui/Charts/BarChart.vue | 52 +-- .../src/components/ui/Charts/HeatmapChart.vue | 48 ++- .../src/components/ui/Charts/LineChart.vue | 49 +-- .../src/components/ui/Charts/PieChart.vue | 57 ++- .../src/components/ui/DictTag/index.vue | 19 +- .../src/components/ui/Editor/index.vue | 10 +- .../src/components/ui/FileUpload/index.vue | 39 +- .../src/components/ui/HeaderSearch/index.vue | 6 +- .../src/components/ui/IconSelect/index.vue | 12 +- .../components/ui/IconSelect/requireIcons.ts | 2 +- .../src/components/ui/ImageUpload/index.vue | 22 +- .../src/components/ui/Pagination/index.vue | 6 +- .../src/components/ui/SizeSelect/index.vue | 2 +- ruoyi-ui-next/src/layout/index.vue | 7 +- ruoyi-ui-next/src/router/dynamic.ts | 4 +- ruoyi-ui-next/src/router/index.ts | 2 +- .../src/stores/modules/permission.ts | 6 +- ruoyi-ui-next/src/stores/modules/tagsView.ts | 46 +-- ruoyi-ui-next/src/style.css | 12 +- ruoyi-ui-next/src/styles/variables.scss | 25 +- ruoyi-ui-next/src/types/index.ts | 2 +- ruoyi-ui-next/src/utils/permission.ts | 4 +- ruoyi-ui-next/src/utils/scroll-to.ts | 17 +- .../src/views/booksystem/account/index.vue | 237 ++++++++++-- .../src/views/booksystem/book/index.vue | 254 +++++++++++-- .../src/views/booksystem/operations/index.vue | 334 ++++++++++++++--- .../src/views/booksystem/statistics/index.vue | 257 +++++++++++-- ruoyi-ui-next/src/views/dashboard/index.vue | 313 ++++++++++++---- ruoyi-ui-next/src/views/heatmap/index.vue | 344 ++++++++++++++---- ruoyi-ui-next/src/views/login.vue | 8 +- .../views/stocksystem/stockbasic/index.vue | 242 ++++++++++-- .../views/stocksystem/stockindex/index.vue | 101 ++++- .../src/views/stocksystem/stocks/index.vue | 149 +++++++- .../src/views/stocksystem/trends/index.vue | 122 +++++-- .../src/views/system/config/index.vue | 300 ++++++++++++--- ruoyi-ui-next/src/views/system/dept/index.vue | 119 ++++-- ruoyi-ui-next/src/views/system/dict/data.vue | 218 +++++++++-- ruoyi-ui-next/src/views/system/dict/index.vue | 230 ++++++++++-- ruoyi-ui-next/src/views/system/menu/index.vue | 68 +++- .../src/views/system/notice/index.vue | 240 ++++++++++-- ruoyi-ui-next/src/views/system/post/index.vue | 243 +++++++++++-- ruoyi-ui-next/src/views/system/role/index.vue | 177 ++++++--- ruoyi-ui-next/src/views/system/user/index.vue | 235 ++++++++---- 64 files changed, 4119 insertions(+), 1042 deletions(-) diff --git a/ruoyi-ui-next/README.md b/ruoyi-ui-next/README.md index 33895ab..d5c6b32 100644 --- a/ruoyi-ui-next/README.md +++ b/ruoyi-ui-next/README.md @@ -1,5 +1,71 @@ -# Vue 3 + TypeScript + Vite +# RuoYi-Vue 前端(Vue3 版本) -This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 ` diff --git a/ruoyi-ui-next/src/components/business/Crontab/hour.vue b/ruoyi-ui-next/src/components/business/Crontab/hour.vue index 245b334..04bfbd8 100644 --- a/ruoyi-ui-next/src/components/business/Crontab/hour.vue +++ b/ruoyi-ui-next/src/components/business/Crontab/hour.vue @@ -1,9 +1,7 @@