| | |
| | | }); |
| | | this.domains.forEach((i, index) => { |
| | | let isIncludes = false |
| | | if (this.configForm.formula && this.configForm.formula != "") { |
| | | if (this.configForm.formula && this.configForm.formula !== "") { |
| | | for (let formula in this.formulas) { |
| | | if (this.configForm.formula.includes(this.formulas[formula].label)) { |
| | | isIncludes = true |
| | | } |
| | | } |
| | | } |
| | | if (isIncludes === false) { |
| | | if (isIncludes === false && this.configForm.formula !== "") { |
| | | i.formula = "(" + this.configForm.formula + ")"; |
| | | } else { |
| | | i.formula = this.configForm.formula; |