Browse Source

Merge pull request #3242 in DEC/decision-webui-dcm from release/11.0 to final/11.0

* commit 'b72f1bfcabeeee9206b4ddb330a17d02c6fc99dc':
  REPORT-60284 fix: 将平台前端数据连接编码的 【自动】 改成 【默认】
  REPORT-60284 fix: 将平台前端数据连接编码的 【自动】 改成 【默认】
  DEC-20400 feat: 【BI配合】新数据源tidb适配
final/11.0
superman 3 years ago
parent
commit
7e174e6e24
  1. 2
      private/i18n.ts
  2. 13
      src/modules/constants/constant.ts
  3. 2
      src/modules/pages/connection/connection_jdbc/connection_jdbc.ts
  4. 2
      src/modules/pages/connection/connection_jndi/connection_jndi.ts

2
private/i18n.ts

@ -54,7 +54,7 @@ export default {
'Dec-Dcm_Connection_Form_Database_URL': '数据连接URL',
'Dec-Dcm_Connection_Form_Place_Input': '请输入',
'Dec-Dcm_Connection_Form_OriginalCharsetName': '编码',
'Dec-Dcm_Connection_Form_Auto': '自动',
'Dec-Dcm_Connection_Form_Default': '默认',
'Dec-Dcm_Connection_Form_Host': '主机',
'Dec-Dcm_Connection_Form_AuthType': '认证方式',
'Dec-Dcm_Connection_Form_UserName': '用户名',

13
src/modules/constants/constant.ts

@ -550,6 +550,17 @@ export const DATA_BASE_TYPES = [
hasSchema: true,
kerberos: false,
fetchSize: 10000,
}, {
text: 'Tidb',
databaseType: 'tidb',
driver: 'com.mysql.jdbc.Driver',
drivers: ['com.mysql.jdbc.Driver'],
url: 'jdbc:mysql://hostname:port/database',
commonly: false,
internal: true,
type: 'jdbc',
hasSchema: false,
kerberos: false,
}, {
text: 'Presto',
databaseType: 'presto',
@ -653,7 +664,7 @@ export const DATA_BASE_TYPES = [
export const CONNECT_CHARSET = [
{
text: BI.i18nText('Dec-Dcm_Connection_Form_Auto'),
text: BI.i18nText('Dec-Dcm_Connection_Form_Default'),
value: '',
},
{

2
src/modules/pages/connection/connection_jdbc/connection_jdbc.ts

@ -84,7 +84,7 @@ export class ConnectionJdbc extends BI.Widget {
{
type: FormItem.xtype,
name: BI.i18nText('Dec-Dcm_Connection_Form_OriginalCharsetName'),
value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Auto'),
value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Default'),
},
{
type: FormItem.xtype,

2
src/modules/pages/connection/connection_jndi/connection_jndi.ts

@ -92,7 +92,7 @@ export class ConnectionJndi extends BI.Widget {
type: FormItem.xtype,
nameWidth: 200,
name: BI.i18nText('Dec-Dcm_Connection_Form_OriginalCharsetName'),
value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Auto'),
value: originalCharsetName ? originalCharsetName : BI.i18nText('Dec-Dcm_Connection_Form_Default'),
},
{
type: Collapse.xtype,

Loading…
Cancel
Save