File tree Expand file tree Collapse file tree
pages/main/dashboard/chart-item Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ function ChartItem(props: IChartItemProps) {
119119 } ;
120120
121121 const handleExecuteSQL = async ( sql : string , _chartData : IChartItem ) => {
122- const { dataSourceId, databaseName } = _chartData ;
122+ const { dataSourceId, databaseName, schemaName } = _chartData ;
123123 if ( ! isValid ( dataSourceId ) ) {
124124 message . success ( i18n ( 'dashboard.editor.execute.noDataSource' ) ) ;
125125 return ;
@@ -130,6 +130,7 @@ function ChartItem(props: IChartItemProps) {
130130 sql,
131131 dataSourceId,
132132 databaseName,
133+ schemaName
133134 } ;
134135 // 获取当前SQL的查询结果
135136 const sqlResult = await sqlService . executeSql ( executeSQLParams ) ;
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ export interface IChartItem {
4747 type ?: string ;
4848 /** db名称 */
4949 databaseName ?: string ;
50+ /** schema名称 */
51+ schemaName ?: string ;
5052 /** ddl内容 */
5153 ddl ?: string ;
5254 /** 是否链接 */
You can’t perform that action at this time.
0 commit comments