Commit 57473f20 by zhaochengxiang

资产保存不要必填项校验

parent 3d55c336
...@@ -77,7 +77,7 @@ const AssetAction = React.forwardRef(function (props, ref) { ...@@ -77,7 +77,7 @@ const AssetAction = React.forwardRef(function (props, ref) {
React.useImperativeHandle(ref, () => ({ React.useImperativeHandle(ref, () => ({
validate: async () => { validate: async () => {
await form.validateFields(); // await form.validateFields();
await columnForm?.validateFields(); await columnForm?.validateFields();
}, },
getAsset: () => { getAsset: () => {
...@@ -589,7 +589,8 @@ const AssetAction = React.forwardRef(function (props, ref) { ...@@ -589,7 +589,8 @@ const AssetAction = React.forwardRef(function (props, ref) {
const onOk = async() => { const onOk = async() => {
try { try {
const row = await form?.validateFields(); // const row = await form?.validateFields();
const row = form?.getFieldsValue();
await columnForm?.validateFields(); await columnForm?.validateFields();
const newElements = [...elements]; const newElements = [...elements];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment