From 3b9a4799efb21ccbd645770e7834c28ca5f2c775 Mon Sep 17 00:00:00 2001 From: hans Date: Tue, 5 Mar 2024 13:56:43 +0800 Subject: [PATCH 1/2] getJdyDataLinkAppList --- src/modules/app.provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/app.provider.ts b/src/modules/app.provider.ts index 18b2a4a..3662b4a 100644 --- a/src/modules/app.provider.ts +++ b/src/modules/app.provider.ts @@ -172,6 +172,6 @@ BI.provider('dec.connection.provider.datebase', function () { } return this.resolves[type] || jdbcResolve }, - customDatabaseType: filterPluginDataTypeByPriority(), + customDatabaseType: BI.Constants.getConstant(CONSTANT_PLUGIN_TYPES), }); }); From 45aeb419b22a8c9caac422c4c0ae3493462816f3 Mon Sep 17 00:00:00 2001 From: "Austin.Duan" Date: Tue, 5 Mar 2024 16:29:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?BI-144496=20fix:=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E5=A2=9E=E5=8A=A0=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/app.ts | 1 + src/modules/pages/__point__/connect.point.ts | 24 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/modules/pages/__point__/connect.point.ts diff --git a/src/modules/app.ts b/src/modules/app.ts index d909040..46cd7b7 100644 --- a/src/modules/app.ts +++ b/src/modules/app.ts @@ -10,6 +10,7 @@ import { ConnectionPool } from './pages/connection_pool/connection_pool'; import { TimeOutSetting } from './pages/setting/setting'; import './app.provider'; import '../less/index.less'; +import "./pages/__point__/connect.point"; @shortcut() @store(AppModel) diff --git a/src/modules/pages/__point__/connect.point.ts b/src/modules/pages/__point__/connect.point.ts new file mode 100644 index 0000000..576f153 --- /dev/null +++ b/src/modules/pages/__point__/connect.point.ts @@ -0,0 +1,24 @@ +BI.point("dec.dcm.model.connection", "createNewConnection", () => { + Dec.Utils.saveFocusPoint({ + id: "E73325", + title: "新建数据连接", + }); +}); + +BI.point("dec.dcm.model.title_maintain", "setTestEvent", () => { + Dec.Utils.saveFocusPoint({ + id: "E73328", + title: "测试数据连接", + }); +}); + +BI.point("dec.dcm.model.maintain_form", "addConnection", function () { + Dec.Utils.saveFocusPoint({ + id: "E8827", + title: "保存数据连接", + body: { + datebaseType: this.model.datebaseTypeSelected, + databaseName: this.model.connectionSelected, + }, + }); +}); \ No newline at end of file