|
@@ -0,0 +1,132 @@
|
|
|
+<template>
|
|
|
+ <div class="header_user_container">
|
|
|
+ <!-- 菜单 -->
|
|
|
+ <el-menu
|
|
|
+ :default-active="'/'"
|
|
|
+ :unique-opened="true"
|
|
|
+ :active-text-color="'#134BEA'"
|
|
|
+ :collapse-transition="false"
|
|
|
+ mode="horizontal"
|
|
|
+ class="header_menu"
|
|
|
+ >
|
|
|
+ <!-- #TODO 目前写死 后面再改 -->
|
|
|
+ <!-- 根据 sidebarRouters 路由,生成菜单 -->
|
|
|
+ <!-- <sidebar-item
|
|
|
+ v-for="(route, index) in sidebarRouters"
|
|
|
+ :key="route.path + index"
|
|
|
+ :item="route"
|
|
|
+ :base-path="route.path"
|
|
|
+ /> -->
|
|
|
+ <el-menu-item index="/">
|
|
|
+ <i class="el-icon-menu"></i>
|
|
|
+ <span slot="title">网络结构图</span>
|
|
|
+ </el-menu-item>
|
|
|
+ <el-menu-item index="2">
|
|
|
+ <i class="el-icon-menu"></i>
|
|
|
+ <span slot="title">SCD可视化</span>
|
|
|
+ </el-menu-item>
|
|
|
+ <el-menu-item index="3">
|
|
|
+ <i class="el-icon-menu"></i>
|
|
|
+ <span slot="title">签入签出</span>
|
|
|
+ </el-menu-item>
|
|
|
+ <el-menu-item index="4">
|
|
|
+ <i class="el-icon-menu"></i>
|
|
|
+ <span slot="title">统计分析</span>
|
|
|
+ </el-menu-item>
|
|
|
+ <el-menu-item index="5">
|
|
|
+ <i class="el-icon-menu"></i>
|
|
|
+ <span slot="title">管理后台</span>
|
|
|
+ </el-menu-item>
|
|
|
+ </el-menu>
|
|
|
+ <div class="header_user_line">|</div>
|
|
|
+ <!-- 时间 -->
|
|
|
+ <div class="time_box">
|
|
|
+ <!-- #TODO 动态获取实时变化 -->
|
|
|
+ <span class="time_day">2023-08-09</span>
|
|
|
+ <span class="time_weekday">星期三</span>
|
|
|
+ <span class="time_date">14:20:22</span>
|
|
|
+ </div>
|
|
|
+ <div class="header_user_line">|</div>
|
|
|
+ <!-- 图标 -->
|
|
|
+ <div class="icon_box">
|
|
|
+ <i class="el-icon-message-solid"></i>
|
|
|
+ <div class="header_user_line">/</div>
|
|
|
+ <i class="el-icon-user-solid"></i>
|
|
|
+ <span>username</span>
|
|
|
+ <div class="header_user_line">/</div>
|
|
|
+ <i class="el-icon-switch-button" style="margin-right:2rem"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {};
|
|
|
+ },
|
|
|
+
|
|
|
+ mounted() {},
|
|
|
+
|
|
|
+ methods: {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.header_user_container {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .time_box {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ cursor: default;
|
|
|
+ font-size: 1.4rem;
|
|
|
+ color: #516380;
|
|
|
+ .time_day {
|
|
|
+ font-family: DS4Font;
|
|
|
+ // width: 8rem;
|
|
|
+ }
|
|
|
+ .time_weekday {
|
|
|
+ margin: 0 1rem;
|
|
|
+ }
|
|
|
+ .time_date {
|
|
|
+ font-family: DS4Font;
|
|
|
+ margin-right: 2rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .icon_box {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ i {
|
|
|
+ font-size: 1.8rem;
|
|
|
+ color: #00cefb;
|
|
|
+ }
|
|
|
+ span{
|
|
|
+ font-size: 1.4rem;
|
|
|
+ color: #516380;
|
|
|
+ }
|
|
|
+ .header_user_line {
|
|
|
+ font-size: 1.33rem;
|
|
|
+ margin: 0 2rem;
|
|
|
+ color: #7A13E1;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.header_menu {
|
|
|
+ height: 48px;
|
|
|
+}
|
|
|
+.header_user_line {
|
|
|
+ font-size: 1.33rem;
|
|
|
+ margin-right: 2rem;
|
|
|
+ color: #7A13E1;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+::v-deep .el-menu-item {
|
|
|
+ height: 48px !important;
|
|
|
+ font-size: 1.33rem;
|
|
|
+ line-height: 48px !important;
|
|
|
+}
|
|
|
+::v-deep .is-active {
|
|
|
+ border-bottom: 4px solid #134bea !important;
|
|
|
+}
|
|
|
+</style>
|