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

31435 勤工助学(新)/工作情况考核,20219001028 批次设置的时间没有受控制 看下

上级 c08c067e
...@@ -167,17 +167,21 @@ export default class TableCom extends Component { ...@@ -167,17 +167,21 @@ export default class TableCom extends Component {
modalInit: data, modalInit: data,
}, },
() => { () => {
dispatch({ setTimeout(() => {
type: 'DataColumn/showModal', // 解决禅道 31435 勤工助学(新)/工作情况考核,20219001028 批次设置的时间没有受控制 看下
payload: { isShowModal: x }, dispatch({
callback: () => { type: 'DataColumn/showModal',
this.setState({ payload: { isShowModal: x },
modalTitle: title, callback: () => {
modalCode: fk, this.setState({
modalProps: modalProps, modalTitle: title,
}); modalCode: fk,
}, modalProps: modalProps,
}); });
},
});
}, 300);
}, },
); );
}; };
...@@ -323,7 +327,7 @@ export default class TableCom extends Component { ...@@ -323,7 +327,7 @@ export default class TableCom extends Component {
!( !(
this.dataFilter.includes(json.comName) || this.dataFilter.includes(json.comName) ||
json.comName === 'TableSelect' || json.comName === 'TableSelect' ||
(json.formula != null && json.formula != '') !!json.formula
) )
) { ) {
return; return;
...@@ -414,7 +418,7 @@ export default class TableCom extends Component { ...@@ -414,7 +418,7 @@ export default class TableCom extends Component {
}; };
this.getData(json, dataColumn, obj2); this.getData(json, dataColumn, obj2);
} }
if (json.formula != null && json.formula != '' && !json.isFormulaOnce) { if (!!json.formula && !json.isFormulaOnce) {
this.getFunctionValue(json.formula, dataColumn, json); this.getFunctionValue(json.formula, dataColumn, json);
} }
} }
...@@ -1049,15 +1053,15 @@ export default class TableCom extends Component { ...@@ -1049,15 +1053,15 @@ export default class TableCom extends Component {
if (!isEdit && fatherCode) { if (!isEdit && fatherCode) {
obj = { obj = {
...fatherObj, ...fatherObj,
...form.getFieldsValue(),
...defaultValues[formKey], ...defaultValues[formKey],
...form.getFieldsValue(),
}; };
} else { } else {
obj = { obj = {
...(fatherObj ? fatherObj : {}), ...(fatherObj ? fatherObj : {}),
...this.props.obj, ...this.props.obj,
...form.getFieldsValue(),
...defaultValues[formKey], ...defaultValues[formKey],
...form.getFieldsValue(),
}; };
} }
return obj; return obj;
...@@ -1187,6 +1191,7 @@ export default class TableCom extends Component { ...@@ -1187,6 +1191,7 @@ export default class TableCom extends Component {
messageData, messageData,
functionObj, functionObj,
} = this.functionArguments(column, callback); } = this.functionArguments(column, callback);
// console.log(obj.id_4f1c72d949e7, 'getFunctionValue');
const value = fun1( const value = fun1(
obj, obj,
init, init,
...@@ -1253,7 +1258,7 @@ export default class TableCom extends Component { ...@@ -1253,7 +1258,7 @@ export default class TableCom extends Component {
if (json == null) { if (json == null) {
return; return;
} }
if (json.sqlKey != null && json.sqlKey != '') { if (json.sqlKey != null && json.sqlKey !== '') {
const { dispatch } = this.props; const { dispatch } = this.props;
dispatch({ dispatch({
type: 'SqlManageEntity/find', type: 'SqlManageEntity/find',
...@@ -1292,6 +1297,7 @@ export default class TableCom extends Component { ...@@ -1292,6 +1297,7 @@ export default class TableCom extends Component {
...this.props.form.getFieldsValue(), ...this.props.form.getFieldsValue(),
...this.props.defaultValues[this.props.formKey], ...this.props.defaultValues[this.props.formKey],
}; };
// console.log(obj.id_4f1c72d949e7, 'tableCom-1295',);
this.getData(json, dataColumn, obj2); this.getData(json, dataColumn, obj2);
if (json.formula != null && json.formula != '' && !this.props.safe) { if (json.formula != null && json.formula != '' && !this.props.safe) {
...@@ -4100,6 +4106,7 @@ ${obj[dataColumn.base52]} ...@@ -4100,6 +4106,7 @@ ${obj[dataColumn.base52]}
); );
} else { } else {
// console.log(datas); // console.log(datas);
return ( return (
<> <>
{modalCode ? ( {modalCode ? (
...@@ -4186,6 +4193,7 @@ ${obj[dataColumn.base52]} ...@@ -4186,6 +4193,7 @@ ${obj[dataColumn.base52]}
} }
} else { } else {
// console.log(datas[modalCode]); // console.log(datas[modalCode]);
return ( return (
<> <>
{modalCode ? ( {modalCode ? (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论