From 460f6b9ada7cfbd7683a333b4dcb529140592660 Mon Sep 17 00:00:00 2001 From: elsiosanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Fri, 28 Feb 2020 02:18:20 -0400 Subject: [PATCH] Support in the style of Workflow Status Bar (#375) * Support in the style of Workflow Status Bar * add style to .el-step_arrow * change in the style * unnecessary request --- src/components/ADempiere/Panel/index.vue | 10 +++--- .../ADempiere/WorkflowStatusBar/index.vue | 32 +++++++++++++++++-- src/views/ADempiere/Window/index.vue | 23 +++++++++---- 3 files changed, 52 insertions(+), 13 deletions(-) diff --git a/src/components/ADempiere/Panel/index.vue b/src/components/ADempiere/Panel/index.vue index 00e13358..ec511768 100644 --- a/src/components/ADempiere/Panel/index.vue +++ b/src/components/ADempiere/Panel/index.vue @@ -615,10 +615,12 @@ export default { return groupsList }, setTagsViewTitle(actionValue) { - this.$store.dispatch('listDocumentStatus', { - recordUuid: this.$route.query.action, - recordId: this.$route.params.recordId - }) + if (!this.isEmptyValue(this.$route.params.recordId)) { + this.$store.dispatch('listDocumentStatus', { + recordUuid: this.$route.query.action, + recordId: this.$route.params.recordId + }) + } if (actionValue === 'create-new' || this.isEmptyValue(actionValue)) { this.tagTitle.action = this.$t('tagsView.newRecord') } else if (actionValue === 'advancedQuery') { diff --git a/src/components/ADempiere/WorkflowStatusBar/index.vue b/src/components/ADempiere/WorkflowStatusBar/index.vue index d038c022..1f71fe7d 100644 --- a/src/components/ADempiere/WorkflowStatusBar/index.vue +++ b/src/components/ADempiere/WorkflowStatusBar/index.vue @@ -38,7 +38,7 @@

{{ getValue.description }}

{{ descriptionDocumentActions }}

- {{ node.name }} + {{ node.name }} {{ node.name }} @@ -226,6 +226,21 @@ export default { align-items: center; width: 50%; } + .el-step.is-simple .el-step__arrow { + -webkit-box-flex: 1; + -ms-flex-positive: 1; + /* flex-grow: 1; */ + display: flex; + display: -ms-flexbox; + margin-top: -9px !important; + /* margin-bottom: -7px; */ + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + } .el-step.is-simple .el-step__main { position: relative; display: -webkit-box; @@ -242,8 +257,21 @@ export default { } .title { color: #000000; - text-size-adjust: 20px; + text-size-adjust: 14px; font-size: 100%; font-weight: 605!important; } + .el-step.is-simple .el-step__title { + font-size: 14px; + line-height: 20px; + } + .el-step.is-simple:last-of-type .el-step__arrow { + display: flex; + } + .el-step.is-simple .el-step__head { + width: auto; + font-size: 0; + padding-right: 10px; + margin-bottom: -5px !important; + } diff --git a/src/views/ADempiere/Window/index.vue b/src/views/ADempiere/Window/index.vue index 51630d03..42204397 100644 --- a/src/views/ADempiere/Window/index.vue +++ b/src/views/ADempiere/Window/index.vue @@ -58,15 +58,17 @@ - + - + + +