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

修改bug

上级 03ddcabf
......@@ -95,7 +95,7 @@ export default class ChildForm extends React.Component {
render() {
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 gutter = json.gutter != null ? json.gutter : 0
const rights = this.props.rights
......@@ -119,7 +119,7 @@ export default class ChildForm extends React.Component {
return ""
}
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}
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> : ''}
......@@ -145,6 +145,7 @@ export default class ChildForm extends React.Component {
>
<ZdyTable
modalInit={modalInit}
formConfig={datas}
key={r}
fatherCode={base52}
......
......@@ -1492,6 +1492,7 @@ export default class tableCom extends Component {
})(<Input type="hidden" />)}{' '}
<ZdyTable
key={fk}
modalInit={modalInit}
datas={datas}
get={get}
isChild={true}
......@@ -2150,6 +2151,7 @@ export default class tableCom extends Component {
cm = (
<ChildForm
modalInit={modalInit}
fatherObj={obj}
json={json}
rights={json.rights || ['add', 'delete']}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论