From ab3fc13e27510d101c11517cc57009ecc1c4344c Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Thu, 17 Sep 2020 11:56:27 +0800 Subject: [PATCH] [fixbug][ui]Remove non-existent or deleted resources disabled --- .../js/conf/home/pages/dag/_source/formModel/tasks/flink.vue | 1 - .../src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue | 2 -- .../js/conf/home/pages/dag/_source/formModel/tasks/python.vue | 1 - .../js/conf/home/pages/dag/_source/formModel/tasks/shell.vue | 1 - .../js/conf/home/pages/dag/_source/formModel/tasks/spark.vue | 1 - 5 files changed, 6 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue index a8ebadb631..dca5adec8b 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue @@ -404,7 +404,6 @@ id: -1, name: $t('No resources exist'), fullName: '/'+$t('No resources exist'), - isDisabled: true, children: [] }] if(optionsCmp.length>0) { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue index c883992fac..f9e67a835b 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue @@ -243,8 +243,6 @@ let noResources = [{ id: -1, name: $t('No resources exist'), - fullName: '/'+$t('No resources exist'), - isDisabled: true, children: [] }] if(optionsCmp.length>0) { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue index f335d50f5e..379de6a0d2 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue @@ -224,7 +224,6 @@ id: -1, name: $t('No resources exist'), fullName: '/'+$t('No resources exist'), - isDisabled: true, children: [] }] if(optionsCmp.length>0) { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue index 4f215f65c2..0c07a9afc1 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue @@ -262,7 +262,6 @@ id: -1, name: $t('No resources exist'), fullName: '/'+$t('No resources exist'), - isDisabled: true, children: [] }] if(optionsCmp.length>0) { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue index fff580a929..b678a72321 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue @@ -364,7 +364,6 @@ id: -1, name: $t('No resources exist'), fullName: '/'+$t('No resources exist'), - isDisabled: true, children: [] }] if(optionsCmp.length>0) {