This commit is contained in:
zhutianqi
2021-12-24 10:06:36 +08:00
parent 1d78fdb4a9
commit 9e121c4018
2 changed files with 12 additions and 6 deletions
@@ -2,9 +2,9 @@
<template> <template>
<div class="prc-header-wrap"> <div class="prc-header-wrap">
<div class="process-header"> <div class="process-header">
<span class="process-title"> <span class="process-title van-ellipsis" :title="proName + '(' + proNode + ')'">
<slot name="proName"></slot> <span>{{ proName }}</span>
<a>(<slot name="proNode"></slot>)</a> <span class="smallText">( {{ proNode }})</span>
</span> </span>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
@@ -27,7 +27,9 @@
return { return {
activeName: '', activeName: '',
opacityStyle: {}, opacityStyle: {},
headerFixed: false headerFixed: false,
proName: '',
proNode: '',
} }
}, },
methods: { methods: {
@@ -53,6 +55,8 @@
}, },
watch: {}, watch: {},
mounted () { mounted () {
this.proName = this.$slots.proName[0].text
this.proNode = this.$slots.proNode[0].text
} }
} }
</script> </script>
@@ -65,15 +69,17 @@
.process-header { .process-header {
position: relative; position: relative;
padding-top: 10px; padding-top: 10px;
width: 100%;
} }
.process-title { .process-title {
width: 100%;
margin-left: 10px; margin-left: 10px;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
a { .smallText {
font-size: 14px; font-size: 14px;
margin-left: 5px; margin-left: 5px;
cursor: default; cursor: default;
@@ -492,7 +492,7 @@ export default {
case '2': case '2':
if (row.taskInfo === '责任对接人选择责任人') { if (row.taskInfo === '责任对接人选择责任人') {
this.$router.push({ this.$router.push({
name: 'phoneBzdyStep2', name: 'bzdyStep2',
query: { query: {
taskIds: row.taskIds, taskIds: row.taskIds,
prcId: row.prcId, prcId: row.prcId,