@@ -43,6 +43,7 @@ interface ITableProps {
4343 className ?: string ;
4444 outerQueryResultData : IManageResultData ;
4545 executeSqlParams : any ;
46+ tableBoxId : string ;
4647}
4748
4849interface IViewTableCellData {
@@ -91,7 +92,7 @@ const defaultPaginationConfig: IResultConfig = {
9192} ;
9293
9394export default function TableBox ( props : ITableProps ) {
94- const { className, outerQueryResultData } = props ;
95+ const { className, outerQueryResultData, tableBoxId } = props ;
9596 const [ viewTableCellData , setViewTableCellData ] = useState < IViewTableCellData | null > ( null ) ;
9697 const [ , contextHolder ] = message . useMessage ( ) ;
9798 const [ paginationConfig , setPaginationConfig ] = useState < IResultConfig > ( defaultPaginationConfig ) ;
@@ -1077,6 +1078,7 @@ export default function TableBox(props: ITableProps) {
10771078 />
10781079 </ div >
10791080 < div className = { classnames ( styles . toolBarItem , styles . refreshBar ) } >
1081+ { /* 刷新 */ }
10801082 < Popover mouseEnterDelay = { 0.8 } content = { i18n ( 'common.button.refresh' ) } trigger = "hover" >
10811083 < div
10821084 onClick = { ( ) => {
@@ -1210,7 +1212,7 @@ export default function TableBox(props: ITableProps) {
12101212
12111213 return (
12121214 < div className = { classnames ( className , styles . tableBox , { [ styles . noDataTableBox ] : ! tableData . length } ) } >
1213- { activeSearchResult . id === queryResultData . uuid && renderContent ( ) }
1215+ { activeSearchResult . id === tableBoxId && renderContent ( ) }
12141216 < Modal
12151217 title = { viewTableCellData ?. name }
12161218 open = { ! ! viewTableCellData ?. name }
0 commit comments