fix(ui): 修复档位回填与筛选布局
This commit is contained in:
@@ -44,7 +44,6 @@ const AmountOptionsManager = ({
|
||||
const [options, setOptions] = useState([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [editModal, setEditModal] = useState({ visible: false, data: null });
|
||||
const [, setFormApi] = useState(null);
|
||||
|
||||
const onScopeChange = useEffectEvent(() => {
|
||||
loadOptions();
|
||||
@@ -239,12 +238,10 @@ const AmountOptionsManager = ({
|
||||
onCancel={() => setEditModal({ visible: false, data: null })}
|
||||
footer={null}
|
||||
width={600}
|
||||
// initValues 仅在挂载时生效,关闭后销毁表单以便下次按当前行初始化。
|
||||
keepDOM={false}
|
||||
>
|
||||
<Form
|
||||
initValues={editModal.data || {}}
|
||||
onSubmit={handleSave}
|
||||
getFormApi={(api) => setFormApi(api)}
|
||||
>
|
||||
<Form initValues={editModal.data || {}} onSubmit={handleSave}>
|
||||
<Form.InputNumber
|
||||
field='amount'
|
||||
label={t('充值金额(元)')}
|
||||
|
||||
Reference in New Issue
Block a user