@gingkoo/pandora-metabase 0.0.1-alpha.11 → 0.0.1-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-metabase v0.0.1-alpha.
|
|
2
|
+
* @gingkoo/pandora-metabase v0.0.1-alpha.13
|
|
3
3
|
*/
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -2296,7 +2296,8 @@ class SqlVisionStore {
|
|
|
2296
2296
|
alias: '',
|
|
2297
2297
|
datasourceId: '',
|
|
2298
2298
|
datasourceName: '',
|
|
2299
|
-
column: ''
|
|
2299
|
+
column: '',
|
|
2300
|
+
column_id: ''
|
|
2300
2301
|
};
|
|
2301
2302
|
if (index === 1) {
|
|
2302
2303
|
table1 = {
|
|
@@ -2305,7 +2306,8 @@ class SqlVisionStore {
|
|
|
2305
2306
|
alias: mainTable.table.alias,
|
|
2306
2307
|
datasourceId: mainTable.table.datasourceId,
|
|
2307
2308
|
datasourceName: mainTable.table.datasourceName,
|
|
2308
|
-
column: ''
|
|
2309
|
+
column: '',
|
|
2310
|
+
column_id: ''
|
|
2309
2311
|
};
|
|
2310
2312
|
}
|
|
2311
2313
|
item = {
|
|
@@ -2318,7 +2320,8 @@ class SqlVisionStore {
|
|
|
2318
2320
|
alias: '',
|
|
2319
2321
|
datasourceId: '',
|
|
2320
2322
|
datasourceName: '',
|
|
2321
|
-
column: ''
|
|
2323
|
+
column: '',
|
|
2324
|
+
column_id: ''
|
|
2322
2325
|
},
|
|
2323
2326
|
columns: []
|
|
2324
2327
|
};
|
|
@@ -3215,7 +3218,7 @@ const SelectJoinColumn = ({
|
|
|
3215
3218
|
if (v.alias === tableAlias) {
|
|
3216
3219
|
return {
|
|
3217
3220
|
...v,
|
|
3218
|
-
columns: _data[i]?.columns.filter(v => ~v.name.toLocaleLowerCase().indexOf(val.toLocaleLowerCase())),
|
|
3221
|
+
columns: _data[i]?.columns.filter(v => ~(v.name + (v.name_zh || '')).toLocaleLowerCase().indexOf(val.toLocaleLowerCase())),
|
|
3219
3222
|
searchText: val
|
|
3220
3223
|
};
|
|
3221
3224
|
}
|
|
@@ -4111,7 +4114,7 @@ const SelectTable = ({
|
|
|
4111
4114
|
function onInput(e) {
|
|
4112
4115
|
let val = e.target.value;
|
|
4113
4116
|
let newList = _$3.cloneDeep(originList.slice());
|
|
4114
|
-
setList(newList.filter(v => ~v.name.toLocaleLowerCase().indexOf(val.toLocaleLowerCase())));
|
|
4117
|
+
setList(newList.filter(v => ~(v.name + (v.name_zh || '')).toLocaleLowerCase().indexOf(val.toLocaleLowerCase())));
|
|
4115
4118
|
}
|
|
4116
4119
|
function goPrevPage() {
|
|
4117
4120
|
setVal({
|
|
@@ -4983,10 +4986,12 @@ const JoinData = props => {
|
|
|
4983
4986
|
name,
|
|
4984
4987
|
sql,
|
|
4985
4988
|
datasourceId,
|
|
4986
|
-
datasourceName
|
|
4989
|
+
datasourceName,
|
|
4990
|
+
id = ''
|
|
4987
4991
|
} = record;
|
|
4988
4992
|
let newMeta = store.metaList.slice();
|
|
4989
4993
|
newMeta[index][type].column = name;
|
|
4994
|
+
newMeta[index][type].column_id = id;
|
|
4990
4995
|
if (type === FlagLocation.TABLE_1) {
|
|
4991
4996
|
if (newMeta[index][type].alias !== alias) {
|
|
4992
4997
|
newMeta[index][type].alias = alias;
|