Skip to content

Commit c85ccda

Browse files
committed
fix: open jdbc node
1 parent 84be076 commit c85ccda

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

web/src/apps/scriptis/module/workbench/container.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ export default {
456456
const methodName = 'Workbench:add';
457457
const supportModes = this.getSupportModes();
458458
const model = this.node.modelType;
459-
const match = supportModes.find((s) => s.flowType && s.flowType.toLowerCase() == model);
460-
const name = `${this.node.name || this.node.key}${match.ext}`;
459+
const match = supportModes.find((s) => (s.flowType || s.scriptType || '').toLowerCase() == model) || {};
460+
const name = `${this.node.name || this.node.key}${match.ext||''}`;
461461
this[methodName]({
462462
id: this.node.key,
463463
filename: this.node.jobContent && this.node.jobContent.script ? this.node.jobContent.script : name,

web/src/apps/workflows/service/nodeType.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,17 @@ const NODETYPE = {
5555
EXCHANGE: 'linkis.data.exchange',
5656
QUALITIS: 'linkis.appconn.qualitis',
5757
PROJECTNODE: 'projectNode',
58-
MLSS: 'linkis.appconn.mlss'
58+
MLSS: 'linkis.appconn.mlss',
59+
JDBC: 'linkis.jdbc.jdbc',
5960
}
6061
const ext = {
6162
[NODETYPE.SHELL]: 'shell',
6263
[NODETYPE.HQL]: 'hql',
6364
[NODETYPE.SPARKSQL]: 'sql',
6465
[NODETYPE.SPARKPY]: 'pyspark',
6566
[NODETYPE.SCALA]: 'scala',
66-
[NODETYPE.PYTHON]: 'python'
67+
[NODETYPE.PYTHON]: 'python',
68+
[NODETYPE.JDBC]: 'jdbc'
6769
}
6870
const NODEICON = {
6971
[NODETYPE.SHELL]: {

0 commit comments

Comments
 (0)