薪资项目公式测试功能修改
This commit is contained in:
parent
ea830a6315
commit
f914a9ee46
|
|
@ -341,9 +341,9 @@ export default class FormalFormModal extends React.Component {
|
|||
const title = <div className="formulaTitleWrapper">
|
||||
<div>{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}</div>
|
||||
{
|
||||
!_.isEmpty(this.parameters) && <Button type="primary" onClick={() => {
|
||||
!_.isEmpty(value) && <Button type="primary" onClick={() => {
|
||||
const isSaveBool = _.every(this.parameters, it => !!it.id);
|
||||
if (isSaveBool && value === formula) {
|
||||
if (value === formula) {
|
||||
this.setState({ testVisible: true });
|
||||
} else {
|
||||
message.info("请先保存公式后再进行测试");
|
||||
|
|
@ -359,15 +359,11 @@ export default class FormalFormModal extends React.Component {
|
|||
</div>;
|
||||
return (
|
||||
<WeaDialog
|
||||
title={title}
|
||||
hasScroll
|
||||
visible={this.props.visible}
|
||||
style={{ width: 1000 }}
|
||||
title={title} hasScroll scalable className="formula-wrapper" initLoadCss
|
||||
visible={this.props.visible} style={{ width: 1000 }}
|
||||
buttons={[
|
||||
<Button type="primary" onClick={this.handleSave}>保存</Button>
|
||||
]}
|
||||
className="formula-wrapper"
|
||||
initLoadCss
|
||||
onCancel={() => {
|
||||
this.props.onCancel();
|
||||
}}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue