From 0025941824828944cd28a9b24d38af61db62fc7e Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Sat, 21 Mar 2026 22:41:49 +0800
Subject: [PATCH] 保存排序添加编辑权限
---
ruoyi-ui/src/api/system/dept.js | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/ruoyi-ui/src/api/system/dept.js b/ruoyi-ui/src/api/system/dept.js
index 0535e8a..b9ac75e 100644
--- a/ruoyi-ui/src/api/system/dept.js
+++ b/ruoyi-ui/src/api/system/dept.js
@@ -25,22 +25,6 @@
})
}
-// 查询部门下拉树结构
-export function treeselect() {
- return request({
- url: '/system/dept/treeselect',
- method: 'get'
- })
-}
-
-// 根据角色ID查询部门树结构
-export function roleDeptTreeselect(roleId) {
- return request({
- url: '/system/dept/roleDeptTreeselect/' + roleId,
- method: 'get'
- })
-}
-
// 新增部门
export function addDept(data) {
return request({
@@ -59,6 +43,15 @@
})
}
+// 保存部门排序
+export function updateDeptSort(data) {
+ return request({
+ url: '/system/dept/updateSort',
+ method: 'put',
+ data: data
+ })
+}
+
// 删除部门
export function delDept(deptId) {
return request({
--
Gitblit v1.9.3