From ccbce3a6c2cb77b586869e34d6c43629174ec5ac Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 17 二月 2024 14:30:53 +0800
Subject: [PATCH] #

---
 zy-asrs-framework/src/main/resources/templates/react/Index.txt   |   14 +++++++-------
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/CodeBuilder.java |    2 --
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/zy-asrs-framework/src/main/resources/templates/react/Index.txt b/zy-asrs-framework/src/main/resources/templates/react/Index.txt
index da61022..67a4a35 100644
--- a/zy-asrs-framework/src/main/resources/templates/react/Index.txt
+++ b/zy-asrs-framework/src/main/resources/templates/react/Index.txt
@@ -15,7 +15,7 @@
 const handleSave = async (val) => {
     const hide = message.loading('姝e湪娣诲姞');
     try {
-        const resp = await Http.doPost('api/role/save', val);
+        const resp = await Http.doPost('api/@{SIMPLEENTITYNAME}/save', val);
         if (resp.code === 200) {
             message.success('娣诲姞鎴愬姛');
             return true;
@@ -34,7 +34,7 @@
 const handleUpdate = async (val) => {
     const hide = message.loading('姝e湪鏇存柊');
     try {
-        const resp = await Http.doPost('api/role/update', val);
+        const resp = await Http.doPost('api/@{SIMPLEENTITYNAME}/update', val);
         if (resp.code === 200) {
             message.success('鏇存柊鎴愬姛');
             return true;
@@ -54,7 +54,7 @@
     if (!rows) return true;
     const hide = message.loading('姝e湪鍒犻櫎');
     try {
-        const resp = await Http.doPost('api/role/remove/' + rows.map((row) => row.id).join(','));
+        const resp = await Http.doPost('api/@{SIMPLEENTITYNAME}/remove/' + rows.map((row) => row.id).join(','));
         if (resp.code === 200) {
             message.success('鍒犻櫎鎴愬姛');
             return true;
@@ -73,7 +73,7 @@
 const handleExport = async () => {
     const hide = message.loading('姝e湪瀵煎嚭');
     try {
-        const resp = await Http.doPostBlob('api/role/export');
+        const resp = await Http.doPostBlob('api/@{SIMPLEENTITYNAME}/export');
         const blob = new Blob([resp], { type: 'application/vnd.ms-excel' });
         window.location.href = window.URL.createObjectURL(blob);
         message.success('瀵煎嚭鎴愬姛');
@@ -211,7 +211,7 @@
         <PageContainer>
             <div style={{ width: '100%', float: 'right' }}>
                 <ProTable
-                    key="role"
+                    key="@{SIMPLEENTITYNAME}"
                     rowKey="id"
                     actionRef={actionRef}
                     formRef={formTableRef}
@@ -260,7 +260,7 @@
                         ],
                     }}
                     request={(params, sorter, filter) =>
-                        Http.doPostPromise('/api/role/page', { ...params, ...searchParam }, (res) => {
+                        Http.doPostPromise('/api/@{SIMPLEENTITYNAME}/page', { ...params, ...searchParam }, (res) => {
                             return {
                                 data: res.data.records,
                                 total: res.data.total,
@@ -274,7 +274,7 @@
                         }
                     }}
                     columnsState={{
-                        persistenceKey: 'pro-table-role',
+                        persistenceKey: 'pro-table-@{SIMPLEENTITYNAME}',
                         persistenceType: 'localStorage',
                         defaultValue: {
                             option: { fixed: 'right', disable: true },
diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/CodeBuilder.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/CodeBuilder.java
index fbc4240..42d3fa7 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/CodeBuilder.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/CodeBuilder.java
@@ -25,8 +25,6 @@
         generator.table="sys_dept";
         generator.packagePath="com.zy.asrs.wcs.system";
 
-        generator.react = false;
-
         generator.build();
     }
 

--
Gitblit v1.9.1