mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
refactor: 优化外部参数过滤组件筛选规则 (#17768)
This commit is contained in:
@@ -130,6 +130,7 @@
|
||||
style="width: 100%"
|
||||
:placeholder="t('v_query.select_query_condition')"
|
||||
clearable
|
||||
@change="matchModeChange(baseFilter)"
|
||||
>
|
||||
<el-option
|
||||
:label="t('visualization.outer_params_type_self')"
|
||||
@@ -155,6 +156,11 @@
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
:disabled="
|
||||
baseFilter.matchMode === 'filter'
|
||||
? !['0', '9', '2'].includes(item.displayType + '')
|
||||
: false
|
||||
"
|
||||
>
|
||||
<span style="font-size: 12px"> {{ item.name }}</span>
|
||||
</el-option>
|
||||
@@ -465,6 +471,15 @@ const state = reactive({
|
||||
}
|
||||
})
|
||||
|
||||
const matchModeChange = baseFilter => {
|
||||
if (
|
||||
baseFilter.matchMode === 'filter' &&
|
||||
!['0', '9', '2'].includes(baseFilter.filterSelected + '')
|
||||
) {
|
||||
baseFilter.filterSelected = undefined
|
||||
}
|
||||
}
|
||||
|
||||
const argRefs = ref({})
|
||||
|
||||
const setArgRef = (el, id) => {
|
||||
|
||||
Reference in New Issue
Block a user