From bb19830cb32c3950172094d69078291c42dc006a Mon Sep 17 00:00:00 2001 From: zhuxt2015 <594754793@qq.com> Date: Fri, 1 Jul 2022 11:30:01 +0800 Subject: [PATCH] fix (#10678) --- .../api/service/impl/ProcessDefinitionServiceImpl.java | 1 + .../projects/workflow/definition/components/table-action.tsx | 1 - .../src/views/projects/workflow/definition/use-table.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java index 721dffa24b..e95a62aadc 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java @@ -1755,6 +1755,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro final Date date = new Date(); processDefinition.setCreateTime(date); processDefinition.setUpdateTime(date); + processDefinition.setReleaseState(ReleaseState.OFFLINE); if (StringUtils.isNotBlank(processDefinition.getLocations())) { ArrayNode jsonNodes = JSONUtils.parseArray(processDefinition.getLocations()); for (int i = 0; i < jsonNodes.size(); i++) { diff --git a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx index 7dc7550933..6ad3d488e8 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx +++ b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx @@ -212,7 +212,6 @@ export default defineComponent({ type='info' tag='div' circle - disabled={releaseState === 'ONLINE'} onClick={this.handleCopyWorkflow} > diff --git a/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts b/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts index 3bc68ba546..227c0a8f6e 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts +++ b/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts @@ -70,7 +70,6 @@ export function useTable() { variables.columns = [ { type: 'selection', - disabled: (row) => row.releaseState === 'ONLINE', className: 'btn-selected', ...COLUMN_WIDTH_CONFIG['selection'] },