93 lines
1.6 KiB
Vue
93 lines
1.6 KiB
Vue
<!-- 流程信息公共头部 -->
|
|
<template>
|
|
<div>
|
|
<div class="prc-header-wrap">
|
|
<div class="processtitle">
|
|
<span class="back" title="返回" @click="back"><i class="el-icon-back" ></i>
|
|
</span>
|
|
{{title}}</div>
|
|
<div class="processnum" v-if="proceesNum">流程编号:{{proceesNum}}</div>
|
|
</div>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ProcessHeader',
|
|
mixins: [],
|
|
props: {
|
|
// 渲染的名称
|
|
title: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
// 渲染编号
|
|
proceesNum: {
|
|
type: String,
|
|
required: false
|
|
}
|
|
},
|
|
components: {},
|
|
data () {
|
|
return {
|
|
opacityStyle: {},
|
|
headerFixed: false
|
|
}
|
|
},
|
|
methods: {
|
|
back(){
|
|
let index=''
|
|
if(this.$route.query.isDraft){
|
|
index='five'
|
|
}
|
|
if(this.$route.query.type){
|
|
index='second'
|
|
}
|
|
this.$store.commit('setActiveTabIndex',index)
|
|
this.$router.back(-1)
|
|
}
|
|
},
|
|
computed: {
|
|
},
|
|
watch: {},
|
|
mounted () {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.prc-header-wrap{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
border-bottom: 1px dotted #ccc;
|
|
line-height: 40px;
|
|
color: #555;
|
|
|
|
}
|
|
.processtitle{
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
}
|
|
.processnum{
|
|
font-size: 13px;
|
|
}
|
|
.back{
|
|
display: inline-block;
|
|
width: 30px;
|
|
height: 30px;
|
|
background: #1890FF;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
//text-align: center;
|
|
line-height: 30px;
|
|
font-size: 25px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
vertical-align: sub;
|
|
}
|
|
</style>
|