|
@@ -543,6 +543,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'sx_param2')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -581,6 +582,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'sx_param4_condition1')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -594,6 +596,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'sx_param4_condition2')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -736,7 +739,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: calc(100% - 90px)"
|
|
|
- @input="(value) => handleInput(value, index, sIndex, 'rule')"
|
|
|
+ @input="(value) => sItem.categoryType === '字典' && handleInput(value, index, sIndex, 'rule')"
|
|
|
/>
|
|
|
</template>
|
|
|
<!-- 当有三级数据时显示选择按钮 -->
|
|
@@ -906,6 +909,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'pn_param1_BLBH')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -929,6 +933,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'pn_param2')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -970,6 +975,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'pn_param4_condition1')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -984,6 +990,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'pn_param4_condition2')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -1069,6 +1076,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'pn_param6_ct')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -1083,6 +1091,7 @@
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
style="width: 100%;"
|
|
|
+ @input="(value) => handleInput(value, index, sIndex, 'rule_other', 'pn_param6_oct')"
|
|
|
/>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -1591,6 +1600,7 @@ export default {
|
|
|
selectedCategory: null,
|
|
|
currentSource: '',
|
|
|
currentInputSource: '', // 添加输入来源标识
|
|
|
+ currentFieldsName: '',
|
|
|
knowledgeDialogVisible: false,
|
|
|
knowledgeList: [],
|
|
|
currentInputIndex: null,
|
|
@@ -2411,12 +2421,13 @@ export default {
|
|
|
const childObj = parentObj.child.find(child => child.field === childField)
|
|
|
return childObj ? childObj.field_name : ''
|
|
|
},
|
|
|
- handleInput(value, ruleIndex, index, source = 'custom_basis') {
|
|
|
+ handleInput(value, ruleIndex, index, source = 'custom_basis', fieldsName) {
|
|
|
if (value && value.endsWith('@')) {
|
|
|
this.currentInputIndex = index
|
|
|
this.currentRuleIndexForKnowledge = ruleIndex
|
|
|
this.currentInputSource = source
|
|
|
this.knowledgeDialogVisible = true
|
|
|
+ this.currentFieldsName = fieldsName
|
|
|
this.getKnowledgeList()
|
|
|
}
|
|
|
},
|
|
@@ -2434,6 +2445,12 @@ export default {
|
|
|
if (condition) {
|
|
|
condition.param2 = condition.param2.replace(/@.*$/, item.name)
|
|
|
}
|
|
|
+ } else if (this.currentInputSource === 'rule_other') {
|
|
|
+ const condition = this.ruleForm.rule[this.currentRuleIndexForKnowledge].condition_content[this.currentInputIndex]
|
|
|
+ if (condition) {
|
|
|
+ // condition[this.currentFieldsName] = condition[this.currentFieldsName].replace(/@.*$/, item.name)
|
|
|
+ condition[this.currentFieldsName] = `@${item.name}`
|
|
|
+ }
|
|
|
} else {
|
|
|
const basis = this.ruleForm.rule[this.currentRuleIndexForKnowledge].custom_basis[this.currentInputIndex]
|
|
|
if (basis) {
|