| | |
| | | </DialogContent> |
| | | <DialogActions> |
| | | <Toolbar sx={{ width: '100%', justifyContent: 'end' }} > |
| | | <GenerateTaskButton record={[record?.id]} dataSource={data} /> |
| | | <GenerateTaskButton record={record?.id} dataSource={data} /> |
| | | </Toolbar> |
| | | </DialogActions> |
| | | </Dialog> |
| | |
| | | const notify = useNotify(); |
| | | const redirect = useRedirect(); |
| | | const generateTask = async () => { |
| | | const res = await request.post(`/wave/public/task`, { wave: dataSource }); |
| | | const params = {wave: record, waveItem: dataSource} |
| | | console.log('---------->'); |
| | | console.log(record); |
| | | const res = await request.post(`/wave/public/task`, { wave: record?.record, waveItem: record?.dataSource }); |
| | | if (res?.data?.code === 200) { |
| | | notify(res.data.msg); |
| | | redirect("/task") |