From 6ffa9ed530f4b04af6b8dfc58cd526d53e7c9c1a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 16 四月 2025 11:32:13 +0800 Subject: [PATCH] 2025-04-16 --- src/menu/components/form/formaction/actionform/index.jsx | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/menu/components/form/formaction/actionform/index.jsx b/src/menu/components/form/formaction/actionform/index.jsx index 2f9e22f..92c414f 100644 --- a/src/menu/components/form/formaction/actionform/index.jsx +++ b/src/menu/components/form/formaction/actionform/index.jsx @@ -4,8 +4,10 @@ import { QuestionCircleOutlined } from '@ant-design/icons' import { formRule } from '@/utils/option.js' +import asyncComponent from '@/utils/asyncComponent' import './index.scss' +const MKTable = asyncComponent(() => import('@/components/normalform/modalform/mkTable')) const { TextArea } = Input class ActionForm extends Component { @@ -111,6 +113,10 @@ // if (this.record.execSuccess === 'never' && this.record.resetForms && this.record.resetForms[0]) { // shows.push('returnValue') // } + } + + if (this.record.syncComponent && this.record.syncComponent[0] === 'multiComponent') { + shows.push('syncComponents') } if (this.record.linkmenu && this.record.linkmenu !== 'goback') { @@ -362,6 +368,22 @@ </Form.Item> </Col> ) + } else if (item.type === 'table') { + fields.push( + <Col span={24} key={index}> + <Form.Item label={label} className="textarea"> + {getFieldDecorator(item.key, { + initialValue: item.initVal, + rules: [ + { + required: item.required, + message: '璇锋坊鍔�' + item.label + '!' + } + ] + })(<MKTable columns={item.columns || []} actions={item.actions}/>)} + </Form.Item> + </Col> + ) } }) return fields -- Gitblit v1.8.0