From 87fc4589d542605d4e2690a9d756718bc84675f9 Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Wed, 31 Jan 2024 10:29:18 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/org/roles/index.jsx | 36 ----------------------------------
src/pages/org/roles/service.js | 2 +-
2 files changed, 1 insertion(+), 37 deletions(-)
diff --git a/src/pages/org/roles/index.jsx b/src/pages/org/roles/index.jsx
index deef654..426a191 100644
--- a/src/pages/org/roles/index.jsx
+++ b/src/pages/org/roles/index.jsx
@@ -142,33 +142,6 @@ const roleManager = () => {
>
更新
);
- if (record.status == 1) {
- arr.push( {
- Enable(record.id).then(r => {
- actionRef.current.reload();
- })
- }}
- >
- 启用
- );
- }
- if (record.status == 0) {
- arr.push( {
- Disable(record.id).then(r => {
- actionRef.current.reload();
- })
- }}
- >
- 禁用
- );
- }
-
arr.push(
{
dataIndex: 'remark',
hideInSearch: true,
},
- {
- title: '状态',
- dataIndex: 'status',
- hideInSearch: true,
- valueEnum: {
- 0: { text: '启用', status: 'Success' },
- 1: { text: '禁用', status: 'Warning' },
- },
- },
{
title: '创建时间',
search: false,
diff --git a/src/pages/org/roles/service.js b/src/pages/org/roles/service.js
index 1e88c07..7e13a60 100644
--- a/src/pages/org/roles/service.js
+++ b/src/pages/org/roles/service.js
@@ -45,7 +45,7 @@ export async function removeRole(params) {
//设置菜单
export async function setMenu(params) {
- return request('/kitchen/api/roles/addorupdatemenurole',{
+ return request('/saasbase/api/roles/addorupdatemenurole',{
method:'post',
data:params
});