|
@@ -94,7 +94,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="condition-content">
|
|
<div class="condition-content">
|
|
<div class="condition-content-box">
|
|
<div class="condition-content-box">
|
|
- <el-input v-if="condition.type === 'custom'" v-model="condition.label" placeholder="自定义条件字段" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-if="condition.type === 'custom'"
|
|
|
|
+ v-model="condition.label"
|
|
|
|
+ placeholder="自定义条件字段"
|
|
|
|
+ @input="getCurrentItemField(conditionGroupIdx, idx)"
|
|
|
|
+ />
|
|
<el-select
|
|
<el-select
|
|
v-if="condition.type === 'form'"
|
|
v-if="condition.type === 'form'"
|
|
v-model="condition.field"
|
|
v-model="condition.field"
|
|
@@ -292,6 +297,10 @@ export default {
|
|
const field = currentCondition[idx].field
|
|
const field = currentCondition[idx].field
|
|
const labelObj = this.expressionFormList.find(i => i.key === field)
|
|
const labelObj = this.expressionFormList.find(i => i.key === field)
|
|
currentCondition[idx].label = labelObj.label
|
|
currentCondition[idx].label = labelObj.label
|
|
|
|
+ },
|
|
|
|
+ getCurrentItemField(conditionIdx, idx) {
|
|
|
|
+ const currentCondition = this.form.conditionList[conditionIdx]
|
|
|
|
+ currentCondition[idx].field = currentCondition[idx].label
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|