提交 6b259bfb authored 作者: 钟是志's avatar 钟是志

19684 优秀学生奖学金---班主任审核页面--弹框提醒优化处理

上级 d97338e1
import { Modal, Spin, Form, Input } from 'antd'; import { Modal, Spin, Form, Input, message } from 'antd';
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import styles from '../../RenderForm/index.less';
import { getHistoryFormDetail } from '../../../Services'; import { getHistoryFormDetail } from '../../../Services';
import AuditButton from '@/webPublic/FormInsertDiy/AuditButton'; import AuditButton from '@/webPublic/FormInsertDiy/AuditButton';
import HistoryForm from '@/webPublic/FormInsertDiy/HistoryForm';
import ButtonDiy from '@/baseComponent/ButtonDiy';
import { ModalInfo } from '@/baseComponent/Modal';
import { router } from 'umi';
import RenderForm from '../../RenderForm'; import RenderForm from '../../RenderForm';
const TextArea = Input.TextArea; const TextArea = Input.TextArea;
...@@ -16,12 +11,16 @@ function AuditModal({ form, selectRows, children, getPage }) { ...@@ -16,12 +11,16 @@ function AuditModal({ form, selectRows, children, getPage }) {
function submitCb(res) { function submitCb(res) {
// ModalInfo(`提交${res ? '成功' : '失败'}!`, { onOk: () => router.goBack() }); // ModalInfo(`提交${res ? '成功' : '失败'}!`, { onOk: () => router.goBack() });
ModalInfo(`提交${res ? '成功' : '失败'}!`, { message.info(`提交${res ? '成功' : '失败'}!`);
onOk: () => { setVisible(false);
setVisible(false); getPage();
getPage(); // 19684 优秀学生奖学金---班主任审核页面--弹框提醒优化处理 禅道bug
}, // ModalInfo(`提交${res ? '成功' : '失败'}!`, {
}); // onOk: () => {
// setVisible(false);
// getPage();
// },
// });
} }
const [data, setData] = useState(null); const [data, setData] = useState(null);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论