diff --git a/core/frontend/src/store/index.js b/core/frontend/src/store/index.js index a2054d3fb2..28b151f961 100644 --- a/core/frontend/src/store/index.js +++ b/core/frontend/src/store/index.js @@ -472,10 +472,20 @@ const data = { Object.keys(params).forEach(function(sourceInfo) { // 获取外部参数的值 sourceInfo 是外部参数名称 支持数组传入 let paramValue = params[sourceInfo] + let paramValueStr = params[sourceInfo] let operator = 'in' if (paramValue && !Array.isArray(paramValue)) { paramValue = [paramValue] operator = 'eq' + } else if (paramValue && Array.isArray(paramValue)) { + paramValueStr = '' + paramValue.forEach((innerValue, index) => { + if (index === 0) { + paramValueStr = innerValue + } else { + paramValueStr = paramValueStr + ',' + innerValue + } + }) } // 获取所有目标联动信息 const targetInfoList = trackInfo[sourceInfo] || [] @@ -499,7 +509,7 @@ const data = { currentFilters.push(condition) } if (element.type === 'custom' && element.id === targetViewId) { // 过滤组件处理 - element.options.value = paramValue + element.options.value = paramValueStr } }) if (element.type === 'view') { diff --git a/core/frontend/src/views/panel/outerParamsSet/index.vue b/core/frontend/src/views/panel/outerParamsSet/index.vue index 908725201c..fe0bc86c9c 100644 --- a/core/frontend/src/views/panel/outerParamsSet/index.vue +++ b/core/frontend/src/views/panel/outerParamsSet/index.vue @@ -130,7 +130,7 @@
{{ - $t('panel.add_param_link_field') - }} + $t('panel.add_param_link_field') + }} @@ -240,12 +240,12 @@