refactor(仪表板、数据大屏): 嵌入式参数传参优化

This commit is contained in:
wangjiahao 2024-11-06 14:21:36 +08:00
parent 67f0e5ff86
commit 2fac0038c0

View File

@ -1108,11 +1108,8 @@ export const dvMainStore = defineStore('dataVisualization', {
const targetInfoArray = targetInfo.split('#')
const targetViewId = targetInfoArray[0] // 目标图表
// DE_EMPTY 为清空条件标志
if (
element.component === 'UserView' &&
element.id === targetViewId &&
'DE_EMPTY' !== paramValueStr
) {
if (element.component === 'UserView' && element.id === targetViewId) {
if ('DE_EMPTY' !== paramValueStr) {
// 如果目标图表 当前循环组件id相等 则进行条件增减
const targetFieldId = targetInfoArray[1] // 目标图表列ID
const condition = {
@ -1131,7 +1128,9 @@ export const dvMainStore = defineStore('dataVisualization', {
}
// 不存在该条件 条件有效 直接保存该条件
// !filterExist && vValid && currentFilters.push(condition)
currentFilters.push(condition)
}
preActiveComponentIds.push(element.id)
}
if (element.component === 'VQuery') {