提交 d624611c authored 作者: wtj's avatar wtj

修改表单排版问题

上级 dcaeba18
...@@ -731,7 +731,7 @@ class FormList extends React.Component { ...@@ -731,7 +731,7 @@ class FormList extends React.Component {
{form.getFieldDecorator(item.name, { {form.getFieldDecorator(item.name, {
initialValue: formData == null ? '' : formData[item.name], initialValue: formData == null ? '' : formData[item.name],
rules: [{ required: !item.isNull }], rules: [{ required: !item.isNull }],
})(<Input readOnly={!isAdd} placeholder="请输入"/>)} })(<Input style={{ width: '70%' }} readOnly={!isAdd} placeholder="请输入"/>)}
</FormItem> </FormItem>
); );
} }
...@@ -771,7 +771,7 @@ class FormList extends React.Component { ...@@ -771,7 +771,7 @@ class FormList extends React.Component {
{form.getFieldDecorator(item.name, { {form.getFieldDecorator(item.name, {
initialValue: formData == null ? '' : formData[item.name], initialValue: formData == null ? '' : formData[item.name],
rules: [{ required: !item.isNull }], rules: [{ required: !item.isNull }],
})(<Input placeholder="请输入"/>)} })(<Input style={{ width: '70%' }} placeholder="请输入"/>)}
</FormItem> </FormItem>
); );
} else if (number.indexOf(item.type) > -1) { } else if (number.indexOf(item.type) > -1) {
...@@ -818,7 +818,7 @@ class FormList extends React.Component { ...@@ -818,7 +818,7 @@ class FormList extends React.Component {
{form.getFieldDecorator(item.name, { {form.getFieldDecorator(item.name, {
initialValue: formData == null ? '' : formData[item.name], initialValue: formData == null ? '' : formData[item.name],
rules: [{ required: !item.isNull }], rules: [{ required: !item.isNull }],
})(<Input placeholder="请输入"/>)} })(<Input style={{ width: '70%' }} placeholder="请输入"/>)}
</FormItem> </FormItem>
); );
} }
...@@ -832,11 +832,12 @@ class FormList extends React.Component { ...@@ -832,11 +832,12 @@ class FormList extends React.Component {
if (querys.length == 0) { if (querys.length == 0) {
return ''; return '';
} }
return ( return (
<Form layout="inline"> <Form layout="inline">
<Row > <Row >
{querys.map((item) => {querys.map((item) =>
<Col span={8} key={item.id}> <Col style={{height:58}} span={8} key={item.id}>
{this.getItem(true,form, { {this.getItem(true,form, {
...item, ...item,
isNull: true isNull: true
......
...@@ -1704,7 +1704,7 @@ export default class tableCom extends Component { ...@@ -1704,7 +1704,7 @@ export default class tableCom extends Component {
if (this.props.fatherCode == null&&dataColumn == null) { if (this.props.fatherCode == null&&dataColumn == null) {
dataColumn = { base52: this.props.uuid } dataColumn = { base52: this.props.uuid }
} }
if (!dataColumn.isNull) { if (dataColumn.isNull!=null&&!dataColumn.isNull) {
required = true; required = true;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论