| | |
| | | let items = subCondition.value.map(function (item) { |
| | | return item.label |
| | | }) |
| | | console.log("subCondition",String(items)) |
| | | return `${subCondition.title}为[${String(items).replaceAll(',', '、')}]中之一` |
| | | case 'B': |
| | | return `${subCondition.value[0]} < ${subCondition.title} < ${subCondition.value[1]}` |
| | |
| | | }, |
| | | //校验数据配置的合法性 |
| | | validate(err) { |
| | | console.log('condition children', this.config.children) |
| | | console.log('this.level', this.level) |
| | | console.log('this.size', this.size) |
| | | |
| | | if (!(this.level == this.size && this.size != 0) && !this.config.children?.id) { |
| | | this.showError = true |
| | | this.errorInfo = '条件分支后不能为空' |