Commit 57c98e77 authored by miaohaoyun's avatar miaohaoyun

Revert "用户的启用禁用"

This reverts commit 764744db
parent 099b862e
...@@ -15,7 +15,7 @@ export const save = (data) => { ...@@ -15,7 +15,7 @@ export const save = (data) => {
// 删除 // 删除
export const batchDelete = (data) => { export const batchDelete = (data) => {
return axios({ return axios({
url: '/user/updateUserStatus', url: '/user/forbiddenUser',
method: 'post', method: 'post',
data data
}) })
......
...@@ -17,7 +17,7 @@ export function save() { ...@@ -17,7 +17,7 @@ export function save() {
// 批量删除 // 批量删除
export function batchDelete() { export function batchDelete() {
return { return {
url: '/user/updateUserStatus', url: '/user/forbiddenUser',
type: 'post', type: 'post',
data: { data: {
"code": 200, "code": 200,
......
...@@ -13,12 +13,7 @@ ...@@ -13,12 +13,7 @@
<el-table-column :label="$t('action.operation')" width="185" fixed="right" v-if="showOperation" header-align="center" align="center"> <el-table-column :label="$t('action.operation')" width="185" fixed="right" v-if="showOperation" header-align="center" align="center">
<template slot-scope="scope"> <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-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)" /> <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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -135,7 +130,7 @@ export default { ...@@ -135,7 +130,7 @@ export default {
}, },
// 删除操作 // 删除操作
delete: function (ids) { delete: function (ids) {
this.$confirm('确认要操作选中记录吗?', '提示', { this.$confirm('确认禁用选中记录吗?', '提示', {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let params = [] let params = []
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </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" @click.native="dialogVisible = false">{{$t('action.cancel')}}</el-button>
<el-button :size="size" type="primary" @click.native="submitForm" :loading="editLoading"> <el-button :size="size" type="primary" @click.native="submitForm" :loading="editLoading">
{{$t('action.submit')}} {{$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