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
57c98e77
Commit
57c98e77
authored
Aug 12, 2019
by
miaohaoyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "用户的启用禁用"
This reverts commit
764744db
parent
099b862e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
14 deletions
+9
-14
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
+2
-7
User.vue
xichongSys/src/views/Sys/User.vue
+1
-1
No files found.
xichongSys/src/http/moudules/user.js
View file @
57c98e77
...
...
@@ -15,7 +15,7 @@ export const save = (data) => {
// 删除
export
const
batchDelete
=
(
data
)
=>
{
return
axios
({
url
:
'/user/
updateUserStatus
'
,
url
:
'/user/
forbiddenUser
'
,
method
:
'post'
,
data
})
...
...
xichongSys/src/mock/modules/user.js
View file @
57c98e77
...
...
@@ -17,7 +17,7 @@ export function save() {
// 批量删除
export
function
batchDelete
()
{
return
{
url
:
'/user/
updateUserStatus
'
,
url
:
'/user/
forbiddenUser
'
,
type
:
'post'
,
data
:
{
"code"
:
200
,
...
...
xichongSys/src/views/Core/KtTable.vue
View file @
57c98e77
...
...
@@ -13,12 +13,7 @@
<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"
/>
<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>
...
...
@@ -135,7 +130,7 @@ export default {
},
// 删除操作
delete
:
function
(
ids
)
{
this
.
$confirm
(
'确认
要操作
选中记录吗?'
,
'提示'
,
{
this
.
$confirm
(
'确认
禁用
选中记录吗?'
,
'提示'
,
{
type
:
'warning'
}).
then
(()
=>
{
let
params
=
[]
...
...
xichongSys/src/views/Sys/User.vue
View file @
57c98e77
...
...
@@ -89,7 +89,7 @@
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"width: 10%"
>
<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'
)
}}
...
...
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