File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
scriptis/module/workbench Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -456,8 +456,8 @@ export default {
456
456
const methodName = ' Workbench:add' ;
457
457
const supportModes = this .getSupportModes ();
458
458
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 || ' ' } ` ;
461
461
this [methodName]({
462
462
id: this .node .key ,
463
463
filename: this .node .jobContent && this .node .jobContent .script ? this .node .jobContent .script : name,
Original file line number Diff line number Diff line change @@ -55,15 +55,17 @@ const NODETYPE = {
55
55
EXCHANGE : 'linkis.data.exchange' ,
56
56
QUALITIS : 'linkis.appconn.qualitis' ,
57
57
PROJECTNODE : 'projectNode' ,
58
- MLSS : 'linkis.appconn.mlss'
58
+ MLSS : 'linkis.appconn.mlss' ,
59
+ JDBC : 'linkis.jdbc.jdbc' ,
59
60
}
60
61
const ext = {
61
62
[ NODETYPE . SHELL ] : 'shell' ,
62
63
[ NODETYPE . HQL ] : 'hql' ,
63
64
[ NODETYPE . SPARKSQL ] : 'sql' ,
64
65
[ NODETYPE . SPARKPY ] : 'pyspark' ,
65
66
[ NODETYPE . SCALA ] : 'scala' ,
66
- [ NODETYPE . PYTHON ] : 'python'
67
+ [ NODETYPE . PYTHON ] : 'python' ,
68
+ [ NODETYPE . JDBC ] : 'jdbc'
67
69
}
68
70
const NODEICON = {
69
71
[ NODETYPE . SHELL ] : {
You can’t perform that action at this time.
0 commit comments