提交 2f2dce8e authored 作者: pengxiaohui's avatar pengxiaohui

fix: 修复角色管理删除bug [2147,2148]

上级 0d21c1b0
......@@ -13,12 +13,12 @@
<el-button type="text" @click="handleManageUser(row)" size="mini">管理用户</el-button>
<el-button v-if="row.name !== 'administrator'" type="text" @click="handleRemove(row)" size="mini" style="margin-right:12px;">删除</el-button>
</template>
<template #footer>
<!-- <template #footer>
<div class="selection_bar">
已选中 {{multipleSelection.length}} 项
<el-button style="margin-left:15px;" size="mini" :disabled="!multipleSelection.length" @click="handleRemove">删除</el-button>
</div>
</template>
</template> -->
</app-list>
<el-dialog :title="domicTitle" :visible.sync="dialogVisible" width="420px" center @close="handleDialogClose">
<el-form :model="form" :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm">
......@@ -170,10 +170,10 @@ export default {
}
batchDeleteRole(params).then(res => {
if (res.code === 0 && res.data && res.data.status) {
this.$message.success('删除用户成功')
this.$message.success('删除角色成功')
this.$refs.appList.refetch(true)
} else {
this.$message.error('删除用户失败')
this.$message.error('删除角色失败')
}
})
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论