Commit 75637bd2 authored by 前端-许佳敏's avatar 前端-许佳敏

修改配置文件

parent 7a984fbe
......@@ -7,6 +7,11 @@ const OPEN_THEME_BUILD = process.env.NODE_ENV === 'production' ? true : false //
const config: any = {
title: '瓴犀开放平台',
// 如需写入环境变量 需在config中先写入
define: {
"process.env.SITE_ID": process.env.SITE_ID,
"process.env.BACK_GATEWAY": process.env.BACK_GATEWAY
},
// layout: {},
antd: {},
locale: {
......
......@@ -32,9 +32,16 @@ const FirstApprovedOrder:React.FC<FirstApprovedOrderProps> = (props) => {
const [rowSelection, rowSelectionCtl] = useRowSelectionTable({customKey: 'id'})
const handleSubmitBatch = async () => {
await PublicApi.postOrderProcurementOrderReviewedAllTwo({
const { code } = await PublicApi.postOrderProcurementOrderReviewedAllTwo({
ids: rowSelectionCtl.selectedRowKeys
})
if (code === 1000) {
// 清空选中的值
ref.current.reload()
rowSelectionCtl.setSelectRow([])
rowSelectionCtl.setSelectedRowKeys([])
}
}
return <PageHeaderWrapper>
<Card>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment