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
|
curComponent.value.multiple = val
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const changeMultiple = val => {
|
||||||
|
multiple.value = val
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
multipleChange,
|
multipleChange,
|
||||||
handleDialogClick
|
handleDialogClick,
|
||||||
|
changeMultiple
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user