From 20b66843886ae9795fefc7eb863f04265958d9c9 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 28 二月 2024 14:33:18 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/system/menu/index.jsx            |   18 ++++----
 zy-asrs-flow/src/pages/system/operationRecord/index.jsx |   18 ++++----
 zy-asrs-flow/src/pages/system/role/index.jsx            |   18 ++++----
 zy-asrs-flow/src/pages/system/user/index.jsx            |   20 +++++-----
 zy-asrs-flow/src/pages/system/userLogin/index.jsx       |   18 ++++----
 5 files changed, 46 insertions(+), 46 deletions(-)

diff --git a/zy-asrs-flow/src/pages/system/menu/index.jsx b/zy-asrs-flow/src/pages/system/menu/index.jsx
index 0b7aad2..a275137 100644
--- a/zy-asrs-flow/src/pages/system/menu/index.jsx
+++ b/zy-asrs-flow/src/pages/system/menu/index.jsx
@@ -30,7 +30,7 @@
     },
 };
 
-const handleSave = async (val) => {
+const handleSave = async (val, intl) => {
     const hide = message.loading('姝e湪娣诲姞');
     try {
         const resp = await Http.doPost('api/menu/save', val);
@@ -49,7 +49,7 @@
     }
 };
 
-const handleUpdate = async (val) => {
+const handleUpdate = async (val, intl) => {
     const hide = message.loading('姝e湪鏇存柊');
     try {
         const resp = await Http.doPost('api/menu/update', val);
@@ -68,7 +68,7 @@
     }
 };
 
-const handleRemove = async (rows) => {
+const handleRemove = async (rows, intl) => {
     if (!rows) return true;
     const hide = message.loading('姝e湪鍒犻櫎');
     try {
@@ -88,7 +88,7 @@
     }
 };
 
-const handleExport = async () => {
+const handleExport = async (intl) => {
     const hide = message.loading('姝e湪瀵煎嚭');
     try {
         const resp = await Http.doPostBlob('api/menu/export');
@@ -393,7 +393,7 @@
                             title: '鍒犻櫎',
                             content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                             onOk: async () => {
-                                const success = await handleRemove([record]);
+                                const success = await handleRemove([record], intl);
                                 if (success) {
                                     if (actionRef.current) {
                                         actionRef.current.reload();
@@ -458,7 +458,7 @@
                             <Button
                                 key="export"
                                 onClick={async () => {
-                                    handleExport();
+                                    handleExport(intl);
                                 }}
                             >
                                 <ExportOutlined />
@@ -521,7 +521,7 @@
                                 title: '鍒犻櫎',
                                 content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                                 onOk: async () => {
-                                    const success = await handleRemove(selectedRows);
+                                    const success = await handleRemove(selectedRows, intl);
                                     if (success) {
                                         setSelectedRows([]);
                                         actionRef.current?.reloadAndRest?.();
@@ -548,9 +548,9 @@
                 onSubmit={async (values) => {
                     let ok = false;
                     if (values.id) {
-                        ok = await handleUpdate({ ...values })
+                        ok = await handleUpdate({ ...values }, intl)
                     } else {
-                        ok = await handleSave({ ...values })
+                        ok = await handleSave({ ...values }, intl)
                     }
                     if (ok) {
                         setModalVisible(false);
diff --git a/zy-asrs-flow/src/pages/system/operationRecord/index.jsx b/zy-asrs-flow/src/pages/system/operationRecord/index.jsx
index 258746e..117c123 100644
--- a/zy-asrs-flow/src/pages/system/operationRecord/index.jsx
+++ b/zy-asrs-flow/src/pages/system/operationRecord/index.jsx
@@ -27,7 +27,7 @@
     },
 };
 
-const handleSave = async (val) => {
+const handleSave = async (val, intl) => {
     const hide = message.loading('姝e湪娣诲姞');
     try {
         const resp = await Http.doPost('api/operationRecord/save', val);
@@ -46,7 +46,7 @@
     }
 };
 
-const handleUpdate = async (val) => {
+const handleUpdate = async (val, intl) => {
     const hide = message.loading('姝e湪鏇存柊');
     try {
         const resp = await Http.doPost('api/operationRecord/update', val);
@@ -65,7 +65,7 @@
     }
 };
 
-const handleRemove = async (rows) => {
+const handleRemove = async (rows, intl) => {
     if (!rows) return true;
     const hide = message.loading('姝e湪鍒犻櫎');
     try {
@@ -85,7 +85,7 @@
     }
 };
 
-const handleExport = async () => {
+const handleExport = async (intl) => {
     const hide = message.loading('姝e湪瀵煎嚭');
     try {
         const resp = await Http.doPostBlob('api/operationRecord/export');
@@ -325,7 +325,7 @@
                             title: '鍒犻櫎',
                             content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                             onOk: async () => {
-                                const success = await handleRemove([record]);
+                                const success = await handleRemove([record], intl);
                                 if (success) {
                                     if (actionRef.current) {
                                         actionRef.current.reload();
@@ -394,7 +394,7 @@
                             <Button
                                 key="export"
                                 onClick={async () => {
-                                    handleExport();
+                                    handleExport(intl);
                                 }}
                             >
                                 <ExportOutlined />
@@ -446,7 +446,7 @@
                                 title: '鍒犻櫎',
                                 content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                                 onOk: async () => {
-                                    const success = await handleRemove(selectedRows);
+                                    const success = await handleRemove(selectedRows, intl);
                                     if (success) {
                                         setSelectedRows([]);
                                         actionRef.current?.reloadAndRest?.();
@@ -472,9 +472,9 @@
                 onSubmit={async (values) => {
                     let ok = false;
                     if (values.id) {
-                        ok = await handleUpdate({ ...values })
+                        ok = await handleUpdate({ ...values }, intl)
                     } else {
-                        ok = await handleSave({ ...values })
+                        ok = await handleSave({ ...values }, intl)
                     }
                     if (ok) {
                         setModalVisible(false);
diff --git a/zy-asrs-flow/src/pages/system/role/index.jsx b/zy-asrs-flow/src/pages/system/role/index.jsx
index c7f8a3f..bf1602e 100644
--- a/zy-asrs-flow/src/pages/system/role/index.jsx
+++ b/zy-asrs-flow/src/pages/system/role/index.jsx
@@ -18,7 +18,7 @@
 
 const TABLE_KEY = "pro-table-role";
 
-const handleSave = async (val) => {
+const handleSave = async (val, intl) => {
     const hide = message.loading('姝e湪娣诲姞');
     try {
         const resp = await Http.doPost('api/role/save', val);
@@ -37,7 +37,7 @@
     }
 };
 
-const handleUpdate = async (val) => {
+const handleUpdate = async (val, intl) => {
     const hide = message.loading('姝e湪鏇存柊');
     try {
         const resp = await Http.doPost('api/role/update', val);
@@ -56,7 +56,7 @@
     }
 };
 
-const handleRemove = async (rows) => {
+const handleRemove = async (rows, intl) => {
     if (!rows) return true;
     const hide = message.loading('姝e湪鍒犻櫎');
     try {
@@ -76,7 +76,7 @@
     }
 };
 
-const handleExport = async () => {
+const handleExport = async (intl) => {
     const hide = message.loading('姝e湪瀵煎嚭');
     try {
         const resp = await Http.doPostBlob('api/role/export');
@@ -255,7 +255,7 @@
                             title: '鍒犻櫎',
                             content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                             onOk: async () => {
-                                const success = await handleRemove([record]);
+                                const success = await handleRemove([record], intl);
                                 if (success) {
                                     if (actionRef.current) {
                                         actionRef.current.reload();
@@ -321,7 +321,7 @@
                             <Button
                                 key="export"
                                 onClick={async () => {
-                                    handleExport();
+                                    handleExport(intl);
                                 }}
                             >
                                 <ExportOutlined />
@@ -374,7 +374,7 @@
                                 title: '鍒犻櫎',
                                 content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                                 onOk: async () => {
-                                    const success = await handleRemove(selectedRows);
+                                    const success = await handleRemove(selectedRows, intl);
                                     if (success) {
                                         setSelectedRows([]);
                                         actionRef.current?.reloadAndRest?.();
@@ -400,9 +400,9 @@
                 onSubmit={async (values) => {
                     let ok = false;
                     if (values.id) {
-                        ok = await handleUpdate({ ...values })
+                        ok = await handleUpdate({ ...values }, intl)
                     } else {
-                        ok = await handleSave({ ...values })
+                        ok = await handleSave({ ...values }, intl)
                     }
                     if (ok) {
                         setModalVisible(false);
diff --git a/zy-asrs-flow/src/pages/system/user/index.jsx b/zy-asrs-flow/src/pages/system/user/index.jsx
index 226f56d..0efcb71 100644
--- a/zy-asrs-flow/src/pages/system/user/index.jsx
+++ b/zy-asrs-flow/src/pages/system/user/index.jsx
@@ -20,7 +20,7 @@
 
 const TABLE_KEY = "pro-table-user";
 
-const handleSave = async (val) => {
+const handleSave = async (val, intl) => {
     const hide = message.loading('姝e湪娣诲姞');
     try {
         const resp = await Http.doPost('api/user/save', val);
@@ -39,7 +39,7 @@
     }
 };
 
-const handleUpdate = async (val) => {
+const handleUpdate = async (val, intl) => {
     const hide = message.loading('姝e湪鏇存柊');
     try {
         const resp = await Http.doPost('api/user/update', val);
@@ -58,7 +58,7 @@
     }
 };
 
-const handleRemove = async (rows) => {
+const handleRemove = async (rows, intl) => {
     if (!rows) return true;
     const hide = message.loading('姝e湪鍒犻櫎');
     try {
@@ -78,7 +78,7 @@
     }
 };
 
-const handleExport = async () => {
+const handleExport = async (intl) => {
     const hide = message.loading('姝e湪瀵煎嚭');
     try {
         const resp = await Http.doPostBlob('api/user/export');
@@ -466,7 +466,7 @@
                             title: '鍒犻櫎',
                             content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                             onOk: async () => {
-                                const success = await handleRemove([record]);
+                                const success = await handleRemove([record], intl);
                                 if (success) {
                                     if (actionRef.current) {
                                         actionRef.current.reload();
@@ -581,7 +581,7 @@
                                             icon: <ExclamationCircleOutlined />,
                                             content: '璇疯皑鎱庢搷浣�',
                                             async onOk() {
-                                                const success = await handleRemove(selectedRows);
+                                                const success = await handleRemove(selectedRows, intl);
                                                 if (success) {
                                                     setSelectedRows([]);
                                                     actionRef.current.reload();
@@ -607,7 +607,7 @@
                                 <Button
                                     key="export"
                                     onClick={async () => {
-                                        handleExport();
+                                        handleExport(intl);
                                     }}
                                 >
                                     <ExportOutlined />
@@ -670,9 +670,9 @@
                 onSubmit={async (values) => {
                     let ok = false;
                     if (values.id) {
-                        ok = await handleUpdate({ ...values })
+                        ok = await handleUpdate({ ...values }, intl)
                     } else {
-                        ok = await handleSave({ ...values })
+                        ok = await handleSave({ ...values }, intl)
                     }
                     if (ok) {
                         setModalVisible(false);
@@ -722,7 +722,7 @@
                 onSubmit={async (values) => {
                     let ok = false;
                     if (values.id) {
-                        ok = await handleUpdate({ ...values })
+                        ok = await handleUpdate({ ...values }, intl)
                     }
                     if (ok) {
                         setAssignModalVisible(false);
diff --git a/zy-asrs-flow/src/pages/system/userLogin/index.jsx b/zy-asrs-flow/src/pages/system/userLogin/index.jsx
index 18cbf50..b324a9f 100644
--- a/zy-asrs-flow/src/pages/system/userLogin/index.jsx
+++ b/zy-asrs-flow/src/pages/system/userLogin/index.jsx
@@ -35,7 +35,7 @@
     },
 };
 
-const handleSave = async (val) => {
+const handleSave = async (val, intl) => {
     const hide = message.loading('姝e湪娣诲姞');
     try {
         const resp = await Http.doPost('api/userLogin/save', val);
@@ -54,7 +54,7 @@
     }
 };
 
-const handleUpdate = async (val) => {
+const handleUpdate = async (val, intl) => {
     const hide = message.loading('姝e湪鏇存柊');
     try {
         const resp = await Http.doPost('api/userLogin/update', val);
@@ -73,7 +73,7 @@
     }
 };
 
-const handleRemove = async (rows) => {
+const handleRemove = async (rows, intl) => {
     if (!rows) return true;
     const hide = message.loading('姝e湪鍒犻櫎');
     try {
@@ -93,7 +93,7 @@
     }
 };
 
-const handleExport = async () => {
+const handleExport = async (intl) => {
     const hide = message.loading('姝e湪瀵煎嚭');
     try {
         const resp = await Http.doPostBlob('api/userLogin/export');
@@ -263,7 +263,7 @@
                             title: '鍒犻櫎',
                             content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                             onOk: async () => {
-                                const success = await handleRemove([record]);
+                                const success = await handleRemove([record], intl);
                                 if (success) {
                                     if (actionRef.current) {
                                         actionRef.current.reload();
@@ -332,7 +332,7 @@
                             <Button
                                 key="export"
                                 onClick={async () => {
-                                    handleExport();
+                                    handleExport(intl);
                                 }}
                             >
                                 <ExportOutlined />
@@ -381,7 +381,7 @@
                                 title: '鍒犻櫎',
                                 content: '纭畾鍒犻櫎璇ラ」鍚楋紵',
                                 onOk: async () => {
-                                    const success = await handleRemove(selectedRows);
+                                    const success = await handleRemove(selectedRows, intl);
                                     if (success) {
                                         setSelectedRows([]);
                                         actionRef.current?.reloadAndRest?.();
@@ -407,9 +407,9 @@
                 onSubmit={async (values) => {
                     let ok = false;
                     if (values.id) {
-                        ok = await handleUpdate({ ...values })
+                        ok = await handleUpdate({ ...values }, intl)
                     } else {
-                        ok = await handleSave({ ...values })
+                        ok = await handleSave({ ...values }, intl)
                     }
                     if (ok) {
                         setModalVisible(false);

--
Gitblit v1.9.1