From 7f70cb15d035f0c233b9e62b9e43aa985317c908 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 04 十一月 2024 10:22:45 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/bus/BusCreate.jsx | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/zy-acs-flow/src/page/bus/BusCreate.jsx b/zy-acs-flow/src/page/bus/BusCreate.jsx index f24e50d..8243565 100644 --- a/zy-acs-flow/src/page/bus/BusCreate.jsx +++ b/zy-acs-flow/src/page/bus/BusCreate.jsx @@ -68,8 +68,6 @@ }) } if (open) { - console.log(1); - queryLocStsByStock(); queryLocStsByIdle(); } @@ -86,8 +84,8 @@ notify('common.response.success'); }; - const handleError = async (data) => { - notify('common.response.fail'); + const handleError = async (error) => { + notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } }); }; return ( @@ -131,15 +129,16 @@ validate={required()} /> </Grid> - <Grid item xs={6} display="flex" gap={1}> + {/* <Grid item xs={6} display="flex" gap={1}> <DateTimeInput label="table.field.bus.startTime" source="startTime" /> - </Grid> + </Grid> */} <Grid item xs={12} display="flex" gap={1}> <ArrayInput + label="table.field.bus.taskList" source="taskList" validate={[required()]} > @@ -193,7 +192,11 @@ </Stack> <Stack direction="row" spacing={2} sx={{ maxWidth: '50%' }}> {/* <TextInput source="seqNum" /> */} - <NumberInput source="priority" defaultValue={1} /> + <NumberInput + label="table.field.task.priority" + source="priority" + defaultValue={1} + /> </Stack> </SimpleFormIterator> </ArrayInput> -- Gitblit v1.9.1