1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 07:04:21 +08:00

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
This commit is contained in:
elsiosanchez 2020-02-28 02:18:20 -04:00 committed by GitHub
parent da08c71f01
commit 460f6b9ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 13 deletions

View File

@ -615,10 +615,12 @@ export default {
return groupsList return groupsList
}, },
setTagsViewTitle(actionValue) { setTagsViewTitle(actionValue) {
this.$store.dispatch('listDocumentStatus', { if (!this.isEmptyValue(this.$route.params.recordId)) {
recordUuid: this.$route.query.action, this.$store.dispatch('listDocumentStatus', {
recordId: this.$route.params.recordId recordUuid: this.$route.query.action,
}) recordId: this.$route.params.recordId
})
}
if (actionValue === 'create-new' || this.isEmptyValue(actionValue)) { if (actionValue === 'create-new' || this.isEmptyValue(actionValue)) {
this.tagTitle.action = this.$t('tagsView.newRecord') this.tagTitle.action = this.$t('tagsView.newRecord')
} else if (actionValue === 'advancedQuery') { } else if (actionValue === 'advancedQuery') {

View File

@ -38,7 +38,7 @@
</el-tag> </el-tag>
<p v-if="isEmptyValue(descriptionDocumentActions)"> {{ getValue.description }} </p> <p v-if="isEmptyValue(descriptionDocumentActions)"> {{ getValue.description }} </p>
<p v-else> {{ descriptionDocumentActions }} </p> <p v-else> {{ descriptionDocumentActions }} </p>
<el-button slot="reference" type="text" :autofocus="true" class="title"> {{ node.name }} </el-button> <el-link slot="reference" :autofocus="true" :underline="false" class="title"> {{ node.name }} </el-link>
</el-popover> </el-popover>
<span v-else> {{ node.name }} </span> <span v-else> {{ node.name }} </span>
</template> </template>
@ -226,6 +226,21 @@ export default {
align-items: center; align-items: center;
width: 50%; 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 { .el-step.is-simple .el-step__main {
position: relative; position: relative;
display: -webkit-box; display: -webkit-box;
@ -242,8 +257,21 @@ export default {
} }
.title { .title {
color: #000000; color: #000000;
text-size-adjust: 20px; text-size-adjust: 14px;
font-size: 100%; font-size: 100%;
font-weight: 605!important; 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;
}
</style> </style>

View File

@ -58,15 +58,17 @@
<resize-observer @notify="handleResize" /> <resize-observer @notify="handleResize" />
<Split v-shortkey="['f8']" direction="vertical" @onDrag="onDrag" @shortkey.native="handleChangeShowedRecordNavigation(!isShowedRecordNavigation)"> <Split v-shortkey="['f8']" direction="vertical" @onDrag="onDrag" @shortkey.native="handleChangeShowedRecordNavigation(!isShowedRecordNavigation)">
<SplitArea :size="sizeAreaStyle" :style="splitAreaStyle"> <SplitArea :size="sizeAreaStyle" :style="splitAreaStyle">
<el-header style="height: 50px; background: #F5F7FA"> <el-header :style="gettersNodeList ? 'height: 45px; background: #F5F7FA' : 'height: 40px'">
<el-container> <el-container>
<el-aside width="100%" style="width: 78vw;overflow: hidden;"> <el-aside width="100%" style="width: 78vw;overflow: hidden;">
<workflow-status-bar <el-scrollbar>
:style-steps="styleStepsSimple" <workflow-status-bar
:container-uuid="windowMetadata.currentTabUuid" :style-steps="styleStepsSimple"
:parent-uuid="windowUuid" :container-uuid="windowMetadata.currentTabUuid"
:panel-type="panelType" :parent-uuid="windowUuid"
/> :panel-type="panelType"
/>
</el-scrollbar>
</el-aside> </el-aside>
<el-main> <el-main>
<context-menu <context-menu
@ -525,6 +527,13 @@ export default {
} }
}) })
return record return record
},
gettersNodeList() {
var node = this.$store.getters.getNodeWorkflow
if (!this.isEmptyValue(node.workflowsList)) {
return true
}
return false
} }
}, },
watch: { watch: {