提交 14400a35 authored 作者: chscls@163.com's avatar chscls@163.com

修改bug

上级 03ddcabf
...@@ -95,7 +95,7 @@ export default class ChildForm extends React.Component { ...@@ -95,7 +95,7 @@ export default class ChildForm extends React.Component {
render() { render() {
const objs = this.state; const objs = this.state;
const { form, mapData, sqlData, defaultValues, datas, base52, isEdit, addName, deleteName, obj, isMobile, json } = this.props const { form, mapData, sqlData, defaultValues, datas, base52, isEdit, addName, deleteName, obj, isMobile, json,modalInit } = this.props
const span = json.span || 24 const span = json.span || 24
const gutter = json.gutter != null ? json.gutter : 0 const gutter = json.gutter != null ? json.gutter : 0
const rights = this.props.rights const rights = this.props.rights
...@@ -119,7 +119,7 @@ export default class ChildForm extends React.Component { ...@@ -119,7 +119,7 @@ export default class ChildForm extends React.Component {
return "" return ""
} }
return <Row key={r} gutter={gutter} ><Col style={{ textAlign: 'right' }} span={isEdit ? 23 : span} > return <Row key={r} gutter={gutter} ><Col style={{ textAlign: 'right' }} span={isEdit ? 23 : span} >
<ZdyTable key={r} formCode={this.props.formCode} <ZdyTable key={r} modalInit={modalInit} formCode={this.props.formCode}
formId={this.props.formId} formId={this.props.formId}
formConfig={datas} get='mobile' fatherCode={base52} isEdit={isEdit} index={r} obj={objs[r]} fatherObj={this.props.fatherObj} init={objs} isChild={true} form={form} mapData={mapData} sqlData={sqlData} {...datas} defaultValues={defaultValues} /> formConfig={datas} get='mobile' fatherCode={base52} isEdit={isEdit} index={r} obj={objs[r]} fatherObj={this.props.fatherObj} init={objs} isChild={true} form={form} mapData={mapData} sqlData={sqlData} {...datas} defaultValues={defaultValues} />
{rights.includes("delete") && isEdit ? <Button type='danger' onClick={this.delete.bind(this, r)}>{deleteName || "删除"} </Button> : ''} {rights.includes("delete") && isEdit ? <Button type='danger' onClick={this.delete.bind(this, r)}>{deleteName || "删除"} </Button> : ''}
...@@ -145,6 +145,7 @@ export default class ChildForm extends React.Component { ...@@ -145,6 +145,7 @@ export default class ChildForm extends React.Component {
> >
<ZdyTable <ZdyTable
modalInit={modalInit}
formConfig={datas} formConfig={datas}
key={r} key={r}
fatherCode={base52} fatherCode={base52}
......
...@@ -1492,6 +1492,7 @@ export default class tableCom extends Component { ...@@ -1492,6 +1492,7 @@ export default class tableCom extends Component {
})(<Input type="hidden" />)}{' '} })(<Input type="hidden" />)}{' '}
<ZdyTable <ZdyTable
key={fk} key={fk}
modalInit={modalInit}
datas={datas} datas={datas}
get={get} get={get}
isChild={true} isChild={true}
...@@ -2150,6 +2151,7 @@ export default class tableCom extends Component { ...@@ -2150,6 +2151,7 @@ export default class tableCom extends Component {
cm = ( cm = (
<ChildForm <ChildForm
modalInit={modalInit}
fatherObj={obj} fatherObj={obj}
json={json} json={json}
rights={json.rights || ['add', 'delete']} rights={json.rights || ['add', 'delete']}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论