From bf4258628ca57586863da786cea1d34fefe9990c Mon Sep 17 00:00:00 2001 From: markliu2013 Date: Wed, 7 Feb 2024 11:58:07 +0800 Subject: [PATCH] save --- package.json | 2 +- src/pages/Book/DataTable.jsx | 24 ++---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index de3e4b6..65a791b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moneywhere-user-fe", - "version": "1.0.51", + "version": "1.0.52", "private": true, "scripts": { "analyze": "cross-env ANALYZE=1 max build", diff --git a/src/pages/Book/DataTable.jsx b/src/pages/Book/DataTable.jsx index c26c990..62f20b0 100644 --- a/src/pages/Book/DataTable.jsx +++ b/src/pages/Book/DataTable.jsx @@ -1,12 +1,11 @@ import {useState} from "react"; import { Button, Modal, message } from 'antd'; import { ProTable } from '@ant-design/pro-components'; -import { useModel } from '@umijs/max'; +import {useIntl, useModel} from '@umijs/max'; import { PlusOutlined } from '@ant-design/icons'; import { query1, toggle } from '@/services/common'; import { exportFlow } from '@/services/book'; import { setDefaultBook } from '@/services/user'; -import MySwitch from '@/components/MySwitch'; import { tableProp } from '@/utils/prop'; import ActionForm from './ActionForm'; import CopyForm from "./CopyForm"; @@ -32,26 +31,7 @@ export default () => { show(, 2, record); }; - // const intl = useIntl(); - // const deleteHandler = (record) => { - // const messageConfirm = intl.formatMessage( - // { id: 'delete.confirm' }, - // { name: record.name }, - // ); - // Modal.confirm({ - // title: messageConfirm, - // onOk: async () => { - // const res = await remove('books', record.id); - // if (res.success) { - // // - // if (record.current) { - // - // } - // } - // successHandler(); - // }, - // }); - // }; + const intl = useIntl(); const copyHandler = (record) => { show(, 1, record);