| | |
| | | </script> |
| | | |
| | | <template> |
| | | <div> |
| | | <div id="all"> |
| | | <el-container> |
| | | <el-header > |
| | | <div style="height: 100%;width: 100%;display: flex"> |
| | | <div style="height: 100%;width: 100%;display: flex;background-color: #fff;"> |
| | | <img src="../assets/northGlass.ico" alt="" style="max-width: 100%;max-height: 100%"> |
| | | <h3 style="margin: 1rem ;font-weight: bold;width: 20vw;"> 欢迎{{ user }}使用北玻ERP系统!</h3> |
| | | <h3 style="margin: 1rem ;font-weight: bold;width: 20vw;"> 欢迎{{ user }}使用北玻MES系统!</h3> |
| | | <span style="height: 70%;width: 78vw;margin-top: 1rem;" > |
| | | |
| | | <el-button class="sys-quit" @click="quit" type="info" round> |
| | | <el-button class="sys-quit" @click="quit" round> |
| | | <el-icon size="large"><SwitchButton size=""/></el-icon> |
| | | </el-button> |
| | | </span> |
| | | |
| | | </div> |
| | | </el-header> |
| | | <div id="line"></div> |
| | | <el-container > |
| | | <el-aside width="160px" style="height: 97%; " > |
| | | <!-- <el-menu |
| | | style=" border-radius:0.5rem;border: 0.01rem solid #409EFF;margin-bottom: 0.5rem" |
| | | @open="handleOpen" |
| | | ref="menu" |
| | | active-color="#ffd04b" |
| | | background-color="#409EFF" |
| | | default-active="2" |
| | | text-color="#fff"> |
| | | <el-sub-menu |
| | | |
| | | v-for="items in menuList" |
| | | :index="items.id" |
| | | :key="items.id"> |
| | | <template #title> |
| | | <el-icon v-if="items.id==1"><Grid/></el-icon> |
| | | <el-icon v-if="items.id==2"><Histogram/></el-icon> |
| | | <el-icon v-if="items.id==3"><MessageBox/></el-icon> |
| | | <span style="font-weight: bold;">{{items.menuName}}</span> |
| | | </template> |
| | | <router-link |
| | | v-show="items.id==menuItem.menuID" |
| | | v-for="menuItem in menuItemList" |
| | | :to="{path:menuItem.url}"> |
| | | <el-menu-item > |
| | | {{ menuItem.itemName}} |
| | | </el-menu-item> |
| | | </router-link> |
| | | |
| | | </el-sub-menu> |
| | | </el-menu>--> |
| | | <el-aside width="160px" style="height: 99%; background-color: #fff;" > |
| | | <div class="menu" > |
| | | <div v-for="items in menuList"> |
| | | <div class='menu_title' @click="openMenu(items.id)" >{{items.menuName}}<span class='indicator' >▼</span></div> |
| | | <div v-for="items in menuList"> |
| | | <div class='menu_title' @click="openMenu(items.id)" > |
| | | <!-- <span class='indicator' >⌵</span> --> |
| | | <!-- <span class='indicator' >≡</span> --> |
| | | <!-- <img src="../assets/9.png" alt="" style="max-width: 50%;max-height: 50%;"> --> |
| | | <span>☰</span> |
| | | {{items.menuName}} |
| | | </div> |
| | | <ul class='enter-x-left' v-show="openFlag==items.id"> |
| | | |
| | | <li v-for="menuItem in menuItemList" |
| | |
| | | </template> |
| | | |
| | | <style scoped> |
| | | #all{ |
| | | background-color: #eee; |
| | | height: 100%; |
| | | } |
| | | .el-container{ |
| | | height: 100vh; |
| | | width: 100vw |
| | | width: 99vw |
| | | } |
| | | |
| | | *{ |
| | |
| | | float: right; |
| | | margin-right: 1rem; |
| | | width: 5rem; |
| | | |
| | | } |
| | | /* 横线 */ |
| | | #line{ |
| | | float:right; |
| | | width: 100%; |
| | | height: 1px; |
| | | /* margin-top: 0.5em; */ |
| | | margin-bottom: 0.5em; |
| | | background:#d4c4c4; |
| | | position: relative; |
| | | text-align: center; |
| | | } |
| | | :deep(span){ |
| | | margin-right: 0; |
| | |
| | | width: 99%; |
| | | float: right; |
| | | height: 99%; |
| | | background-color: #fff; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /*------------*/ |
| | | |
| | | |
| | | |
| | | |
| | | .menu div div{ |
| | | /* .menu div div{ |
| | | |
| | | width: 138px; |
| | | height: 35px; |
| | |
| | | border-bottom: 12px ; |
| | | margin-bottom:4px; |
| | | text-align: left; |
| | | cursor: pointer; |
| | | border-radius:8px; |
| | | cursor: pointer; */ |
| | | /* border-radius:8px; */ |
| | | /* outline: none; */ |
| | | |
| | | background-color:#5CADFE; |
| | | box-shadow: 0 8px 16px 0 rgba(0,0,0,0), 0 6px 5px 0 rgba(0,0,0,0.19); |
| | | |
| | | |
| | | |
| | | } |
| | | /* background-color:#5CADFE; */ |
| | | /* box-shadow: 0 8px 16px 0 rgba(0,0,0,0), 0 6px 5px 0 rgba(0,0,0,0.19); */ |
| | | /* } */ |
| | | |
| | | .menu { |
| | | width: 138px; |
| | |
| | | |
| | | height: 28px; |
| | | line-height: 30px; |
| | | background: rgb(128, 128, 128); |
| | | /* background: rgb(128, 128, 128); */ |
| | | color: #000000; |
| | | padding-left: 36px; |
| | | cursor: pointer; |
| | | overflow: hidden; |
| | | text-align: left; |
| | | border-radius:8px; |
| | | /* border-radius:8px; */ |
| | | /* outline: none; */ |
| | | |
| | | background: #5CADFE; |
| | | box-shadow: 0 8px 16px 0 rgba(0,0,0,0), 0 6px 5px 0 rgba(0,0,0,0.19); |
| | | /* background: #5CADFE; */ |
| | | /* box-shadow: 0 8px 16px 0 rgba(0,0,0,0), 0 6px 5px 0 rgba(0,0,0,0.19); */ |
| | | } |
| | | |
| | | ul li:hover { |
| | | background:#5CADFE ; |
| | | /* background:#5CADFE ; */ |
| | | color: #ffffff; |
| | | } |
| | | |
| | |
| | | } |
| | | ul li a:hover { |
| | | |
| | | color: #ffffff; |
| | | color: #1087ff; |
| | | } |
| | | |
| | | .item_divider { |
| | |
| | | width: 138px; |
| | | height: 35px; |
| | | display: block; |
| | | /* text-align: justify; */ |
| | | text-decoration: none; |
| | | color: white; |
| | | font-size: 14px; |
| | |
| | | } |
| | | |
| | | .menu_title { |
| | | width: 138px; |
| | | height: 35px; |
| | | line-height: 35px; |
| | | background: #fafafa; |
| | | color: rgb(128, 128, 128); |
| | | font-size: 16px; |
| | | width: 140px; |
| | | height: 45px; |
| | | line-height: 55px; |
| | | /* background: #fafafa; */ |
| | | color: rgb(43, 42, 42); |
| | | font-size: 17px; |
| | | padding-left: 15px; |
| | | transition: all 0.3s ease; |
| | | cursor: pointer; |
| | |
| | | |
| | | .menu_title:hover { |
| | | /* background: #dedede; */ |
| | | color: #ffffff; |
| | | color: #3b9af9; |
| | | } |
| | | |
| | | .indicator { |
| | | display: block; |
| | | width: 50px; |
| | | width: 40px; |
| | | height: 35px; |
| | | font-weight: bold; |
| | | position: absolute; |
| | |
| | | .enter-x-left:nth-child(4){ |
| | | animation-delay: 0.4s; |
| | | } |
| | | |
| | | |
| | | @keyframes enter-x-left { |
| | | to { |
| | | opacity: 1; |