diff --git a/frontend/desktop/src/assets/html/index-dev.html b/frontend/desktop/src/assets/html/index-dev.html index 3e11935f93..165d2ee244 100644 --- a/frontend/desktop/src/assets/html/index-dev.html +++ b/frontend/desktop/src/assets/html/index-dev.html @@ -13,6 +13,7 @@ var BK_DOC_URL = '' var FEEDBACK_URL = '' var USERNAME = 'admin'; + var TAM_PROJECT_ID = "" // 用户身份: 管理员 var IS_SUPERUSER = 1; // 用户身份: 职能化 @@ -38,18 +39,27 @@ var APP_CODE = 'bk_sops'; var FILE_UPLOAD_ENTRY = '/package/upload/'; var MAX_NODE_EXECUTE_TIMEOUT = 6000; + var PAAS_MAJOR_VERSION = 2 + var MEMBER_SELECTOR_DATA_HOST = '' + var BK_DOMAIN = '' + var BK_PAAS_ESB_HOST = '' + var TASK_LIST_STATUS_FILTER_DAYS = 180 // 是否开启通知中心 var ENABLE_NOTICE_CENTER = true + // 任务状态版本 + var TASK_STATUS_DISPLAY_VERSION ='v1' function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null; } +
+ diff --git a/frontend/desktop/src/assets/html/index.html b/frontend/desktop/src/assets/html/index.html index dedf5eb2c3..020008c1b8 100644 --- a/frontend/desktop/src/assets/html/index.html +++ b/frontend/desktop/src/assets/html/index.html @@ -55,6 +55,8 @@ // 是否开启通知中心 var ENABLE_NOTICE_CENTER = {{ENABLE_NOTICE_CENTER}} var MESSAGE_HELPER_URL = '{{MESSAGE_HELPER_URL}}' + // 任务状态版本 + var TASK_STATUS_DISPLAY_VERSION ='{{TASK_STATUS_DISPLAY_VERSION}}' function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null; diff --git a/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/Subflow.vue b/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/Subflow.vue index 9695c8aa1c..8a27e15f51 100755 --- a/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/Subflow.vue +++ b/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/Subflow.vue @@ -78,18 +78,21 @@ {{ $t('跳过子流程') }} - - - {{ $t('暂停执行') }} - - - - {{ $t('继续执行') }} - - - - {{ $t('强制终止') }} - + + @@ -113,6 +116,11 @@ } } }, + data () { + return { + taskStatusDisplayVersion: window.TASK_STATUS_DISPLAY_VERSION + } + }, computed: { isOpenTooltip () { if (this.node.mode === 'execute') { diff --git a/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/TaskNode.vue b/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/TaskNode.vue index e83bb858d8..b7cbf8c0d0 100755 --- a/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/TaskNode.vue +++ b/frontend/desktop/src/components/common/TemplateCanvas/NodeTemplate/TaskNode.vue @@ -153,7 +153,7 @@ const { auto_retry_info: autoRetryInfo = {} } = this.node return { h: !!Object.keys(autoRetryInfo).length, - m: autoRetryInfo.m || 0, + m: autoRetryInfo.auto_retry_times || 0, c: autoRetryInfo.max_auto_retry_times || 10 } } diff --git a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeAction/index.vue b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeAction/index.vue index 004f640b1e..0a0c330571 100644 --- a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeAction/index.vue +++ b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeAction/index.vue @@ -7,7 +7,7 @@ @click="onContinueClick"> {{ $t('继续执行') }} -