You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/19 11:44:27 UTC

[dolphinscheduler] branch dev updated: [Fix-9015][UI Next][V1.0.0-Alpha] Worked out this issue about failing to assign another project to an existing task group. (#9017)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 48dc0a0  [Fix-9015][UI Next][V1.0.0-Alpha] Worked out this issue about failing to assign another project to an existing task group. (#9017)
48dc0a0 is described below

commit 48dc0a059cbe0335d13afb18b4f9e4a8a06c2fb1
Author: calvin <ji...@163.com>
AuthorDate: Sat Mar 19 19:44:18 2022 +0800

    [Fix-9015][UI Next][V1.0.0-Alpha] Worked out this issue about failing to assign another project to an existing task group. (#9017)
---
 .../task-group/option/components/form-modal.tsx       | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx b/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
index fe1f041..011a366 100644
--- a/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
+++ b/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
@@ -115,18 +115,21 @@ const FormModal = defineComponent({
               placeholder={t('resource.task_group_option.please_enter_name')}
             />
           </NFormItem>
-          <NFormItem
-            label={t('resource.task_group_option.project_name')}
-            path='projectCode'
-          >
-            <NSelect
+          { this.status === 0 && (
+              <NFormItem
+              label={t('resource.task_group_option.project_name')}
+              path='projectCode'
+              >
+              <NSelect
               options={projectOptions}
               v-model:value={this.formData.projectCode}
               placeholder={t(
-                'resource.task_group_option.please_select_project'
+              'resource.task_group_option.please_select_project'
               )}
-            />
-          </NFormItem>
+              />
+              </NFormItem>
+            )
+          }
           <NFormItem
             label={t('resource.task_group_option.resource_pool_size')}
             path='groupSize'