#
luxiaotao1123
2024-02-17 ccbce3a6c2cb77b586869e34d6c43629174ec5ac
#
2个文件已修改
16 ■■■■■ 已修改文件
zy-asrs-framework/src/main/resources/templates/react/Index.txt 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/CodeBuilder.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-framework/src/main/resources/templates/react/Index.txt
@@ -15,7 +15,7 @@
const handleSave = async (val) => {
    const hide = message.loading('正在添加');
    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('正在更新');
    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('正在删除');
    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('正在导出');
    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 },
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();
    }