From ad3592b218684cbf61476192593d5ab0f88b3552 Mon Sep 17 00:00:00 2001 From: xzh <42543075@qq.com> Date: Tue, 25 Mar 2025 00:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A4=BC=E8=96=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 20 -- README.md | 76 ----- package.json | 2 +- src/api/main/giftBook/index.ts | 63 ++++ src/api/main/giftBook/types.ts | 45 +++ src/api/main/giftBookDetails/index.ts | 63 ++++ src/api/main/giftBookDetails/types.ts | 171 ++++++++++ src/components/RuoYiGit/index.vue | 2 +- src/layout/components/Navbar.vue | 12 +- src/layout/components/Sidebar/Logo.vue | 3 +- src/layout/components/notice/index.vue | 2 +- src/views/index.vue | 8 +- src/views/login.vue | 34 +- src/views/main/giftBook/index.vue | 220 ++++++++++++ src/views/main/giftBookDetails/index.vue | 417 +++++++++++++++++++++++ src/views/system/user/profile/index.vue | 6 +- 16 files changed, 1014 insertions(+), 130 deletions(-) delete mode 100644 LICENSE delete mode 100644 README.md create mode 100644 src/api/main/giftBook/index.ts create mode 100644 src/api/main/giftBook/types.ts create mode 100644 src/api/main/giftBookDetails/index.ts create mode 100644 src/api/main/giftBookDetails/types.ts create mode 100644 src/views/main/giftBook/index.vue create mode 100644 src/views/main/giftBookDetails/index.vue diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 32b3071..0000000 --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2019 RuoYi-Vue-Plus - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index ebc088b..0000000 --- a/README.md +++ /dev/null @@ -1,76 +0,0 @@ -## 平台简介 - -- 本仓库为前端技术栈 [Vue3](https://v3.cn.vuejs.org) + [TS](https://www.typescriptlang.org/) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev) 版本。 -- 成员项目: 基于 vben5(ant-design-vue) 的前端项目 [ruoyi-plus-vben5](https://gitee.com/dapppp/ruoyi-plus-vben5) -- 配套后端代码仓库地址 -- [RuoYi-Vue-Plus 5.X(注意版本号)](https://gitee.com/dromara/RuoYi-Vue-Plus) -- [RuoYi-Cloud-Plus 2.X(注意版本号)](https://gitee.com/dromara/RuoYi-Cloud-Plus) - -## 前端运行 - -```bash -# 克隆项目 -git clone https://gitee.com/JavaLionLi/plus-ui.git - -# 安装依赖 -npm install --registry=https://registry.npmmirror.com - -# 启动服务 -npm run dev - -# 构建生产环境 -npm run build:prod - -# 前端访问地址 http://localhost:80 -``` - -## 本框架与RuoYi的业务差异 - -| 业务 | 功能说明 | 本框架 | RuoYi | -| ------------ | ------------------------------------------------------------- | ------ | ----------------------------- | -| 租户管理 | 系统内租户的管理 如:租户套餐、过期时间、用户数量、企业信息等 | 支持 | 无 | -| 租户套餐管理 | 系统内租户所能使用的套餐管理 如:套餐内所包含的菜单等 | 支持 | 无 | -| 用户管理 | 用户的管理配置 如:新增用户、分配用户所属部门、角色、岗位等 | 支持 | 支持 | -| 部门管理 | 配置系统组织机构(公司、部门、小组) 树结构展现支持数据权限 | 支持 | 支持 | -| 岗位管理 | 配置系统用户所属担任职务 | 支持 | 支持 | -| 菜单管理 | 配置系统菜单、操作权限、按钮权限标识等 | 支持 | 支持 | -| 角色管理 | 角色菜单权限分配、设置角色按机构进行数据范围权限划分 | 支持 | 支持 | -| 字典管理 | 对系统中经常使用的一些较为固定的数据进行维护 | 支持 | 支持 | -| 参数管理 | 对系统动态配置常用参数 | 支持 | 支持 | -| 通知公告 | 系统通知公告信息发布维护 | 支持 | 支持 | -| 操作日志 | 系统正常操作日志记录和查询 系统异常信息日志记录和查询 | 支持 | 支持 | -| 登录日志 | 系统登录日志记录查询包含登录异常 | 支持 | 支持 | -| 文件管理 | 系统文件展示、上传、下载、删除等管理 | 支持 | 无 | -| 文件配置管理 | 系统文件上传、下载所需要的配置信息动态添加、修改、删除等管理 | 支持 | 无 | -| 在线用户管理 | 已登录系统的在线用户信息监控与强制踢出操作 | 支持 | 支持 | -| 定时任务 | 运行报表、任务管理(添加、修改、删除)、日志管理、执行器管理等 | 支持 | 仅支持任务与日志管理 | -| 代码生成 | 多数据源前后端代码的生成(java、html、xml、sql)支持CRUD下载 | 支持 | 仅支持单数据源 | -| 系统接口 | 根据业务代码自动生成相关的api接口文档 | 支持 | 支持 | -| 服务监控 | 监视集群系统CPU、内存、磁盘、堆栈、在线日志、Spring相关配置等 | 支持 | 仅支持单机CPU、内存、磁盘监控 | -| 缓存监控 | 对系统的缓存信息查询,命令统计等。 | 支持 | 支持 | -| 在线构建器 | 拖动表单元素生成相应的HTML代码。 | 支持 | 支持 | -| 使用案例 | 系统的一些功能案例 | 支持 | 不支持 | - -## 演示图例 - -| | | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| ![输入图片说明](https://foruda.gitee.com/images/1680077524361362822/270bb429_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680077619939771291/989bf9b6_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680077681751513929/1c27c5bd_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680077721559267315/74d63e23_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680077765638904515/1b75d4a6_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078026375951297/eded7a4b_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078237104531207/0eb1b6a7_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078254306078709/5931e22f_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078287971528493/0b9af60a_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078308138770249/8d3b6696_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078352553634393/db5ef880_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078378238393374/601e4357_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078414983206024/2aae27c1_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078446738419874/ecce7d59_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078475971341775/149e8634_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078491666717143/3fadece7_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078558863188826/fb8ced2a_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078574561685461/ae68a0b2_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078594932772013/9d8bfec6_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078626493093532/fcfe4ff6_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078643608812515/0295bd4f_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078685196286463/d7612c81_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078703877318597/56fce0bc_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078716586545643/b6dbd68f_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078734103217688/eb1e6aa6_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078759131415480/73c525d8_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078779416197879/75e3ed02_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078802329118061/77e10915_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078893627848351/34a1c342_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078928175016986/f126ec4a_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078941718318363/b68a0f72_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680078963175518631/3bb769a1_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680078982294090567/b31c343d_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680079000642440444/77ca82a9_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680079020995074177/03b7d52e_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680079039367822173/76811806_1766278.png '屏幕截图') | -| ![输入图片说明](https://foruda.gitee.com/images/1680079274333484664/4dfdc7c0_1766278.png '屏幕截图') | ![输入图片说明](https://foruda.gitee.com/images/1680079290467458224/d6715fcf_1766278.png '屏幕截图') | diff --git a/package.json b/package.json index 30b0970..12885f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package", - "name": "ruoyi-vue-plus", + "name": "giftBook-web", "version": "5.3.1-BETA2_2.3.0-BETA2", "description": "礼薄管理系统", "author": "LionLi", diff --git a/src/api/main/giftBook/index.ts b/src/api/main/giftBook/index.ts new file mode 100644 index 0000000..5eef8e0 --- /dev/null +++ b/src/api/main/giftBook/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { GiftBookVO, GiftBookForm, GiftBookQuery } from '@/api/main/giftBook/types'; + +/** + * 查询礼薄列表 + * @param query + * @returns {*} + */ + +export const listGiftBook = (query?: GiftBookQuery): AxiosPromise => { + return request({ + url: '/main/giftBook/list', + method: 'get', + params: query + }); +}; + +/** + * 查询礼薄详细 + * @param id + */ +export const getGiftBook = (id: string | number): AxiosPromise => { + return request({ + url: '/main/giftBook/' + id, + method: 'get' + }); +}; + +/** + * 新增礼薄 + * @param data + */ +export const addGiftBook = (data: GiftBookForm) => { + return request({ + url: '/main/giftBook', + method: 'post', + data: data + }); +}; + +/** + * 修改礼薄 + * @param data + */ +export const updateGiftBook = (data: GiftBookForm) => { + return request({ + url: '/main/giftBook', + method: 'put', + data: data + }); +}; + +/** + * 删除礼薄 + * @param id + */ +export const delGiftBook = (id: string | number | Array) => { + return request({ + url: '/main/giftBook/' + id, + method: 'delete' + }); +}; diff --git a/src/api/main/giftBook/types.ts b/src/api/main/giftBook/types.ts new file mode 100644 index 0000000..faf077a --- /dev/null +++ b/src/api/main/giftBook/types.ts @@ -0,0 +1,45 @@ +export interface GiftBookVO { + /** + * ID + */ + id: string | number; + + /** + * 备注 + */ + remark: string; + + /** + * 礼薄名称 + */ + name: string; +} + +export interface GiftBookForm extends BaseEntity { + /** + * ID + */ + id?: string | number; + + /** + * 备注 + */ + remark?: string; + + /** + * 礼薄名称 + */ + name?: string; +} + +export interface GiftBookQuery extends PageQuery { + /** + * 礼薄名称 + */ + name?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/main/giftBookDetails/index.ts b/src/api/main/giftBookDetails/index.ts new file mode 100644 index 0000000..dbb6e94 --- /dev/null +++ b/src/api/main/giftBookDetails/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { GiftBookDetailsVO, GiftBookDetailsForm, GiftBookDetailsQuery } from '@/api/main/giftBookDetails/types'; + +/** + * 查询礼薄详情列表 + * @param query + * @returns {*} + */ + +export const listGiftBookDetails = (query?: GiftBookDetailsQuery): AxiosPromise => { + return request({ + url: '/main/giftBookDetails/list', + method: 'get', + params: query + }); +}; + +/** + * 查询礼薄详情详细 + * @param id + */ +export const getGiftBookDetails = (id: string | number): AxiosPromise => { + return request({ + url: '/main/giftBookDetails/' + id, + method: 'get' + }); +}; + +/** + * 新增礼薄详情 + * @param data + */ +export const addGiftBookDetails = (data: GiftBookDetailsForm) => { + return request({ + url: '/main/giftBookDetails', + method: 'post', + data: data + }); +}; + +/** + * 修改礼薄详情 + * @param data + */ +export const updateGiftBookDetails = (data: GiftBookDetailsForm) => { + return request({ + url: '/main/giftBookDetails', + method: 'put', + data: data + }); +}; + +/** + * 删除礼薄详情 + * @param id + */ +export const delGiftBookDetails = (id: string | number | Array) => { + return request({ + url: '/main/giftBookDetails/' + id, + method: 'delete' + }); +}; diff --git a/src/api/main/giftBookDetails/types.ts b/src/api/main/giftBookDetails/types.ts new file mode 100644 index 0000000..e6bff6a --- /dev/null +++ b/src/api/main/giftBookDetails/types.ts @@ -0,0 +1,171 @@ +export interface GiftBookDetailsVO { + /** + * ID + */ + id: string | number; + + /** + * 备注 + */ + remark: string; + + /** + * 礼薄ID + */ + giftBookId: string | number; + + /** + * 姓名 + */ + name: string; + + /** + * 年份 + */ + year?: string; + + /** + * 类型(字典:gift_book_event_type) + */ + eventType: string; + + /** + * 金额 + */ + amount: number; + + /** + * 礼物名称 + */ + giftName: string; + + /** + * 事件名称 + */ + eventName: string; + + /** + * 是否已还(字典:sys_yes_no) + */ + isReturn: string; + + /** + * 地址 + */ + address: string; + +} + +export interface GiftBookDetailsForm extends BaseEntity { + /** + * ID + */ + id?: string | number; + + /** + * 备注 + */ + remark?: string; + + /** + * 礼薄ID + */ + giftBookId?: string | number; + + /** + * 姓名 + */ + name?: string; + + /** + * 年份 + */ + year?: string; + + /** + * 类型(字典:gift_book_event_type) + */ + eventType?: string; + + /** + * 金额 + */ + amount?: number; + + /** + * 礼物名称 + */ + giftName?: string; + + /** + * 事件名称 + */ + eventName?: string; + + /** + * 是否已还(字典:sys_yes_no) + */ + isReturn: string; + + /** + * 地址 + */ + address?: string; + +} + +export interface GiftBookDetailsQuery extends PageQuery { + + /** + * 礼薄ID + */ + giftBookId?: string | number; + + /** + * 姓名 + */ + name?: string; + + /** + * 年份 + */ + year?: string; + + /** + * 类型(字典:gift_book_event_type) + */ + eventType?: string; + + /** + * 金额 + */ + amount?: number; + + /** + * 礼物名称 + */ + giftName?: string; + + /** + * 事件名称 + */ + eventName?: string; + + /** + * 是否已还(字典:sys_yes_no) + */ + isReturn: string; + + /** + * 地址 + */ + address?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/components/RuoYiGit/index.vue b/src/components/RuoYiGit/index.vue index 8df3af8..1de9f60 100644 --- a/src/components/RuoYiGit/index.vue +++ b/src/components/RuoYiGit/index.vue @@ -5,7 +5,7 @@ diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index b287daf..dc634d8 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -55,7 +55,7 @@ const onNewsClick = (item: any) => { // 前往通知中心点击 const onGoToGiteeClick = () => { - window.open('https://gitee.com/dromara/RuoYi-Vue-Plus/tree/5.X/'); + window.open('https://gitee.com/dromara/giftBook-web/tree/5.X/'); }; onMounted(() => { diff --git a/src/views/index.vue b/src/views/index.vue index 3cba1f0..f822fff 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -4,7 +4,7 @@

礼薄管理系统

- RuoYi-Vue-Plus 是基于 RuoYi-Vue 针对 分布式集群 场景升级(不兼容原框架) + giftBook-web 是基于 RuoYi-Vue 针对 分布式集群 场景升级(不兼容原框架)
* 前端开发框架 Vue3、TS、Element Plus
* 后端开发框架 Spring Boot
@@ -38,9 +38,9 @@ ¥免费开源

- 访问码云 - 访问GitHub - 访问码云 + 访问GitHub + 更新日志

diff --git a/src/views/login.vue b/src/views/login.vue index eebde18..12096f2 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -44,23 +44,23 @@ {{ proxy.$t('login.rememberPassword') }} - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + {{ proxy.$t('login.login') }} diff --git a/src/views/main/giftBook/index.vue b/src/views/main/giftBook/index.vue new file mode 100644 index 0000000..1ca786a --- /dev/null +++ b/src/views/main/giftBook/index.vue @@ -0,0 +1,220 @@ + + + diff --git a/src/views/main/giftBookDetails/index.vue b/src/views/main/giftBookDetails/index.vue new file mode 100644 index 0000000..e15029a --- /dev/null +++ b/src/views/main/giftBookDetails/index.vue @@ -0,0 +1,417 @@ + + + diff --git a/src/views/system/user/profile/index.vue b/src/views/system/user/profile/index.vue index 7c1389a..f81715c 100644 --- a/src/views/system/user/profile/index.vue +++ b/src/views/system/user/profile/index.vue @@ -55,9 +55,9 @@ - - - + + +