|
|
@@ -1,9 +1,18 @@
|
|
|
<template>
|
|
|
<div class="navbar">
|
|
|
<div class="hos-name">
|
|
|
- <img :src="logo" alt="logo">
|
|
|
+ <!-- <img :src="logo" alt="logo"> -->
|
|
|
+ <h1>质量医院</h1>
|
|
|
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
|
- <!-- <span v-if="userData.ocName" class="tag">/{{ userData.ocName }}</span> -->
|
|
|
+ <span v-if="userData.ocName" class="tag">{{ userData.ocName }}</span>
|
|
|
+ <countdown v-if="userData.licExpiredTime" :end-time="userData.licExpiredTime">
|
|
|
+ <div
|
|
|
+ slot="process"
|
|
|
+ slot-scope="{ timeObj }"
|
|
|
+ class="tag authorization"
|
|
|
+ >(授权时长:{{ `${timeObj.d}天${timeObj.h}:${timeObj.m}:${timeObj.s}` }})</div>
|
|
|
+ <div slot="finish" class="tag authorization error">(请续费使用)</div>
|
|
|
+ </countdown>
|
|
|
</div>
|
|
|
<!-- 隐藏标签 -->
|
|
|
<breadcrumb v-if="0" id="breadcrumb-container" class="breadcrumb-container" />
|
|
|
@@ -129,8 +138,8 @@ export default {
|
|
|
},
|
|
|
initsideTab() {
|
|
|
let index = 0
|
|
|
- if (this.isNotNull(localStorage.getItem('tabIndex'))) {
|
|
|
- index = parseFloat(localStorage.getItem('tabIndex'))
|
|
|
+ if (this.isNotNull(localStorage.getItem('qhpt_tabIndex'))) {
|
|
|
+ index = parseFloat(localStorage.getItem('qhpt_tabIndex'))
|
|
|
}
|
|
|
this.sideTabChange(index, {
|
|
|
path: this.$route.fullPath
|
|
|
@@ -143,8 +152,7 @@ export default {
|
|
|
this.$emit('initMessage')
|
|
|
},
|
|
|
async logout() {
|
|
|
- localStorage.clear('permission_routes') // 垃圾数据清除
|
|
|
- localStorage.clear('tabIndex')
|
|
|
+ localStorage.clear() // 垃圾数据清除
|
|
|
await this.$store.dispatch('user/logout')
|
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
|
},
|
|
|
@@ -153,11 +161,11 @@ export default {
|
|
|
this.$router.replace({
|
|
|
path: item.path
|
|
|
})
|
|
|
- localStorage.setItem('tabIndex', index)
|
|
|
- var permission_routes = localStorage.getItem('permission_routes')
|
|
|
+ localStorage.setItem('qhpt_tabIndex', index)
|
|
|
+ var permission_routes = localStorage.getItem('qhpt_permission_routes')
|
|
|
if (permission_routes) { permission_routes = JSON.parse(permission_routes) } else {
|
|
|
permission_routes = this.permission_routes
|
|
|
- localStorage.setItem('permission_routes', JSON.stringify(permission_routes))
|
|
|
+ localStorage.setItem('qhpt_permission_routes', JSON.stringify(permission_routes))
|
|
|
}
|
|
|
// 获取权限路由,根据groupId进行过滤
|
|
|
const filterRoutes = permission_routes.filter((item) => {
|
|
|
@@ -205,10 +213,16 @@ export default {
|
|
|
}
|
|
|
.tag{
|
|
|
font-size: 16px;
|
|
|
- line-height: 16px;
|
|
|
+ line-height: 1;
|
|
|
font-weight: 600;
|
|
|
- padding-left: 10px;
|
|
|
- margin-top: 10px;
|
|
|
+ padding-left: 5px;
|
|
|
+ margin-top: 15px;
|
|
|
+ &.authorization{
|
|
|
+ font-size: 12px;
|
|
|
+ margin-top: 20px;
|
|
|
+ color: #a33e3e;
|
|
|
+ // color: rgba(255, 255, 255, 0.7);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.hamburger-container {
|