@@ -5,7 +5,7 @@
<div class="mianscroll" ref="mianscroll">
<div class="__tabs">
<div class="__tab-item" v-for="item in openedPageRouters" :class="{'__is-active': item.fullPath == $route.fullPath,}" :key="item.fullPath" @click="onClick($event,item)" @contextmenu.prevent="showContextMenu($event, item)">
- {{ item.meta.title }}
+ {{ item.meta.title }} <span v-if="item.meta.xm">- {{ item.meta.xm }}</span>
<span class="el-icon-close" @click.stop="onClose(item)" @contextmenu.prevent.stop="" :style="openedPageRouters.length <= 1 ? 'width:0;' : ''"></span>
</div>
@@ -381,6 +381,7 @@ export const constantRoutes = [
component: () => import('@/views/outpatient/control/detail'),
meta: {
title: '门诊病历详情',
+ xm:'',
keepAlive: 0,
canMultipleOpen: true
},
@@ -127,6 +127,7 @@ export default {
getDetails() {
this.$axios.post('/omr_zk/omr_info', { blbh: this.$route.query.blbh }).then(res => {
this.data = res.data;
+ this.$route.meta.xm = res.data.xm;
});
}