产品-公式编辑器修改

This commit is contained in:
黎永顺 2023-05-18 15:52:38 +08:00
parent ab161f8528
commit d4cfca1eda
1 changed files with 2 additions and 1 deletions

View File

@ -339,8 +339,9 @@ 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={() => {
!_.isEmpty(this.parameters) && <Button type="primary" onClick={() => {
const isSaveBool = _.every(this.parameters, it => !!it.id);
console.log("parameters", this.parameters);
if (isSaveBool) {
this.setState({ testVisible: true });
} else {