forked from github/dataease
Merge pull request #10603 from dataease/pr@dev-v2_st
fix(查询组件): 其中一个查询条件的选项类型修改为多选时,其余查询条件的选项类型也显示为多选
This commit is contained in:
commit
b6d6143c4e
@ -208,9 +208,14 @@ const multipleChange = (val: boolean, isMultipleChange = false) => {
|
||||
curComponent.value.multiple = val
|
||||
}
|
||||
|
||||
const changeMultiple = val => {
|
||||
multiple.value = val
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
multipleChange,
|
||||
handleDialogClick
|
||||
handleDialogClick,
|
||||
changeMultiple
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -378,11 +378,6 @@ const multipleChange = (val: boolean, isMultipleChange = false) => {
|
||||
: defaultValue
|
||||
}
|
||||
|
||||
if (curComponent.value.field.deType === 1) {
|
||||
curComponent.value.multiple = val
|
||||
return
|
||||
}
|
||||
|
||||
curComponent.value.multiple = val
|
||||
}
|
||||
|
||||
@ -886,8 +881,9 @@ const handleCondition = item => {
|
||||
activeCondition.value = item.id
|
||||
curComponent.value = conditions.value.find(ele => ele.id === item.id)
|
||||
curComponent.value.dataset.fields = []
|
||||
|
||||
multiple.value = curComponent.value.multiple
|
||||
nextTick(() => {
|
||||
defaultConfigurationRef.value.changeMultiple(curComponent.value.multiple)
|
||||
})
|
||||
if (curComponent.value.dataset.id) {
|
||||
listFieldsWithPermissions(curComponent.value.dataset.id).then(res => {
|
||||
curComponent.value.dataset.fields = res.data
|
||||
|
Loading…
Reference in New Issue
Block a user