Browse Source

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

* commit 'a57cf001bdbc9c6d3ee5ba5306d0360b5ec69f04':
  BI-144496 fix: 数据连接增加埋点
  getJdyDataLinkAppList
release/11.0
superman 9 months ago
parent
commit
3aee05d032
  1. 2
      src/modules/app.provider.ts
  2. 1
      src/modules/app.ts
  3. 24
      src/modules/pages/__point__/connect.point.ts

2
src/modules/app.provider.ts

@ -172,6 +172,6 @@ BI.provider('dec.connection.provider.datebase', function () {
} }
return this.resolves[type] || jdbcResolve return this.resolves[type] || jdbcResolve
}, },
customDatabaseType: filterPluginDataTypeByPriority(), customDatabaseType: BI.Constants.getConstant(CONSTANT_PLUGIN_TYPES),
}); });
}); });

1
src/modules/app.ts

@ -10,6 +10,7 @@ import { ConnectionPool } from './pages/connection_pool/connection_pool';
import { TimeOutSetting } from './pages/setting/setting'; import { TimeOutSetting } from './pages/setting/setting';
import './app.provider'; import './app.provider';
import '../less/index.less'; import '../less/index.less';
import "./pages/__point__/connect.point";
@shortcut() @shortcut()
@store(AppModel) @store(AppModel)

24
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,
},
});
});
Loading…
Cancel
Save