forked from github/dataease
fix(查询组件): 修复查询条件的选项来源设置为数据集时,数据集字段变更后,查询字段依然使用变更前的 ID,导致无法获取选项的问题
This commit is contained in:
parent
abee264f82
commit
12518eea69
@ -740,11 +740,14 @@ const handleCondition = item => {
|
||||
handleDialogClick()
|
||||
if (activeConditionForRename.id) return
|
||||
activeCondition.value = item.id
|
||||
curComponent.value = conditions.value.find(ele => ele.id === item.id)
|
||||
curComponent.value = cloneDeep(conditions.value.find(ele => ele.id === item.id))
|
||||
curComponent.value.dataset.fields = []
|
||||
|
||||
multiple.value = curComponent.value.multiple
|
||||
if (curComponent.value.dataset.id) {
|
||||
getOptions(curComponent.value.dataset.id, curComponent.value)
|
||||
listFieldsWithPermissions(curComponent.value.dataset.id).then(res => {
|
||||
curComponent.value.dataset.fields = res.data
|
||||
})
|
||||
}
|
||||
datasetFieldList.value.forEach(ele => {
|
||||
if (!curComponent.value.checkedFieldsMap[ele.id]) {
|
||||
|
Loading…
Reference in New Issue
Block a user