Browse Source

Merge pull request '合并' (#253) from dev-zw into dev-check

pull/268/head
cp3hnu 8 months ago
parent
commit
153b7de3ec
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      react-ui/src/pages/System/Role/index.tsx
  2. +2
    -1
      react-ui/src/services/system/role.ts

+ 1
- 1
react-ui/src/pages/System/Role/index.tsx View File

@@ -177,7 +177,7 @@ const RoleTableList: React.FC = () => {
confirm({
title: `确认要${text}${record.roleName}角色吗?`,
onOk() {
changeRoleStatus(record.roleId, newStatus).then((resp) => {
changeRoleStatus(record.roleId, record.roleKey, newStatus).then((resp) => {
if (resp.code === 200) {
messageApi.open({
type: 'success',


+ 2
- 1
react-ui/src/services/system/role.ts View File

@@ -70,9 +70,10 @@ export function updateRoleDataScope(data: Record<string, any>) {
}

// 角色状态修改
export function changeRoleStatus(roleId: number, status: string) {
export function changeRoleStatus(roleId: number, roleKey: string, status: string) {
const data = {
roleId,
roleKey,
status,
};
return request<API.Result>('/api/system/role/changeStatus', {


Loading…
Cancel
Save