Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
markliu2013 committed Feb 7, 2024
1 parent adfc3d7 commit bf42586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 2 additions & 22 deletions src/pages/Book/DataTable.jsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -32,26 +31,7 @@ export default () => {
show(<ActionForm />, 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(<CopyForm />, 1, record);
Expand Down

0 comments on commit bf42586

Please sign in to comment.