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

fix: 关联表单细节修改

parent faef3152
{
"name": "panda-xform",
"version": "5.9.12",
"description": "5.9.12 BUG修复",
"version": "5.9.13",
"description": "5.9.13 关联表单细节修改",
"keywords": [
"panda-xform"
],
......
......@@ -445,8 +445,11 @@ const RelationForm = (props) => {
{
!disabled ? (
<div className={styles.btns}>
<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}
{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>
)}
</div>
) : null
}
......
......@@ -64,6 +64,8 @@ const OtherSource = (props) => {
onOk={onOk}
onCancel={() => setVisible(false)}
title={'数据来源'}
width={600}
bodyStyle={{ height: '400px', overflow: 'auto' }}
visible={visible}
>
<Form form={form} autoComplete='off'>
......@@ -81,6 +83,12 @@ const OtherSource = (props) => {
}
</Select>
</Form.Item>
<Form.Item
label={'台账名称'}
name={'btnName'}
>
<Input placeholder='请输入按钮名称' />
</Form.Item>
<Form.Item
label={'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