From ea372ecef302f97fa3da38e98fa4ee73d557be03 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 18 九月 2024 12:52:38 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/role/RoleList.jsx | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/zy-acs-flow/src/page/role/RoleList.jsx b/zy-acs-flow/src/page/role/RoleList.jsx
index f12485c..07958f7 100644
--- a/zy-acs-flow/src/page/role/RoleList.jsx
+++ b/zy-acs-flow/src/page/role/RoleList.jsx
@@ -55,7 +55,7 @@
'& .column-name': {
},
'& .opt': {
- width: 300
+ width: 260
},
}));
@@ -141,7 +141,6 @@
onClick={(event, record, val) => {
event.stopPropagation();
assign(record);
-
}}
/>
<TextField source="code" label="table.field.role.code" />
@@ -151,7 +150,7 @@
<BooleanField source="statusBool" label="common.field.status" sortable={false} />
<TextField source="memo" label="common.field.memo" sortable={false} />
<WrapperField cellClassName="opt" label="common.field.opt">
- <ScopeButton sx={{ padding: '1px', fontSize: '.75rem' }} />
+ <ScopeButton sx={{ padding: '1px', fontSize: '.75rem' }} assign={assign} />
<EditButton sx={{ padding: '1px', fontSize: '.75rem' }} />
<DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} />
</WrapperField>
@@ -184,18 +183,16 @@
const ScopeButton = (props) => {
const record = useRecordContext();
- console.log(record);
- const { ...rest } = props;
+ const { assign, ...rest } = props;
return (
<Button
variant="text"
color="primary"
startIcon={<AssignmentIndIcon />}
label="common.action.scope"
- onClick={(event, record) => {
- console.log(record);
-
+ onClick={(event) => {
event.stopPropagation();
+ assign(record);
}}
{...rest}
/>
--
Gitblit v1.9.1