From e1cac1af6129216da66e569ddec892dd1f07fe80 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期三, 25 二月 2026 10:14:37 +0800
Subject: [PATCH] 站点复制功能
---
rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx | 33 +++++++++++++++++----------------
1 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx b/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
index 93a152c..a8cb90a 100644
--- a/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
+++ b/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
@@ -46,15 +46,15 @@
minWidth: 80,
},
{
+ id: 'parCode',
+ label: 'table.field.matnrGroup.parCode',
+ minWidth: 100,
+ },
+ {
id: 'name',
label: 'table.field.matnrGroup.name',
Width: 100,
- },
- // {
- // id: 'parCode',
- // label: 'table.field.matnrGroup.parCode',
- // minWidth: 100,
- // }
+ }
];
const getIconComponent = (iconStr) => {
@@ -197,15 +197,16 @@
deleteOne(
RESOURCE,
{ id: node.id },
- {
- onSuccess: () => {
- handleRefresh();
- notify('Department deleted successfully', { type: 'info', messageArgs: { _: 'Department deleted successfully' } });
- },
- onError: (error) => {
- notify(`Error: ${error.message}`, { type: 'warning', messageArgs: { _: `Error: ${error.message}` } });
- },
- }
+ {
+ onSuccess: () => {
+ handleRefresh();
+ const msg = translate('ra.message.delete_success');
+ notify(msg, { type: 'success', messageArgs: { _: msg } });
+ },
+ onError: (error) => {
+ notify(`Error: ${error.message}`, { type: 'warning', messageArgs: { _: `Error: ${error.message}` } });
+ },
+ }
);
}
};
@@ -354,4 +355,4 @@
);
}
-export default MatnrGroupList;
\ No newline at end of file
+export default MatnrGroupList;
--
Gitblit v1.9.1