|
@@ -301,7 +301,10 @@ export default {
|
|
|
_initData() {
|
|
|
this.form = { ...this.data };
|
|
|
const { maxValue, minValue, unit } = this.form;
|
|
|
- this.form.name = `${this.form.name}(${this.form.conditionLabel})`;
|
|
|
+ // console.log(this.form, 'this.form');
|
|
|
+ this.form.name = this.form.conditionLabel
|
|
|
+ ? `${this.form.name}(${this.form.conditionLabel})`
|
|
|
+ : '';
|
|
|
// console.log(maxValue, 'maxValue', minValue, 'minValue');
|
|
|
if (minValue === null && maxValue === null) {
|
|
|
this.ruleForm.ruleForm = [
|
|
@@ -353,7 +356,10 @@ export default {
|
|
|
changeWord(val) {
|
|
|
if (val === '') return;
|
|
|
let condition = this.conditionList.find(item => item.id == val);
|
|
|
- this.form.name = `${condition.name}(${condition.conditionLabel})`;
|
|
|
+ // console.log(condition, 'condition');
|
|
|
+ this.form.name = condition.conditionLabel
|
|
|
+ ? `${condition.name}(${condition.conditionLabel})`
|
|
|
+ : '';
|
|
|
this.$emit('split', condition);
|
|
|
},
|
|
|
handleClear(index) {
|