ViewOption.vue
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
<div class="viewOption">
<div v-if="(activeRoute.path == '/newui_entry_parent/newui_entry_leaf' || activeRoute.path == '/newui_entryIO_parent/newui_entryIO_leaf') && entryEdit.consignmentCode != null && entryEdit.consignmentCode != ''"
class="entryEdit-info">
<span class="info-class">{{ entryEdit.name | entryClass }}</span>
<el-divider direction="vertical"></el-divider>
<span class="info-consignmentCode">{{ $t("system.viewOption.consignmentCode") }} {{ entryEdit.consignmentCode }}</span>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'viewOption',
props: {
activeRoute: {
type: Object,
default: null
}
},
data() {
return {
optionData: {}
}
},
computed: {
...mapGetters([
'entryEdit'
]),
},
}
</script>
<style lang="scss" scoped>
@import "~@/assets/styles/variables.scss";
.viewOption {
width: 100%;
height: 50px;
line-height: 40px;
font-size: .88rem;
padding: 0 24px;
border-bottom: 1px solid $fedexBorder;
background-color: #fff;
z-index: 999;
}
.entryEdit-info {
width: 100%;
height: 50px;
line-height: 40px;
font-size: .88rem;
border-bottom: 1px solid $fedexBorder;
background-color: #fff;
text-align: left;
.info-class {
font-weight: 600;
}
}
</style>