公式测试bug的修复
This commit is contained in:
parent
a83d261c20
commit
7d4c8361c0
|
|
@ -323,7 +323,14 @@ export default class FormalFormModal extends React.Component {
|
|||
const title = <div className="formulaTitleWrapper">
|
||||
<div>{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}</div>
|
||||
{
|
||||
value && <Button type="primary" onClick={() => this.setState({ testVisible: true })}>测试</Button>
|
||||
value && <Button type="primary" onClick={() => {
|
||||
const isSaveBool = _.every(this.parameters, it => !!it.id);
|
||||
if (isSaveBool) {
|
||||
this.setState({ testVisible: true });
|
||||
} else {
|
||||
message.info("请先保存公式后再进行测试");
|
||||
}
|
||||
}}>测试</Button>
|
||||
}
|
||||
{/*公式测试*/}
|
||||
<TestModal visible={testVisible} testParams={value} parameters={this.parameters}
|
||||
|
|
|
|||
Loading…
Reference in New Issue