|
@@ -357,14 +357,26 @@ export default {
|
|
|
this.$emit('split', condition);
|
|
|
},
|
|
|
handleClear(index) {
|
|
|
- // console.log(this.ruleForm.ruleForm[index]);
|
|
|
// this.ruleForm.ruleForm[index].value = '';
|
|
|
},
|
|
|
handleChangeCom(index) {
|
|
|
let compare = this.ruleForm.ruleForm[index].compare;
|
|
|
-
|
|
|
- console.log(compare);
|
|
|
-
|
|
|
+ if (index === 0 && this.ruleForm.ruleForm.length == 1) {
|
|
|
+ if (compare == '>=') {
|
|
|
+ this.form.maxValue = '';
|
|
|
+ this.$emit('handleInput', {
|
|
|
+ type: 'maxValue',
|
|
|
+ value: this.form.maxValue
|
|
|
+ });
|
|
|
+ } else if (compare == '<=') {
|
|
|
+ this.form.minValue = '';
|
|
|
+ this.$emit('handleInput', {
|
|
|
+ type: 'minValue',
|
|
|
+ value: this.form.minValue
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // console.log(compare);
|
|
|
this.ruleForm.ruleForm[index].value = '';
|
|
|
},
|
|
|
handleUnitClear(index) {
|