Commit cc3409dc by lixiaomin

修改角色状态

parent 5a0d77f0
...@@ -51,7 +51,7 @@ export function changeRoleStatus(roleId, status) { ...@@ -51,7 +51,7 @@ export function changeRoleStatus(roleId, status) {
status status
} }
return request({ return request({
url: '/system/status', url: '/system/role/changeStatus/',
method: 'put', method: 'put',
data: data data: data
}) })
......
...@@ -87,6 +87,12 @@ ...@@ -87,6 +87,12 @@
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="remark" align="center" /> <el-table-column label="备注" prop="remark" align="center" />
<el-table-column label="人员数量" prop="userCount" align="center" /> <el-table-column label="人员数量" prop="userCount" align="center" />
<el-table-column label="状态" align="center" >
<template slot-scope="scope">
<span v-if="scope.row.status=='0'">启用</span>
<span v-if="scope.row.status!='0'">停用</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createTime" align="center" /> <el-table-column label="创建时间" prop="createTime" align="center" />
<el-table-column <el-table-column
label="操作" label="操作"
...@@ -487,7 +493,7 @@ export default { ...@@ -487,7 +493,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const roleIds = row.roleId || this.ids; const roleIds = row.roleId || this.ids;
this.$modal this.$modal
.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?') .confirm('是否确认删除角色名称为"' + row.roleName + '"的数据项?')
.then(function () { .then(function () {
return delRole(roleIds); return delRole(roleIds);
}) })
......
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