Skip to content

Commit 42009cf

Browse files
insistencegitee-org
authored andcommitted
!8 RuoYi-Vue3-FastAPI v1.1.1
Merge pull request !8 from insistence/develop
2 parents 2bade4d + f4afa20 commit 42009cf

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<p align="center">
22
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
33
</p>
4-
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi-Vue3-FastAPI v1.1.0</h1>
4+
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi-Vue3-FastAPI v1.1.1</h1>
55
<h4 align="center">基于RuoYi-Vue3+FastAPI前后端分离的快速开发框架</h4>
66
<p align="center">
77
<a href="https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI/stargazers"><img src="https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI/badge/star.svg?theme=dark"></a>
88
<a href="https://github.com/insistence/RuoYi-Vue3-FastAPI"><img src="https://img.shields.io/github/stars/insistence/RuoYi-Vue3-FastAPI?style=social"></a>
9-
<a href="https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI"><img src="https://img.shields.io/badge/RuoYiVue3FastAPI-v1.1.0-brightgreen.svg"></a>
9+
<a href="https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI"><img src="https://img.shields.io/badge/RuoYiVue3FastAPI-v1.1.1-brightgreen.svg"></a>
1010
<a href="https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
1111
<img src="https://img.shields.io/badge/python-≥3.8-blue">
1212
<img src="https://img.shields.io/badge/MySQL-≥5.7-blue">
@@ -16,6 +16,7 @@
1616

1717

1818

19+
1920
## 平台简介
2021

2122
RuoYi-Vue3-FastAPI是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。

ruoyi-fastapi-backend/.env.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ APP_HOST = '0.0.0.0'
1010
# 应用端口
1111
APP_PORT = 9099
1212
# 应用版本
13-
APP_VERSION= '1.1.0'
13+
APP_VERSION= '1.1.1'
1414
# 应用是否开启热重载
1515
APP_RELOAD = true
1616
# 应用是否开启IP归属区域查询

ruoyi-fastapi-backend/.env.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ APP_HOST = '0.0.0.0'
1010
# 应用端口
1111
APP_PORT = 9099
1212
# 应用版本
13-
APP_VERSION= '1.1.0'
13+
APP_VERSION= '1.1.1'
1414
# 应用是否开启热重载
1515
APP_RELOAD = false
1616
# 应用是否开启IP归属区域查询

ruoyi-fastapi-backend/module_admin/service/job_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def edit_job_services(cls, query_db: Session, page_object: EditJobModel):
7272
if query_job:
7373
SchedulerUtil.remove_scheduler_job(job_id=edit_job.get('job_id'))
7474
if edit_job.get('status') == '0':
75+
job_info = cls.job_detail_services(query_db, edit_job.get('job_id'))
7576
SchedulerUtil.add_scheduler_job(job_info=job_info)
7677
query_db.commit()
7778
result = dict(is_success=True, message='更新成功')

ruoyi-fastapi-backend/module_admin/service/login_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async def get_current_user_routers(cls, user_id: int, query_db: Session):
229229
:return: 当前用户路由信息对象
230230
"""
231231
query_user = UserDao.get_user_by_id(query_db, user_id=user_id)
232-
user_router_menu = [row for row in query_user.get('user_menu_info') if row.menu_type in ['M', 'C']]
232+
user_router_menu = sorted([row for row in query_user.get('user_menu_info') if row.menu_type in ['M', 'C']], key=lambda x: x.order_num)
233233
user_router = cls.__generate_user_router_menu(0, user_router_menu)
234234
return user_router
235235

@@ -271,6 +271,7 @@ def __generate_user_router_menu(cls, pid: int, permission_list):
271271
elif permission.menu_type == 'C':
272272
router_list_data['name'] = permission.path.capitalize()
273273
router_list_data['path'] = permission.path
274+
router_list_data['query'] = permission.query
274275
router_list_data['hidden'] = False if permission.visible == '0' else True
275276
router_list_data['component'] = permission.component
276277
router_list_data['meta'] = {

ruoyi-fastapi-backend/module_admin/service/role_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def role_datascope_services(cls, query_db: Session, page_object: AddRoleModel):
131131
:param page_object: 角色数据权限对象
132132
:return: 分配角色数据权限结果
133133
"""
134-
edit_role = page_object.model_dump(exclude_unset=True)
134+
edit_role = page_object.model_dump(exclude_unset=True, exclude={'admin'})
135135
del edit_role['dept_ids']
136136
role_info = cls.role_detail_services(query_db, edit_role.get('role_id'))
137137
if role_info:

ruoyi-fastapi-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vfadmin",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "vfadmin管理系统",
55
"author": "insistence",
66
"license": "MIT",

ruoyi-fastapi-frontend/src/views/system/menu/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ function reset() {
339339
icon: undefined,
340340
menuType: "M",
341341
orderNum: undefined,
342-
isFrame: "1",
343-
isCache: "0",
342+
isFrame: 1,
343+
isCache: 0,
344344
visible: "0",
345345
status: "0"
346346
};

0 commit comments

Comments
 (0)