提交 32f33c47 authored 作者: 钟是志's avatar 钟是志

删除冗余代码

上级 9cd2df2a
...@@ -363,7 +363,7 @@ export default class FormArray extends Component { ...@@ -363,7 +363,7 @@ export default class FormArray extends Component {
fieldDom = ( fieldDom = (
<TextArea <TextArea
{...defaultProps} {...defaultProps}
autosize={{ minRows: 4, maxRows: 6 }} autoSize={{ minRows: 4, maxRows: 6 }}
onChange={e => { onChange={e => {
changeValue(e.target.value, info.key); changeValue(e.target.value, info.key);
}} }}
......
...@@ -153,6 +153,7 @@ export default class ZdyTable extends Component { ...@@ -153,6 +153,7 @@ export default class ZdyTable extends Component {
} }
} }
const obj = JSON.parse(val.unifiedServicePatternModel.content); const obj = JSON.parse(val.unifiedServicePatternModel.content);
const xxx = obj.datas[obj.init]; const xxx = obj.datas[obj.init];
this.initExcel(obj,()=>{ this.initExcel(obj,()=>{
this.setState({ this.setState({
...@@ -180,10 +181,12 @@ export default class ZdyTable extends Component { ...@@ -180,10 +181,12 @@ export default class ZdyTable extends Component {
return; return;
} }
if ( if (
val.unifiedServicePatternModel.isDefaultError != null && val.unifiedServicePatternModel.isDefaultError != null &&
val.unifiedServicePatternModel.isDefaultError val.unifiedServicePatternModel.isDefaultError
) { )
{
if (this.props.get == 'web') { if (this.props.get == 'web') {
message.error('当前办理人数较多,服务繁忙,请稍后再试!'); message.error('当前办理人数较多,服务繁忙,请稍后再试!');
} else { } else {
...@@ -193,6 +196,7 @@ export default class ZdyTable extends Component { ...@@ -193,6 +196,7 @@ export default class ZdyTable extends Component {
router.goBack(); router.goBack();
return; return;
} }
const mapData = {}; const mapData = {};
const sqlData = {}; const sqlData = {};
const sqls = val.unifiedServicePatternModel.sqlModels; const sqls = val.unifiedServicePatternModel.sqlModels;
...@@ -212,6 +216,7 @@ export default class ZdyTable extends Component { ...@@ -212,6 +216,7 @@ export default class ZdyTable extends Component {
} }
} }
const obj = JSON.parse(val.unifiedServicePatternModel.content); const obj = JSON.parse(val.unifiedServicePatternModel.content);
console.log(obj, '-----content---');
const xxx = obj.datas[this.props.formKey ? this.props.formKey : obj.init]; // 是否是存在历史表单传入值 const xxx = obj.datas[this.props.formKey ? this.props.formKey : obj.init]; // 是否是存在历史表单传入值
const fk = this.props.formKey const fk = this.props.formKey
? this.props.formKey ? this.props.formKey
...@@ -730,7 +735,10 @@ export default class ZdyTable extends Component { ...@@ -730,7 +735,10 @@ export default class ZdyTable extends Component {
{this.props.postData?.isUpdate ? ( {this.props.postData?.isUpdate ? (
<div style={{ margin: '100px 24px 24px' }}> <div style={{ margin: '100px 24px 24px' }}>
<div style={{ textAlign: 'center' }}> <div style={{ textAlign: 'center' }}>
<img style={{ marginRight: 30 }} src={maintain}></img> <img style={{ marginRight: 30 }}
src={maintain}>
</img>
</div> </div>
<p <p
style={{ style={{
......
...@@ -217,6 +217,10 @@ export default class ChildForm extends React.Component { ...@@ -217,6 +217,10 @@ export default class ChildForm extends React.Component {
); );
} }
/***
* 子表单
* */
return ( return (
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
<Row gutter={gutter}> <Row gutter={gutter}>
...@@ -224,9 +228,10 @@ export default class ChildForm extends React.Component { ...@@ -224,9 +228,10 @@ export default class ChildForm extends React.Component {
if (r == '') { if (r == '') {
return ''; return '';
} }
console.log('子表单', r);
// console.log(form.getFieldsValue());
return ( return (
<Col span={span}> <Col span={span} key={r}>
<ZdyTable <ZdyTable
taskId={taskId} taskId={taskId}
setRealTimeValues={this.props.setRealTimeValues} setRealTimeValues={this.props.setRealTimeValues}
......
...@@ -2472,7 +2472,7 @@ export default class tableCom extends Component { ...@@ -2472,7 +2472,7 @@ export default class tableCom extends Component {
: [{required: required, message: '请输入' + title}], : [{required: required, message: '请输入' + title}],
})( })(
<TextArea <TextArea
autosize={{minRows: 4}} autoSize={{minRows: 4}}
disabled={disabled} disabled={disabled}
placeholder={json.placeholder} placeholder={json.placeholder}
/>, />,
...@@ -2518,7 +2518,7 @@ export default class tableCom extends Component { ...@@ -2518,7 +2518,7 @@ export default class tableCom extends Component {
: [{required: required, message: '请输入' + title}], : [{required: required, message: '请输入' + title}],
})( })(
<TextArea <TextArea
autosize={{minRows: 4}} autoSize={{minRows: 4}}
disabled={disabled} disabled={disabled}
rows={4} rows={4}
placeholder={json.placeholder} placeholder={json.placeholder}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论