| | |
| | | align-items: center; |
| | | flex-direction: column; |
| | | padding: 20px 0; |
| | | transition: .3s; |
| | | transition: 0.3s; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | |
| | | |
| | | .right { |
| | | height: calc(100vh - 58px); |
| | | transition: .3s; |
| | | transition: 0.3s; |
| | | } |
| | | |
| | | .tag { |
| | |
| | | } |
| | | |
| | | .tag .el-icon-delete:hover{ |
| | | color: #F56C6C; |
| | | color: #f56c6c; |
| | | } |
| | | |
| | | .tag:hover .el-icon-delete{ |
| | |
| | | <div class="logo"> |
| | | <img src="../../static/img/lg.png" /> |
| | | </div> |
| | | <div class="label">瑞翔新材TMS系统</div> |
| | | <div class="label" id="label">瑞翔新材TMS系统</div> |
| | | <div class="user"> |
| | | <el-avatar :size="24">{{ userName.substring(0, 1) }}</el-avatar> |
| | | <span>{{ userName }}</span> |
| | |
| | | <div class="small_menu"> |
| | | <p v-for="(b, bi) in a.c" :key="bi" :class="activeP == b.k ? 'active_p' : ''" @click="addTab(b)"> |
| | | <i :class="b.i"></i> |
| | | <span>{{ b.v }}</span> |
| | | <span :id="menu+`${b.k}`" >{{ b.v }}</span> |
| | | </p> |
| | | </div> |
| | | </el-popover> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { ref,onMounted } from 'vue' |
| | | const requireComponent = require.context("../components/view", false, /\.vue/); |
| | | var comObj = {}; |
| | | requireComponent.keys().forEach(fileName => { |
| | |
| | | }] |
| | | }, |
| | | { |
| | | k: 2, |
| | | k: 24, |
| | | v: "承运商管理", |
| | | i: "font icon-kuguanfahuo", |
| | | c: [{ |
| | |
| | | }] |
| | | }, |
| | | { |
| | | k: 1, |
| | | k: 25, |
| | | v: "运输管理", |
| | | i: "font icon-yunyingguanli_tieziguanli", |
| | | c: [{ |
| | |
| | | ] |
| | | }, |
| | | { |
| | | k: 3, |
| | | k: 26, |
| | | v: "承运商考核", |
| | | i: "font icon-wodekaohe", |
| | | c: [{ |
| | |
| | | ] |
| | | }, |
| | | { |
| | | k: 4, |
| | | k: 27, |
| | | v: "系统配置", |
| | | i: "el-icon-s-tools", |
| | | c: [{ |
| | |
| | | activeBox: 0, |
| | | activeP: 0, |
| | | tabActive: 0, |
| | | menuIsClick: false, |
| | | tabs: [{ |
| | | k: 0, |
| | | v: "首页", |
| | |
| | | mounted() { |
| | | // this.userName = JSON.parse(localStorage.getItem("user")).name; |
| | | }, |
| | | watch:{ |
| | | menuIsClick(){ |
| | | $("#label").click() |
| | | } |
| | | }, |
| | | methods: { |
| | | menuClick() { |
| | | this.menuIsClick=!this.menuIsClick |
| | | }, |
| | | addTab(ob) { |
| | | this.menuClick() |
| | | if (ob.k == 0) this.activeBox = 0; |
| | | this.activeP = ob.k; //0 |
| | | this.tabActive = ob.k; //0 |