mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 12:22:10 +08:00
fix(仪表板): 过滤组件默认值不同用户权限下显示错误
This commit is contained in:
@@ -329,6 +329,7 @@ const customSort = () => {
|
||||
}
|
||||
|
||||
const handleFieldIdChange = (val: EnumValue) => {
|
||||
let change = false
|
||||
loading.value = true
|
||||
enumValueObj(val)
|
||||
.then(res => {
|
||||
@@ -369,8 +370,6 @@ const handleFieldIdChange = (val: EnumValue) => {
|
||||
|
||||
const valArr = options.value.map(ele => ele.value)
|
||||
|
||||
let change = false
|
||||
|
||||
if (
|
||||
config.value.multiple &&
|
||||
Array.isArray(selectValue.value) &&
|
||||
@@ -402,6 +401,8 @@ const handleFieldIdChange = (val: EnumValue) => {
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
let changeAuth = change
|
||||
change = false
|
||||
loading.value = false
|
||||
if (disabledFirstItem.value && config.value.defaultValueCheck) {
|
||||
time = setTimeout(() => {
|
||||
@@ -431,7 +432,7 @@ const handleFieldIdChange = (val: EnumValue) => {
|
||||
Array.isArray(selectValue.value) ? [...selectValue.value] : [selectValue.value]
|
||||
)
|
||||
|
||||
if (shouldReSearch) {
|
||||
if (shouldReSearch || changeAuth) {
|
||||
queryDataForId(config.value.id)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user