#
luxiaotao1123
2024-02-28 20b66843886ae9795fefc7eb863f04265958d9c9
#
5个文件已修改
92 ■■■■ 已修改文件
zy-asrs-flow/src/pages/system/menu/index.jsx 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/system/operationRecord/index.jsx 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/system/role/index.jsx 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/system/user/index.jsx 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/system/userLogin/index.jsx 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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('正在添加');
    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('正在更新');
    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('正在删除');
    try {
@@ -88,7 +88,7 @@
    }
};
const handleExport = async () => {
const handleExport = async (intl) => {
    const hide = message.loading('正在导出');
    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);
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('正在添加');
    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('正在更新');
    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('正在删除');
    try {
@@ -85,7 +85,7 @@
    }
};
const handleExport = async () => {
const handleExport = async (intl) => {
    const hide = message.loading('正在导出');
    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);
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('正在添加');
    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('正在更新');
    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('正在删除');
    try {
@@ -76,7 +76,7 @@
    }
};
const handleExport = async () => {
const handleExport = async (intl) => {
    const hide = message.loading('正在导出');
    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);
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('正在添加');
    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('正在更新');
    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('正在删除');
    try {
@@ -78,7 +78,7 @@
    }
};
const handleExport = async () => {
const handleExport = async (intl) => {
    const hide = message.loading('正在导出');
    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);
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('正在添加');
    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('正在更新');
    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('正在删除');
    try {
@@ -93,7 +93,7 @@
    }
};
const handleExport = async () => {
const handleExport = async (intl) => {
    const hide = message.loading('正在导出');
    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);