@@ -31,8 +31,8 @@ const CreateForm = (props) => { | |||||
name="pertain" | name="pertain" | ||||
label="归属" | label="归属" | ||||
defaultValue={props?.values?.pertain} | defaultValue={props?.values?.pertain} | ||||
rules={[{ required: true, message: '请选择类型归宿' }]} > | |||||
<Select placeholder="请选择类型归宿"> | |||||
rules={[{ required: true, message: '请选择类型归属' }]} > | |||||
<Select placeholder="请选择类型归属"> | |||||
<Option value="1">无</Option> | <Option value="1">无</Option> | ||||
<Option value="2">TMC </Option> | <Option value="2">TMC </Option> | ||||
</Select> | </Select> | ||||
@@ -115,7 +115,11 @@ export default function Index() { | |||||
//获取营销报表列表 | //获取营销报表列表 | ||||
const onQueryMarketing = async () => { | const onQueryMarketing = async () => { | ||||
setShowLoading(true); | setShowLoading(true); | ||||
const response = await reportAPI.getReportStatisticsMarketing(); | |||||
const response = await reportAPI.getReportStatisticsMarketing({ | |||||
sTime: timeRange[0]._i, | |||||
eTime: timeRange[1]._i, | |||||
key: [currentOrg.key || ""] | |||||
}); | |||||
setShowLoading(false); | setShowLoading(false); | ||||
if (response.statusCode === 200) { | if (response.statusCode === 200) { | ||||
setReportActivity(response.data.activity); | setReportActivity(response.data.activity); | ||||
@@ -9,9 +9,12 @@ export default { | |||||
}, | }, | ||||
//获取营销报表 | //获取营销报表 | ||||
getReportStatisticsMarketing() { | |||||
getReportStatisticsMarketing(params) { | |||||
return request(`/kitchen/api/report-statistics/marketing`, { | return request(`/kitchen/api/report-statistics/marketing`, { | ||||
method: 'POST', | method: 'POST', | ||||
data: { | |||||
...params | |||||
} | |||||
}); | }); | ||||
} | } | ||||
}; | }; |