Skip to content

Commit 862bf0e

Browse files
zwx-masterpeacewong
authored andcommitted
sql and pyspark associate script
1 parent a611e12 commit 862bf0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/js/module/process/component/associateScript.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import { isEmpty, cloneDeep } from 'lodash';
3939
import storage from '@/js/helper/storage';
4040
import directoryDialog from '@js/component/directoryDialog/index.vue';
41-
41+
import { ext } from '@/js/service/nodeType';
4242
export default {
4343
components: {
4444
directoryDialog,
@@ -82,8 +82,8 @@ export default {
8282
this.setFileTree();
8383
});
8484
this.filterNode = (node) => {
85-
const type = this.nodeData.type.slice(this.nodeData.type.lastIndexOf('.') + 1, this.nodeData.type.length);
86-
const match = this.supportModes.find((item) => item.rule.test(node.label) && item.flowType === type);
85+
const model = ext[this.nodeData.type];
86+
const match = this.supportModes.find((item) => item.rule.test(node.label) && item.flowType === model);
8787
return !node.isLeaf || (node.isLeaf && match);
8888
};
8989
},

0 commit comments

Comments
 (0)