Skip to content

Commit d5ed9b7

Browse files
Merge pull request #559 from demonray/master
Fix JDBC node
2 parents 68ff81c + c85ccda commit d5ed9b7

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"svg-sprite-loader": "5.0.0",
7575
"vue-cli-plugin-mockjs": "0.1.3",
7676
"vue-template-compiler": "2.6.12",
77+
"webpack": "4.46.0",
7778
"webpack-virtual-modules": "0.3.2"
7879
}
7980
}

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]: {

web/vue.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ function resolve(dir) {
107107
module.exports = {
108108
publicPath: './',
109109
outputDir: 'dist/dist',
110+
lintOnSave: process.env.NODE_ENV !== "production", // build无需eslint
111+
productionSourceMap: process.env.NODE_ENV === "dev", // 生产环境无需source map加速构建
110112
chainWebpack: (config) => {
111113
// set svg-sprite-loader
112114
config.module
@@ -168,4 +170,4 @@ module.exports = {
168170
}
169171
}
170172
}
171-
}
173+
}

0 commit comments

Comments
 (0)