Browse Source

角色

master
zhaoy 11 months ago
parent
commit
87fc4589d5
2 changed files with 1 additions and 37 deletions
  1. +0
    -36
      src/pages/org/roles/index.jsx
  2. +1
    -1
      src/pages/org/roles/service.js

+ 0
- 36
src/pages/org/roles/index.jsx View File

@@ -142,33 +142,6 @@ const roleManager = () => {
> >
更新 更新
</a>); </a>);
if (record.status == 1) {
arr.push(<a
disabled={record.code == 'sys_manager_role'}
style={{ pointerEvents: record.code == 'sys_manager_role' ? 'none' : 'auto' }}
onClick={() => {
Enable(record.id).then(r => {
actionRef.current.reload();
})
}}
>
启用
</a>);
}
if (record.status == 0) {
arr.push(<a
disabled={record.code == 'sys_manager_role'}
style={{ pointerEvents: record.code == 'sys_manager_role' ? 'none' : 'auto' }}
onClick={() => {
Disable(record.id).then(r => {
actionRef.current.reload();
})
}}
>
禁用
</a>);
}

arr.push( arr.push(
<Popconfirm <Popconfirm
title="确认删除吗?" title="确认删除吗?"
@@ -238,15 +211,6 @@ const roleManager = () => {
dataIndex: 'remark', dataIndex: 'remark',
hideInSearch: true, hideInSearch: true,
}, },
{
title: '状态',
dataIndex: 'status',
hideInSearch: true,
valueEnum: {
0: { text: '启用', status: 'Success' },
1: { text: '禁用', status: 'Warning' },
},
},
{ {
title: '创建时间', title: '创建时间',
search: false, search: false,


+ 1
- 1
src/pages/org/roles/service.js View File

@@ -45,7 +45,7 @@ export async function removeRole(params) {


//设置菜单 //设置菜单
export async function setMenu(params) { export async function setMenu(params) {
return request('​/kitchen/api/roles/addorupdatemenurole',{
return request('​/saasbase/api/roles/addorupdatemenurole',{
method:'post', method:'post',
data:params data:params
}); });


Loading…
Cancel
Save