forked from github/dataease
Merge pull request #10715 from dataease/pr@dev-v2_st
fix(查询组件): 过滤条件使用不同数据集的数值类型的字段,在设置级联时无法获取被级联字段
This commit is contained in:
commit
10a2324c1f
@ -209,8 +209,8 @@ defineExpose({
|
||||
<el-icon style="font-size: 16px">
|
||||
<Icon name="icon_info_colorful"></Icon>
|
||||
</el-icon>
|
||||
基于当前查询组件的查询条件,如果需要进行及联配置,需要满足以下条件:<br />
|
||||
1、展示类型为:文本下拉组件和数字下拉组件;2、选项值来源为:选择数据集<br />
|
||||
基于当前查询组件的查询条件,如果需要进行级联联配置,需要满足以下条件:<br />
|
||||
1. 展示类型:文本下拉组件和数字下拉组件;2. 选项值来源:选择数据集<br />
|
||||
</div>
|
||||
<el-button text @click="addCascadeBlock">
|
||||
<template #icon>
|
||||
|
@ -538,7 +538,9 @@ const openCascadeDialog = () => {
|
||||
name: next.name,
|
||||
queryId: next.id,
|
||||
fieldId: next.field.id,
|
||||
deType: next.field.deType
|
||||
deType: datasetMap[next.dataset.id].fields?.dimensionList.find(
|
||||
ele => ele.id === next.field.id
|
||||
)?.deType
|
||||
}
|
||||
return pre
|
||||
}, {})
|
||||
@ -765,7 +767,6 @@ const cancelValueSource = () => {
|
||||
valueSource.value = cloneDeep(curComponent.value.valueSource)
|
||||
if (!valueSource.value.length) {
|
||||
valueSource.value.push('')
|
||||
valueSource.value.push('')
|
||||
}
|
||||
manual.value.hide()
|
||||
}
|
||||
|
@ -417,6 +417,7 @@ watch(
|
||||
watch(
|
||||
() => config.value.optionValueSource,
|
||||
(valNew, newOld) => {
|
||||
if (!props.isConfig) return
|
||||
if ([valNew, newOld].includes(2)) {
|
||||
selectValue.value = Array.isArray(selectValue.value) ? [] : undefined
|
||||
config.value.selectValue = cloneDeep(selectValue.value)
|
||||
|
Loading…
Reference in New Issue
Block a user