|
|
|
|
@ -1,90 +1,105 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="topmenu" style="display: flex;justify-content: space-between;background-color: #fff; box-shadow: 1px 1px 2px #e8e8e8; position: fixed; top: 0; z-index: 100">
|
|
|
|
|
<div style>
|
|
|
|
|
<div class="logo" style="box-shadow: none; min-width: 160px; max-width: 160px; margin-left: -8px">
|
|
|
|
|
<div @click.stop="clearOpenkey" style="cursor: pointer; border-right: 1px solid #eee;">
|
|
|
|
|
<router-link to="/main">
|
|
|
|
|
<!-- <img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/daotianLogo.svg" alt /> -->
|
|
|
|
|
<svg class="svg_icon f24" aria-hidden="true">
|
|
|
|
|
<use xlink:href="#icon-bocai1" />
|
|
|
|
|
</svg>
|
|
|
|
|
<!-- <router-link :to="{name:'home'}"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/antd/adminLogo.svg" alt=""> -->
|
|
|
|
|
<h1>稻田商家后台</h1>
|
|
|
|
|
<!-- style="position: relative;top: -1px;" -->
|
|
|
|
|
</router-link>
|
|
|
|
|
</div>
|
|
|
|
|
<a-layout id="components-layout-demo-responsive">
|
|
|
|
|
<a-layout-sider :width="pLeft" breakpoint="lg" :collapsedWidth="collapsedWidth" @breakpoint="onBreakpoint" :trigger="collapsed ? 'null' : ''" v-model="collapsed" class="leftMenu ant-layout-sider-has-trigger" style="z-index: 100">
|
|
|
|
|
<div class="logo" style="box-shadow: none;margin-left: -8px">
|
|
|
|
|
<div @click.stop="clearOpenkey" style="cursor: pointer;">
|
|
|
|
|
<router-link to="/main">
|
|
|
|
|
<!-- <img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/daotianLogo.svg" alt /> -->
|
|
|
|
|
<svg class="svg_icon f24" aria-hidden="true" :class="collapsed ? 'ml4' : ''">
|
|
|
|
|
<use xlink:href="#icon-bocai1" />
|
|
|
|
|
</svg>
|
|
|
|
|
<!-- <router-link :to="{name:'home'}"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/antd/adminLogo.svg" alt=""> -->
|
|
|
|
|
<h1 v-if="!collapsed" style>稻田商家后台</h1>
|
|
|
|
|
<!-- style="position: relative;top: -1px;" -->
|
|
|
|
|
</router-link>
|
|
|
|
|
</div>
|
|
|
|
|
<a-menu :selectedKeys="[$route.name]" :openKeys.sync="openKeys" @click="handleClick" class mode="inline" style="overflow-y:scroll;height:calc(100vh - 49px);overflow-x:hidden">
|
|
|
|
|
<template v-for="(item, index) in roles">
|
|
|
|
|
<a-menu-item :key="item.name" v-if="item.path != '' && item.level < 3">
|
|
|
|
|
<router-link :to="{ name: item.name }">
|
|
|
|
|
<i class="iconfont f12 mr8" :class="item.icon" />
|
|
|
|
|
<a-badge dot v-if="myStatisticRedDot && item.name == 'myStatistic'">
|
|
|
|
|
<span class="nav-text" v-text="item.title"></span>
|
|
|
|
|
</a-badge>
|
|
|
|
|
<span v-else class="nav-text" v-text="item.title"></span>
|
|
|
|
|
</router-link>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-sub-menu :key="item.name" v-if="item.path == ''">
|
|
|
|
|
<span slot="title">
|
|
|
|
|
<i class="iconfont f12 mr8" :class="item.icon" />
|
|
|
|
|
<span v-text="item.title"></span>
|
|
|
|
|
</span>
|
|
|
|
|
<a-menu-item-group>
|
|
|
|
|
<a-menu-item class="f14" :key="child.name" v-for="(child, idx) in item.children">
|
|
|
|
|
<!-- <router-link :to="{name:child.name}" :target="child.title == '监控页' ? '_blank' : '_self'"> -->
|
|
|
|
|
<router-link :to="{ name: child.name }">{{ child.title }}</router-link>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
</a-menu-item-group>
|
|
|
|
|
</a-sub-menu>
|
|
|
|
|
</template>
|
|
|
|
|
</a-menu>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex1" style="z-index: 999">
|
|
|
|
|
<div class="logined mr24 fsa" style="height:48px;line-height:48px;">
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<span class="f16 ml16 fw500 c085">{{ currentPage }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<a-dropdown overlayClassName="logindropdown" placement="bottomRight">
|
|
|
|
|
<!-- <img :src="userbaseInfo.imgSrc" alt="" v-if="userbaseInfo.imgSrc !== ''" style="border-radius: 50%" />
|
|
|
|
|
<span v-else><i class="iconfont icon-morentouxiang" style="color:#ff4400"></i></span>-->
|
|
|
|
|
<span class="fsa f14">
|
|
|
|
|
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
|
|
|
|
|
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:32px;height:32px;" alt v-else />
|
|
|
|
|
<div class="ml4">{{ userbaseInfo.userName }}</div>
|
|
|
|
|
|
|
|
|
|
<a-menu :selectedKeys="[$route.name]" :openKeys.sync="openKeys" @click="handleClick" class mode="inline" style="overflow-y:scroll;height:calc(100vh - 49px);overflow-x:hidden">
|
|
|
|
|
<template v-for="(item, index) in roles">
|
|
|
|
|
<a-menu-item :key="item.name" v-if="item.path != '' && item.level < 3">
|
|
|
|
|
<router-link :to="{ name: item.name }">
|
|
|
|
|
<i class="iconfont f12 mr8" :class="item.icon" />
|
|
|
|
|
|
|
|
|
|
<span class="nav-text" v-if="!collapsed" v-text="item.title"></span>
|
|
|
|
|
</router-link>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-sub-menu :key="item.name" v-if="item.path == ''">
|
|
|
|
|
<span slot="title">
|
|
|
|
|
<i class="iconfont f12 mr8" :class="item.icon" />
|
|
|
|
|
<span v-text="item.title" v-if="!collapsed"></span>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="loginbox backTable" slot="overlay">
|
|
|
|
|
<router-link to="/accountsetting">
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-gerenzhongxin"></i>个人中心
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/main">
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-shangjiahoutai"></i>返回首页
|
|
|
|
|
<a-menu-item-group>
|
|
|
|
|
<a-menu-item class="f14" :key="child.name" v-for="(child, idx) in item.children">
|
|
|
|
|
<!-- <router-link :to="{name:child.name}" :target="child.title == '监控页' ? '_blank' : '_self'"> -->
|
|
|
|
|
<router-link :to="{ name: child.name }">{{ child.title }}</router-link>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
</a-menu-item-group>
|
|
|
|
|
</a-sub-menu>
|
|
|
|
|
</template>
|
|
|
|
|
</a-menu>
|
|
|
|
|
<div class="ant-layout-sider-trigger" :style="{ width: pLeft }">
|
|
|
|
|
<a-icon v-if="hideIcon" class="trigger" :type="collapsed ? 'menu-unfold' : 'menu-fold'" @click="onTrigger" />
|
|
|
|
|
</div>
|
|
|
|
|
</a-layout-sider>
|
|
|
|
|
<a-layout>
|
|
|
|
|
<a-layout-header class="header" :style="{ paddingLeft: pLeft , width:`calc(80% - ${pLeft})`}">
|
|
|
|
|
<div class="topmenu" :style="{ width:`calc(100% - ${pLeft})`}" style="display: flex;justify-content: space-between;background-color: #fff; box-shadow: 1px 1px 2px #e8e8e8; position: fixed; top: 0; z-index: 100">
|
|
|
|
|
<div class="flex1" style="z-index: 999">
|
|
|
|
|
<div class="logined mr24 fsa" style="height:48px;line-height:48px;">
|
|
|
|
|
<div class="fl">
|
|
|
|
|
<span class="f16 ml16 fw500 c085">{{ currentPage }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fsa">
|
|
|
|
|
<a-button class="mr20">
|
|
|
|
|
<router-link to="/list">职位列表</router-link>
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-dropdown overlayClassName="logindropdown" placement="bottomRight">
|
|
|
|
|
<!-- <img :src="userbaseInfo.imgSrc" alt="" v-if="userbaseInfo.imgSrc !== ''" style="border-radius: 50%" />
|
|
|
|
|
<span v-else><i class="iconfont icon-morentouxiang" style="color:#ff4400"></i></span>-->
|
|
|
|
|
<span class="fsa f14">
|
|
|
|
|
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
|
|
|
|
|
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:32px;height:32px;" alt v-else />
|
|
|
|
|
<div class="ml4">{{ userbaseInfo.aliasName || userbaseInfo.userName}}</div>
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<button @click="logout">退出登录</button>
|
|
|
|
|
<div class="loginbox backTable" slot="overlay">
|
|
|
|
|
<router-link to="/accountsetting">
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-gerenzhongxin"></i>个人中心
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/main">
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-shangjiahoutai"></i>返回首页
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<button @click="logout">退出登录</button>
|
|
|
|
|
</div>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<a-layout-content class="trans" style="padding-top: 64px;">
|
|
|
|
|
<!-- <div id="littleUse" style="margin-top: 48px"> -->
|
|
|
|
|
<router-view @setTitle="setTitle"></router-view>
|
|
|
|
|
<!-- </div> -->
|
|
|
|
|
</a-layout-content>
|
|
|
|
|
|
|
|
|
|
<div class="backFooter" style="height: 64px;background-color: #f5f5f5;line-height: 64px;color: #999;font-size: 14px;text-align: center;padding-left: 152px;">Copyright © 2015 - 2021 Matripe. All Rights Reserved.</div>
|
|
|
|
|
</a-layout-header>
|
|
|
|
|
<a-layout-content class="trans" :style="{ margin: '2px 0 0 0', paddingLeft: pLeft, paddingTop: pTop }">
|
|
|
|
|
<!-- <div id="littleUse" style="margin-top: 48px"> -->
|
|
|
|
|
<router-view @setTitle="setTitle"></router-view>
|
|
|
|
|
<!-- </div> -->
|
|
|
|
|
</a-layout-content>
|
|
|
|
|
<a-layout-footer :style="{ marginLeft: pLeft }" class="tac" style="textalign: center">
|
|
|
|
|
<span class="c025">Copyright © 2015 - 2021 Matripe. All Rights Reserved.</span>
|
|
|
|
|
</a-layout-footer>
|
|
|
|
|
</a-layout>
|
|
|
|
|
</a-layout>
|
|
|
|
|
<div>
|
|
|
|
|
<!-- <div class="backFooter" style="height: 64px;background-color: #f5f5f5;line-height: 64px;color: #999;font-size: 14px;text-align: center;padding-left: 152px;">Copyright © 2015 - 2021 Matripe. All Rights Reserved.</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <notice @parentPageCallBack="showMessageFromChild" ref="child"></notice> -->
|
|
|
|
|
</div>
|
|
|
|
|
@ -114,7 +129,7 @@ export default {
|
|
|
|
|
icon: 'icon-houtaishouye',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'HomePage',
|
|
|
|
|
title: '后台首页',
|
|
|
|
|
title: '后台首页-',
|
|
|
|
|
menuName: 'HomePage',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -127,7 +142,7 @@ export default {
|
|
|
|
|
icon: 'icon-zhiweiguanli',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '职位管理',
|
|
|
|
|
title: '职位管理-',
|
|
|
|
|
menuName: 'dashboard',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -140,7 +155,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '职位列表',
|
|
|
|
|
title: '职位列表-',
|
|
|
|
|
menuName: '职位列表',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -151,7 +166,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '佣金配置',
|
|
|
|
|
title: '佣金配置-',
|
|
|
|
|
menuName: '佣金配置',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -164,7 +179,7 @@ export default {
|
|
|
|
|
icon: 'icon-laoxiangguanli',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '老乡管理',
|
|
|
|
|
title: '老乡管理-',
|
|
|
|
|
menuName: 'TownsmanManagement',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -177,7 +192,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '老乡列表',
|
|
|
|
|
title: '老乡列表-',
|
|
|
|
|
menuName: '老乡列表',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -190,7 +205,7 @@ export default {
|
|
|
|
|
icon: 'icon-dailiguanli',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '代理管理',
|
|
|
|
|
title: '代理管理-',
|
|
|
|
|
menuName: 'AgencyManagement',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -203,7 +218,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '代理列表',
|
|
|
|
|
title: '代理列表-',
|
|
|
|
|
menuName: '代理列表',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -258,7 +273,7 @@ export default {
|
|
|
|
|
icon: '',
|
|
|
|
|
component: 'home',
|
|
|
|
|
path: '/home',
|
|
|
|
|
title: '通讯录',
|
|
|
|
|
title: '通讯录-',
|
|
|
|
|
menuName: '通讯录',
|
|
|
|
|
level: 2,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -312,7 +327,7 @@ export default {
|
|
|
|
|
icon: 'icon-gongdanguanli',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '工单管理',
|
|
|
|
|
title: '工单管理-',
|
|
|
|
|
menuName: 'OrderManagement',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -325,7 +340,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '工单列表',
|
|
|
|
|
title: '工单列表-',
|
|
|
|
|
menuName: '工单列表',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -338,7 +353,7 @@ export default {
|
|
|
|
|
icon: 'icon-zhangdanzhongxin',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '账单中心',
|
|
|
|
|
title: '账单中心-',
|
|
|
|
|
menuName: 'BillCenter',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -351,7 +366,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '我的账单',
|
|
|
|
|
title: '我的账单-',
|
|
|
|
|
menuName: '我的账单',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -407,7 +422,7 @@ export default {
|
|
|
|
|
icon: 'icon-neirongguanli',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '内容管理',
|
|
|
|
|
title: '内容管理-',
|
|
|
|
|
menuName: 'container',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -420,7 +435,7 @@ export default {
|
|
|
|
|
icon: '',
|
|
|
|
|
component: 'home',
|
|
|
|
|
path: '/home',
|
|
|
|
|
title: '通知中心',
|
|
|
|
|
title: '通知中心-',
|
|
|
|
|
menuName: 'container',
|
|
|
|
|
level: 2,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -460,7 +475,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '企微配置',
|
|
|
|
|
title: '企微配置-',
|
|
|
|
|
menuName: '企微配置',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -471,7 +486,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '导航配置',
|
|
|
|
|
title: '导航配置-',
|
|
|
|
|
menuName: '导航配置',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -484,7 +499,7 @@ export default {
|
|
|
|
|
icon: 'icon-qiyeshezhi',
|
|
|
|
|
component: '',
|
|
|
|
|
path: '',
|
|
|
|
|
title: '企业设置',
|
|
|
|
|
title: '企业设置-',
|
|
|
|
|
menuName: 'GlobalConfig',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -497,7 +512,7 @@ export default {
|
|
|
|
|
icon: 'home',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'http://www.idaotian.com/box/btv/#/',
|
|
|
|
|
title: '企业信息',
|
|
|
|
|
title: '企业信息-',
|
|
|
|
|
menuName: '企业信息',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
@ -510,7 +525,7 @@ export default {
|
|
|
|
|
icon: 'icon-fuwushichang',
|
|
|
|
|
component: '',
|
|
|
|
|
path: 'ServiceMarket',
|
|
|
|
|
title: '服务市场',
|
|
|
|
|
title: '服务市场-',
|
|
|
|
|
menuName: 'ServiceMarket',
|
|
|
|
|
level: 1,
|
|
|
|
|
menuType: 1,
|
|
|
|
|
@ -519,6 +534,11 @@ export default {
|
|
|
|
|
openKeys: ['dashboard'],
|
|
|
|
|
userbaseInfo: JSON.parse(localStorage.getItem('LOGIN_DATA')),
|
|
|
|
|
currentPage: '',
|
|
|
|
|
pLeft: '200px',
|
|
|
|
|
pTop: '47px',
|
|
|
|
|
collapsedWidth: 48,
|
|
|
|
|
collapsed: false,
|
|
|
|
|
hideIcon: true,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
@ -547,18 +567,38 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.openKeys = _openKey
|
|
|
|
|
// if (this.$route.meta.menuName != '' && this.$route.meta.menuName != undefined && this.$route.meta.menuName != null) {
|
|
|
|
|
// var _openKey = []
|
|
|
|
|
// if (this.$route.meta.menuName != this.$route.name) {
|
|
|
|
|
// //有子菜单
|
|
|
|
|
// _openKey.push(this.$route.meta.menuName, this.$route.name)
|
|
|
|
|
// } else {
|
|
|
|
|
// _openKey.push(this.$route.name)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
// 组件方法
|
|
|
|
|
methods: {
|
|
|
|
|
onTrigger(a) {
|
|
|
|
|
this.collapsed = !this.collapsed
|
|
|
|
|
if (this.collapsed) {
|
|
|
|
|
this.pLeft = '48px'
|
|
|
|
|
} else {
|
|
|
|
|
this.pLeft = '200px'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onBreakpoint(broken) {
|
|
|
|
|
// console.log(broken + "=======");
|
|
|
|
|
// debugger;
|
|
|
|
|
|
|
|
|
|
if (broken) {
|
|
|
|
|
this.pLeft = '48px'
|
|
|
|
|
} else {
|
|
|
|
|
this.pLeft = '200px'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onCollapse(collapsed, type) {
|
|
|
|
|
if (collapsed || type == 'clickTrigger') {
|
|
|
|
|
this.hideIcon = false
|
|
|
|
|
this.collapsedWidth = 0
|
|
|
|
|
this.pLeft = 0
|
|
|
|
|
} else {
|
|
|
|
|
this.hideIcon = true
|
|
|
|
|
this.collapsedWidth = 48
|
|
|
|
|
// this.pLeft = '80px'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleClick(e) {
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.openKeys = e.keyPath
|
|
|
|
|
@ -606,7 +646,7 @@ body {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-menu {
|
|
|
|
|
border-right: 1px solid #eee !important;
|
|
|
|
|
// border-right: 1px solid #eee !important;
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
@ -628,11 +668,11 @@ header.header,
|
|
|
|
|
overflow: auto;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
padding: 18px;
|
|
|
|
|
padding-right: 36px;
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
// padding: 18px;
|
|
|
|
|
// padding-right: 36px;
|
|
|
|
|
// padding-bottom: 0;
|
|
|
|
|
// padding-right: 32px;
|
|
|
|
|
margin-left: 152px !important;
|
|
|
|
|
// margin-left: 192px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
@ -767,7 +807,6 @@ header.header,
|
|
|
|
|
color: unset;
|
|
|
|
|
}
|
|
|
|
|
.topmenu {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 48px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -821,4 +860,54 @@ header.header,
|
|
|
|
|
position: unset;
|
|
|
|
|
// bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
/deep/.ant-breadcrumb {
|
|
|
|
|
.ant-breadcrumb-link {
|
|
|
|
|
a:hover {
|
|
|
|
|
color: unset !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.ant-layout-sider-trigger {
|
|
|
|
|
color: rgba(0, 0, 0, 0.65);
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-top: 1px solid #f0f0f0;
|
|
|
|
|
border-right: 1px solid #e0e0e0;
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
|
|
.trigger {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
padding: 0 24px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: color 0.3s;
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.trigger:hover,
|
|
|
|
|
.c1890 {
|
|
|
|
|
color: #1890ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.leftMenu {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background: #fff;
|
|
|
|
|
/*box-shadow: 1px 1px 2px #ddd;*/
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 0;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
border-right: 1px solid #e8e8e8;
|
|
|
|
|
}
|
|
|
|
|
.ant-menu-inline-collapsed {
|
|
|
|
|
width: 48px;
|
|
|
|
|
> .ant-menu-item {
|
|
|
|
|
padding: 0 16px !important;
|
|
|
|
|
}
|
|
|
|
|
> .ant-menu-submenu {
|
|
|
|
|
> .ant-menu-submenu-title {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
|
|
|
|
|
padding: 0 16px !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|