Commit 764744db authored by ytbdmhy's avatar ytbdmhy

用户的启用禁用

parent 55f3016c
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
}
/*
/*
* 用户管理模块
*/
......@@ -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
}
......@@ -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 = []
......
......@@ -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')}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment