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/sta/StaCreate.jsx | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/page/sta/StaCreate.jsx b/zy-acs-flow/src/page/sta/StaCreate.jsx index 4e923b1..6343689 100644 --- a/zy-acs-flow/src/page/sta/StaCreate.jsx +++ b/zy-acs-flow/src/page/sta/StaCreate.jsx @@ -48,8 +48,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 ( @@ -100,6 +100,7 @@ <AutocompleteInput label="table.field.sta.zoneId" optionText="name" + filterToQuery={(val) => ({ name: val })} /> </ReferenceInput> </Grid> @@ -125,6 +126,7 @@ <AutocompleteInput label="table.field.sta.staType" optionText="name" + filterToQuery={(val) => ({ name: val })} validate={required()} /> </ReferenceInput> @@ -136,7 +138,8 @@ > <AutocompleteInput label="table.field.sta.code" - optionText="uuid" + optionText="data" + filterToQuery={(val) => ({ data: val })} /> </ReferenceInput> </Grid> @@ -189,6 +192,7 @@ <AutocompleteInput label="table.field.sta.staSts" optionText="name" + filterToQuery={(val) => ({ name: val })} /> </ReferenceInput> </Grid> -- Gitblit v1.9.1