Merge pull request #10603 from dataease/pr@dev-v2_st

fix(查询组件): 其中一个查询条件的选项类型修改为多选时,其余查询条件的选项类型也显示为多选
This commit is contained in:
dataeaseShu 2024-06-28 15:14:14 +08:00 committed by GitHub
commit b6d6143c4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 8 deletions

View File

@ -208,9 +208,14 @@ const multipleChange = (val: boolean, isMultipleChange = false) => {
curComponent.value.multiple = val curComponent.value.multiple = val
} }
const changeMultiple = val => {
multiple.value = val
}
defineExpose({ defineExpose({
multipleChange, multipleChange,
handleDialogClick handleDialogClick,
changeMultiple
}) })
</script> </script>

View File

@ -378,11 +378,6 @@ const multipleChange = (val: boolean, isMultipleChange = false) => {
: defaultValue : defaultValue
} }
if (curComponent.value.field.deType === 1) {
curComponent.value.multiple = val
return
}
curComponent.value.multiple = val curComponent.value.multiple = val
} }
@ -886,8 +881,9 @@ const handleCondition = item => {
activeCondition.value = item.id activeCondition.value = item.id
curComponent.value = conditions.value.find(ele => ele.id === item.id) curComponent.value = conditions.value.find(ele => ele.id === item.id)
curComponent.value.dataset.fields = [] curComponent.value.dataset.fields = []
nextTick(() => {
multiple.value = curComponent.value.multiple defaultConfigurationRef.value.changeMultiple(curComponent.value.multiple)
})
if (curComponent.value.dataset.id) { if (curComponent.value.dataset.id) {
listFieldsWithPermissions(curComponent.value.dataset.id).then(res => { listFieldsWithPermissions(curComponent.value.dataset.id).then(res => {
curComponent.value.dataset.fields = res.data curComponent.value.dataset.fields = res.data