From c7a2f9238fa17851ed79b7c2748f8314155b600e Mon Sep 17 00:00:00 2001 From: Yichao Yang <1048262223@qq.com> Date: Mon, 7 Sep 2020 10:46:26 +0800 Subject: [PATCH] [Improvement-3612][ui] Workflow version control ui optimize (#3622) * [Improvement][ui] Workflow version control ui optimize * Fix the first line in table i = 0 situation * Add word-break:break-all style for description * Remove span and add left text-align --- .../pages/list/_source/versions.vue | 24 ++++++------------- .../src/js/module/i18n/locale/en_US.js | 3 ++- .../src/js/module/i18n/locale/zh_CN.js | 3 ++- 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/versions.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/versions.vue index 1294f4853..fcc341008 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/versions.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/versions.vue @@ -25,13 +25,10 @@ - - - - - @@ -64,7 +58,7 @@ + width="260">

{{$t('Confirm Switch To This Version?')}}

@@ -195,18 +189,14 @@ * Close the switch version layer */ _closeSwitchVersion (i) { - if (i > 0) { - this.$refs[`poptip-switch-version-${i}`][0].doClose() - } + this.$refs[`poptip-switch-version-${i}`][0].doClose() }, /** * Close the delete layer */ _closeDelete (i) { - if (i > 0) { - this.$refs[`poptip-delete-${i}`][0].doClose() - } + this.$refs[`poptip-delete-${i}`][0].doClose() }, /** diff --git a/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js b/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js index b0f315a53..e1ecedc9a 100755 --- a/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js +++ b/dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js @@ -641,5 +641,6 @@ export default { 'Batch copy': 'Batch copy', 'Related items': 'Related items', 'Project name is required': 'Project name is required', - 'Batch move': 'Batch move' + 'Batch move': 'Batch move', + Version: 'Version' } diff --git a/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js b/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js index 53f0e3e48..f69142d3b 100755 --- a/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js +++ b/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js @@ -641,5 +641,6 @@ export default { 'Batch copy': '批量复制', 'Related items': '关联项目', 'Project name is required': '项目名称必填', - 'Batch move': '批量移动' + 'Batch move': '批量移动', + Version: '版本' } -- GitLab
- # + + {{$t('Version')}} - Version - + {{$t('Description')}} @@ -42,9 +39,6 @@
- - - {{item.version}} {{$t('Current Version')}} @@ -52,7 +46,7 @@ - + {{item.description}} -