Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
zhangdishen
xichonght
Commits
764744db
Commit
764744db
authored
Aug 12, 2019
by
ytbdmhy
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户的启用禁用
parent
55f3016c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
user.js
xichongSys/src/http/moudules/user.js
+3
-3
user.js
xichongSys/src/mock/modules/user.js
+3
-3
KtTable.vue
xichongSys/src/views/Core/KtTable.vue
+7
-2
User.vue
xichongSys/src/views/Sys/User.vue
+1
-1
No files found.
xichongSys/src/http/moudules/user.js
View file @
764744db
import
axios
from
'../axios'
/*
/*
* 用户管理模块
*/
...
...
@@ -15,7 +15,7 @@ export const save = (data) => {
// 删除
export
const
batchDelete
=
(
data
)
=>
{
return
axios
({
url
:
'/user/
forbiddenUser
'
,
url
:
'/user/
updateUserStatus
'
,
method
:
'post'
,
data
})
...
...
@@ -35,4 +35,4 @@ export const findPermissions = (params) => {
method
:
'get'
,
params
})
}
\ No newline at end of file
}
xichongSys/src/mock/modules/user.js
View file @
764744db
/*
/*
* 用户管理模块
*/
...
...
@@ -17,7 +17,7 @@ export function save() {
// 批量删除
export
function
batchDelete
()
{
return
{
url
:
'/user/
forbiddenUser
'
,
url
:
'/user/
updateUserStatus
'
,
type
:
'post'
,
data
:
{
"code"
:
200
,
...
...
@@ -114,4 +114,4 @@ export function findPermissions() {
type
:
'get'
,
data
:
permsData
}
}
\ No newline at end of file
}
xichongSys/src/views/Core/KtTable.vue
View file @
764744db
...
...
@@ -13,7 +13,12 @@
<el-table-column
:label=
"$t('action.operation')"
width=
"185"
fixed=
"right"
v-if=
"showOperation"
header-align=
"center"
align=
"center"
>
<template
slot-scope=
"scope"
>
<kt-button
icon=
"fa fa-edit"
:label=
"$t('action.edit')"
:perms=
"permsEdit"
:size=
"size"
@
click=
"handleEdit(scope.$index, scope.row)"
style=
"float: left"
/>
<kt-button
icon=
"fa fa-trash"
label=
"禁用"
:perms=
"permsDelete"
:size=
"size"
type=
"danger"
@
click=
"handleDelete(scope.$index, scope.row)"
/>
<div
v-if=
"scope.row.status == 1"
>
<kt-button
icon=
"fa fa-trash"
label=
"禁用"
:perms=
"permsDelete"
:size=
"size"
type=
"danger"
@
click=
"handleDelete(scope.$index, scope.row)"
/>
</div>
<div
v-else
>
<kt-button
icon=
"fa fa-check-circle"
label=
"启用"
:perms=
"permsDelete"
:size=
"size"
type=
"success"
@
click=
"handleDelete(scope.$index, scope.row)"
/>
</div>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -130,7 +135,7 @@ export default {
},
// 删除操作
delete
:
function
(
ids
)
{
this
.
$confirm
(
'确认
禁用
选中记录吗?'
,
'提示'
,
{
this
.
$confirm
(
'确认
要操作
选中记录吗?'
,
'提示'
,
{
type
:
'warning'
}).
then
(()
=>
{
let
params
=
[]
...
...
xichongSys/src/views/Sys/User.vue
View file @
764744db
...
...
@@ -89,7 +89,7 @@
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"width: 10%"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
:size=
"size"
@
click
.
native=
"dialogVisible = false"
>
{{
$t
(
'action.cancel'
)
}}
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click
.
native=
"submitForm"
:loading=
"editLoading"
>
{{
$t
(
'action.submit'
)
}}
...
...
Ghost User
@ghost
mentioned in commit
57c98e77
·
Aug 12, 2019
mentioned in commit
57c98e77
mentioned in commit 57c98e77b58e7dce18df41d8da48853d630ad48e
Toggle commit list
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