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
4bffb473
Commit
4bffb473
authored
Jun 04, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户状态
parent
cc3409dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/api/system/user.js
+7
-7
src/views/system/user/index.vue
+1
-1
No files found.
src/api/system/user.js
View file @
4bffb473
...
@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) {
...
@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) {
}
}
// 用户状态修改
// 用户状态修改
export
function
changeUserStatus
(
userId
,
status
)
{
export
function
changeUserStatus
(
query
)
{
const
data
=
{
//
const data = {
userId
,
//
userId,
status
//
status
}
//
}
return
request
({
return
request
({
url
:
'/system/user/changeStatus'
,
url
:
'/system/user/changeStatus'
,
method
:
'
pu
t'
,
method
:
'
ge
t'
,
data
:
data
params
:
query
})
})
}
}
...
...
src/views/system/user/index.vue
View file @
4bffb473
...
@@ -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
updateUser
({
id
:
row
.
userId
,
status
:
sta
});
return
changeUserStatus
({
id
:
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