This is an automated email from the ASF dual-hosted git repository.
chenxingchun pushed a commit to branch dev-resource-tree
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev-resource-tree by this push:
new 5b7bf61 Change parameters
new fc8e23e Merge pull request #2284 from break60/dev-resource-tree
5b7bf61 is described below
commit 5b7bf61c01f83cbc24af8224628c6efda9191681
Author: break60 <[email protected]>
AuthorDate: Mon Mar 23 17:42:18 2020 +0800
Change parameters
---
.../pages/resource/pages/udf/pages/function/_source/createUdf.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
index ec4e091..1408c55 100644
---
a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
+++
b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
@@ -201,7 +201,7 @@
},
// selTree
selTree(node) {
- this.$refs.assignment.receivedValue(node.pid,node.name)
+ this.$refs.assignment.receivedValue(node.id,node.fullName)
},
/**
* get udf resources
@@ -225,8 +225,8 @@
// filterEmptyDirectory
filterEmptyDirectory(array) {
for (const item of array) {
- if (item.children.length>0) {
- this.filterJarFile(item.children)
+ if (item.children) {
+ this.filterEmptyDirectory(item.children)
}
}
return array.filter(n => ((/\.jar$/.test(n.name) &&
n.children.length==0) || (!/\.jar$/.test(n.name) && n.children.length>0)))