diff --git a/src/pages/bom/bomtype/components/CreateForm.jsx b/src/pages/bom/bomtype/components/CreateForm.jsx index 1addca7..ac1ebd4 100644 --- a/src/pages/bom/bomtype/components/CreateForm.jsx +++ b/src/pages/bom/bomtype/components/CreateForm.jsx @@ -9,7 +9,7 @@ const CreateForm = (props) => { visible={props?.createModalVisible} bodyStyle={{ padding: '32px 40px 48px' }} footer={null} - onCancel={() => { + onCancel={() => { props?.onCancel(); }} destroyOnClose diff --git a/src/pages/order/order-revenue-statement/index.jsx b/src/pages/order/order-revenue-statement/index.jsx index cb0ed7c..96dcc05 100644 --- a/src/pages/order/order-revenue-statement/index.jsx +++ b/src/pages/order/order-revenue-statement/index.jsx @@ -130,7 +130,7 @@ export default function Index() { } //生成营销报表活动信息柱状图 - const initActivityEcharts = () => { + const initActivityEcharts = () => { const chartDom = document.getElementById('activity-echarts'); activityEcharts = echarts.init(chartDom); const xAxisData = []; diff --git a/src/pages/order/order-revenue-statement/service.js b/src/pages/order/order-revenue-statement/service.js index cced7c2..cbedec0 100644 --- a/src/pages/order/order-revenue-statement/service.js +++ b/src/pages/order/order-revenue-statement/service.js @@ -13,7 +13,7 @@ export default { return request(`/kitchen/api/report-statistics/marketing`, { method: 'POST', data: { - ...params + ...params } }); }