From d59d4495574968e23e520da71f89790f0ad09df0 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 01 四月 2025 11:06:09 +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