Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
e91c2f3d
Commit
e91c2f3d
authored
Nov 10, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix commit set user relations
parent
0f041e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
api.js
src/services/userCenter/userManage/api.js
+11
-14
No files found.
src/services/userCenter/userManage/api.js
View file @
e91c2f3d
import
{
get
,
post
}
from
'@/services/index'
;
import
qs
from
'qs'
;
export
const
getUserTree
=
(
selectOU
,
node
)
=>
get
(
`/Cityinterface/rest/services/OMS.svc/U_GetOUTree`
,
{
...
...
@@ -133,24 +134,20 @@ export const deleteUser = userID =>
userID
,
});
export
const
setUserRelation
=
(
userID
,
roleList
=
[],
stationList
)
=>
{
const
formData
=
new
FormData
();
formData
.
append
(
'userID'
,
userID
);
formData
.
append
(
'roleList'
,
`
${
roleList
.
join
(
','
)}
,`
);
formData
.
append
(
'stationList'
,
stationList
.
length
?
`
${
stationList
.
join
(
','
)}
,`
:
''
,
);
formData
.
append
(
'headList'
,
''
);
formData
.
append
(
'mobileMapList'
,
''
);
formData
.
append
(
'currentSolution'
,
'熊猫智慧水务平台'
);
return
post
(
export
const
setUserRelation
=
(
userID
,
roleList
=
[],
stationList
)
=>
post
(
`/Cityinterface/rest/services/OMS.svc/U_SetUserRelationList?_version=9999`
,
formData
,
qs
.
stringify
({
userID
,
roleList
:
roleList
.
length
?
`
${
roleList
.
join
(
','
)}
,`
:
''
,
stationList
:
stationList
.
length
?
`
${
stationList
.
join
(
','
)}
,`
:
''
,
headList
:
''
,
mobileMapList
:
''
,
currentSolution
:
'熊猫智慧水务平台'
,
}),
{
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