Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
web
soss
Commits
a8e05f88
Commit
a8e05f88
authored
Jun 05, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户启用状态
parent
adb113c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/api/system/user.js
+3
-3
src/views/system/user/index.vue
+1
-1
No files found.
src/api/system/user.js
View file @
a8e05f88
...
@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) {
...
@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) {
}
}
// 用户状态修改
// 用户状态修改
export
function
changeUserStatus
(
query
)
{
export
function
changeUserStatus
(
data
)
{
// const data = {
// const data = {
// userId,
// userId,
// status
// status
// }
// }
return
request
({
return
request
({
url
:
'/system/user/changeStatus'
,
url
:
'/system/user/changeStatus'
,
method
:
'
ge
t'
,
method
:
'
pu
t'
,
params
:
query
data
:
data
})
})
}
}
...
...
src/views/system/user/index.vue
View file @
a8e05f88
...
@@ -243,7 +243,7 @@ export default {
...
@@ -243,7 +243,7 @@ export default {
this
.
$modal
this
.
$modal
.
confirm
(
'是否确认'
+
mess
+
'该数据项?'
)
.
confirm
(
'是否确认'
+
mess
+
'该数据项?'
)
.
then
(
function
()
{
.
then
(
function
()
{
return
changeUserStatus
({
i
d
:
row
.
userId
,
status
:
sta
});
return
changeUserStatus
({
userI
d
:
row
.
userId
,
status
:
sta
});
})
})
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
response
.
code
=
"200"
){
if
(
response
.
code
=
"200"
){
...
...
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