Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
web-template
Commits
98b4034e
Commit
98b4034e
authored
Dec 31, 2020
by
yf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增删改功能 --杨帆
parent
a013869e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
dept.js
src/api/system/dept.js
+10
-7
menu.js
src/api/system/menu.js
+4
-1
No files found.
src/api/system/dept.js
View file @
98b4034e
...
...
@@ -43,25 +43,25 @@ export function treeselect() {
// 查询部门下拉树结构
export
function
getChildrenDept
(
userId
)
{
return
request
({
url
:
'/system/dept/getChildren/'
+
userId
,
url
:
'/system/dept/getChildren/'
+
userId
,
method
:
'get'
})
}
// 根据角色ID查询部门树结构
export
function
roleDeptTreeselect
(
roleId
,
menuId
)
{
export
function
roleDeptTreeselect
(
roleId
,
menuId
)
{
return
request
({
url
:
'/system/dept/roleDeptTreeSelect/'
+
roleId
+
'/'
+
menuId
,
url
:
'/system/dept/roleDeptTreeSelect/'
+
roleId
+
'/'
+
menuId
,
method
:
'get'
})
}
// 新增部门
export
function
addDept
(
data
)
{
console
.
log
(
data
)
//
console.log(data)
data
=
Qs
.
stringify
(
data
)
console
.
log
(
11112311111111
)
console
.
log
(
data
)
//
console.log(11112311111111)
//
console.log(data)
return
request
({
url
:
'/system/dept/add'
,
method
:
'post'
,
...
...
@@ -79,7 +79,10 @@ export function updateDept(data) {
return
request
({
url
:
'/system/dept/update/'
+
businessId
,
method
:
'put'
,
data
data
,
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
}
...
...
src/api/system/menu.js
View file @
98b4034e
...
...
@@ -91,7 +91,10 @@ export function updateMenu(data) {
return
request
({
url
:
'/system/menu/update/'
+
businessId
,
method
:
'put'
,
data
data
,
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment