Commit 57c98e77 authored by miaohaoyun's avatar miaohaoyun

Revert "用户的启用禁用"

This reverts commit 764744db
parent 099b862e
......@@ -15,7 +15,7 @@ export const save = (data) => {
// 删除
export const batchDelete = (data) => {
return axios({
url: '/user/updateUserStatus',
url: '/user/forbiddenUser',
method: 'post',
data
})
......
......@@ -17,7 +17,7 @@ export function save() {
// 批量删除
export function batchDelete() {
return {
url: '/user/updateUserStatus',
url: '/user/forbiddenUser',
type: 'post',
data: {
"code": 200,
......
......@@ -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 = []
......
......@@ -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')}}
......
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