Commit 9e7c1d02 authored by 田翔's avatar 田翔

fix: 关联表单细节修改

parent faef3152
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.9.12", "version": "5.9.13",
"description": "5.9.12 BUG修复", "description": "5.9.13 关联表单细节修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -445,8 +445,11 @@ const RelationForm = (props) => { ...@@ -445,8 +445,11 @@ const RelationForm = (props) => {
{ {
!disabled ? ( !disabled ? (
<div className={styles.btns}> <div className={styles.btns}>
{otherSource?.accountName ? (
<Button type='primary' size='middle' icon={<VerticalAlignBottomOutlined />} onClick={addRows}>{otherSource?.btnName || '其他台账导入'}</Button>
) : (
<Button style={{ marginRight: '5px' }} size='middle' icon={<PlusOutlined />} onClick={isEdit ? addRow : addClick}>{isEdit ? '添加一行' : '添加'}</Button> <Button style={{ marginRight: '5px' }} size='middle' icon={<PlusOutlined />} onClick={isEdit ? addRow : addClick}>{isEdit ? '添加一行' : '添加'}</Button>
{otherSource?.accountName ? <Button type='primary' size='middle' icon={<VerticalAlignBottomOutlined />} onClick={addRows}>其他台账导入</Button> : null} )}
</div> </div>
) : null ) : null
} }
......
...@@ -64,6 +64,8 @@ const OtherSource = (props) => { ...@@ -64,6 +64,8 @@ const OtherSource = (props) => {
onOk={onOk} onOk={onOk}
onCancel={() => setVisible(false)} onCancel={() => setVisible(false)}
title={'数据来源'} title={'数据来源'}
width={600}
bodyStyle={{ height: '400px', overflow: 'auto' }}
visible={visible} visible={visible}
> >
<Form form={form} autoComplete='off'> <Form form={form} autoComplete='off'>
...@@ -81,6 +83,12 @@ const OtherSource = (props) => { ...@@ -81,6 +83,12 @@ const OtherSource = (props) => {
} }
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item
label={'台账名称'}
name={'btnName'}
>
<Input placeholder='请输入按钮名称' />
</Form.Item>
<Form.Item <Form.Item
label={'SQL过滤'} label={'SQL过滤'}
name={'sql'} name={'sql'}
......
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