|
@@ -1,9 +1,12 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="navbar">
|
|
<div class="navbar">
|
|
|
<div class="hos-name">
|
|
<div class="hos-name">
|
|
|
- <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
|
|
|
<img :src="logo" alt="logo">
|
|
<img :src="logo" alt="logo">
|
|
|
|
|
+
|
|
|
<span v-if="userData.ocName" class="tag">{{ userData.ocName }}</span>
|
|
<span v-if="userData.ocName" class="tag">{{ userData.ocName }}</span>
|
|
|
|
|
+
|
|
|
|
|
+ <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
|
|
|
+
|
|
|
<countdown v-if="userData.licExpiredTime" :end-time="userData.licExpiredTime">
|
|
<countdown v-if="userData.licExpiredTime" :end-time="userData.licExpiredTime">
|
|
|
<div
|
|
<div
|
|
|
slot="process"
|
|
slot="process"
|
|
@@ -13,8 +16,10 @@
|
|
|
<div slot="finish" class="tag authorization error">(请续费使用)</div>
|
|
<div slot="finish" class="tag authorization error">(请续费使用)</div>
|
|
|
</countdown>
|
|
</countdown>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
<!-- 隐藏标签 -->
|
|
<!-- 隐藏标签 -->
|
|
|
<breadcrumb v-if="0" id="breadcrumb-container" class="breadcrumb-container" />
|
|
<breadcrumb v-if="0" id="breadcrumb-container" class="breadcrumb-container" />
|
|
|
|
|
+
|
|
|
<div class="right-menu">
|
|
<div class="right-menu">
|
|
|
<template v-if="device!=='mobile'">
|
|
<template v-if="device!=='mobile'">
|
|
|
<search v-if="false" id="header-search" class="right-menu-item" />
|
|
<search v-if="false" id="header-search" class="right-menu-item" />
|
|
@@ -28,8 +33,8 @@
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
- <div class="sideMenuTab">
|
|
|
|
|
|
|
|
|
|
|
|
+ <div class="sideMenuTab">
|
|
|
<div
|
|
<div
|
|
|
v-for="(tab,index) in sideMenus"
|
|
v-for="(tab,index) in sideMenus"
|
|
|
:key="'sideMenuTab'+index"
|
|
:key="'sideMenuTab'+index"
|
|
@@ -80,7 +85,9 @@ import Screenfull from '@/components/Screenfull'
|
|
|
import SizeSelect from '@/components/SizeSelect'
|
|
import SizeSelect from '@/components/SizeSelect'
|
|
|
import Search from '@/components/HeaderSearch'
|
|
import Search from '@/components/HeaderSearch'
|
|
|
import { getUnReadCounter } from '@/api/system/msgApi'
|
|
import { getUnReadCounter } from '@/api/system/msgApi'
|
|
|
|
|
+import { isNotNull } from '@/utils'
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ name: 'Navbar',
|
|
|
components: {
|
|
components: {
|
|
|
Breadcrumb,
|
|
Breadcrumb,
|
|
|
Hamburger,
|
|
Hamburger,
|
|
@@ -126,7 +133,7 @@ export default {
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getUnReadMsg()
|
|
this.getUnReadMsg()
|
|
|
this.initSideMenu()
|
|
this.initSideMenu()
|
|
|
- this.initsideTab()
|
|
|
|
|
|
|
+ this.initSideTab()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getUnReadMsg() {
|
|
getUnReadMsg() {
|
|
@@ -140,9 +147,9 @@ export default {
|
|
|
sideMenuTabList = sideMenuTabList.filter(item => permits.includes(item.permit))
|
|
sideMenuTabList = sideMenuTabList.filter(item => permits.includes(item.permit))
|
|
|
this.sideMenus = sideMenuTabList
|
|
this.sideMenus = sideMenuTabList
|
|
|
},
|
|
},
|
|
|
- initsideTab() {
|
|
|
|
|
|
|
+ initSideTab() {
|
|
|
let index = 0
|
|
let index = 0
|
|
|
- if (this.isNotNull(localStorage.getItem('tabIndex'))) {
|
|
|
|
|
|
|
+ if (isNotNull(localStorage.getItem('tabIndex'))) {
|
|
|
index = parseFloat(localStorage.getItem('tabIndex'))
|
|
index = parseFloat(localStorage.getItem('tabIndex'))
|
|
|
}
|
|
}
|
|
|
this.sideTabChange(index, {
|
|
this.sideTabChange(index, {
|
|
@@ -181,10 +188,6 @@ export default {
|
|
|
return item
|
|
return item
|
|
|
})
|
|
})
|
|
|
this.$store.state.permission.routes = filterRoutes
|
|
this.$store.state.permission.routes = filterRoutes
|
|
|
- },
|
|
|
|
|
- isNotNull(value) {
|
|
|
|
|
- if (value !== undefined && value !== 'undefined' && value !== null && value !== '') return true
|
|
|
|
|
- return false
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -207,39 +210,40 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
-.hos-name{
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- float: left;
|
|
|
|
|
- padding-left: 10px;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- // flex: 1;
|
|
|
|
|
- img{
|
|
|
|
|
- display: block;
|
|
|
|
|
- width: auto;
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- }
|
|
|
|
|
- .tag{
|
|
|
|
|
- font-size: 16px;
|
|
|
|
|
- line-height: 1;
|
|
|
|
|
- font-weight: 600;
|
|
|
|
|
- padding-left: 5px;
|
|
|
|
|
- margin-top: 15px;
|
|
|
|
|
- &.authorization{
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- margin-top: 20px;
|
|
|
|
|
- color: #a33e3e;
|
|
|
|
|
- // color: rgba(255, 255, 255, 0.7);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .hos-name{
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ padding-left: 10px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ // flex: 1;
|
|
|
|
|
+ img{
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ width: auto;
|
|
|
|
|
+ height: 26px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .tag{
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ line-height: 1;
|
|
|
|
|
+ font-weight: 300;
|
|
|
|
|
+ padding-left: 15px;
|
|
|
|
|
+ margin-top: 7px;
|
|
|
|
|
+ &.authorization{
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ color: #a33e3e;
|
|
|
|
|
+ // color: rgba(255, 255, 255, 0.7);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
.hamburger-container {
|
|
.hamburger-container {
|
|
|
- padding: 3px 6px;
|
|
|
|
|
|
|
+ padding: 6px 6px;
|
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
|
line-height: var(--navHeight);
|
|
line-height: var(--navHeight);
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- font-size: 16px;
|
|
|
|
|
|
|
+ font-size: 14px;
|
|
|
float: left;
|
|
float: left;
|
|
|
color: rgb(219, 204, 204) !important;
|
|
color: rgb(219, 204, 204) !important;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|