@@ -128,12 +128,14 @@ export const widgetClickJumpAction =
128128 params . componentType === 'table' &&
129129 jumpFieldName !== params . seriesName
130130 ) {
131- console . log ( '__ jumpFieldName !== params.seriesName' ) ;
132131 return ;
133132 }
134133 const rowDataValue = getValueByRowData ( params . data , jumpFieldName ) ;
135- // jump url
134+ console . warn ( ' jumpValue:' , rowDataValue ) ;
135+ console . warn ( 'rowData' , params . data ?. rowData ) ;
136+ console . warn ( `rowData[${ jumpFieldName } ]:${ rowDataValue } ` ) ;
136137 if ( targetType === 'URL' ) {
138+ // jump url
137139 let jumpUrl ;
138140 if ( URL . indexOf ( '?' ) > - 1 ) {
139141 jumpUrl = `${ URL } &${ queryName } =${ rowDataValue } ` ;
@@ -186,18 +188,26 @@ export const widgetClickLinkageAction =
186188 return true ;
187189 } ) ;
188190
189- const boardFilters = linkRelations . map ( re => {
190- let linkageFieldName : string =
191- re ?. config ?. widgetToWidget ?. triggerColumn || '' ;
192-
193- const filter : BoardLinkFilter = {
194- triggerWidgetId : widget . id ,
195- triggerValue : getValueByRowData ( params . data , linkageFieldName ) ,
196- triggerDataChartId : widget . datachartId ,
197- linkerWidgetId : re . targetId ,
198- } ;
199- return filter ;
200- } ) ;
191+ const boardFilters = linkRelations
192+ . map ( re => {
193+ let linkageFieldName : string =
194+ re ?. config ?. widgetToWidget ?. triggerColumn || '' ;
195+ const linkValue = getValueByRowData ( params . data , linkageFieldName ) ;
196+ if ( ! linkValue ) {
197+ console . warn ( 'linkageFieldName:' , linkageFieldName ) ;
198+ console . warn ( 'rowData' , params . data ?. rowData ) ;
199+ console . warn ( `rowData[${ linkageFieldName } ]:${ linkValue } ` ) ;
200+ return undefined ;
201+ }
202+ const filter : BoardLinkFilter = {
203+ triggerWidgetId : widget . id ,
204+ triggerValue : linkValue ,
205+ triggerDataChartId : widget . datachartId ,
206+ linkerWidgetId : re . targetId ,
207+ } ;
208+ return filter ;
209+ } )
210+ . filter ( item => ! ! item ) as BoardLinkFilter [ ] ;
201211
202212 if ( editing ) {
203213 dispatch (
0 commit comments