|
@@ -3,19 +3,14 @@
|
|
<!-- 头部菜单栏 -->
|
|
<!-- 头部菜单栏 -->
|
|
<Header class="header">
|
|
<Header class="header">
|
|
<div class="logo-wrap">
|
|
<div class="logo-wrap">
|
|
- <!-- <img src="@/assets/login/ies5_logo_2.svg" :class="isCollapsed ? 'collapsed-logo-width unit-logo':'collapsed-logo-width unit-logo'" v-show="isShowLogo" /> -->
|
|
|
|
<BaseAreaList></BaseAreaList>
|
|
<BaseAreaList></BaseAreaList>
|
|
</div>
|
|
</div>
|
|
<div class="school-wrap">
|
|
<div class="school-wrap">
|
|
- <!-- <BaseSelectSchool></BaseSelectSchool> -->
|
|
|
|
</div>
|
|
</div>
|
|
<slot name="header-content"></slot>
|
|
<slot name="header-content"></slot>
|
|
</Header>
|
|
</Header>
|
|
<!-- 侧边菜单栏 -->
|
|
<!-- 侧边菜单栏 -->
|
|
- <Sider class="biz-menu" @mouseover.native="mouseOver" @mouseleave.native="mouseLeave" ref="side1" hide-trigger collapsible width="190" :collapsed-width="78" v-model="isCollapsed">
|
|
|
|
- <!-- <div class="collapse-icon-box" @click="changeMenuStatus">
|
|
|
|
- <Icon :class="rotateIcon" custom="iconfont icon-arrow" style="color:var(--border-color)" @click.stop="changeMenuStatus" size="12" />
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ <Sider class="biz-menu" @mouseover.native="mouseOver" @mouseleave.native="mouseLeave" ref="side1" hide-trigger collapsible width="190" :collapsed-width="78" v-model="isCollapsed">
|
|
<Menu style="margin-top:15px" width="auto" :class="['menu-item', isCollapsed ? 'collapsed-menu' : '']" accordion :active-name="activeName" :open-names="openNames">
|
|
<Menu style="margin-top:15px" width="auto" :class="['menu-item', isCollapsed ? 'collapsed-menu' : '']" accordion :active-name="activeName" :open-names="openNames">
|
|
<vuescroll :ops="ops">
|
|
<vuescroll :ops="ops">
|
|
<MenuGroup :title="isCollapsed ? $t('area.base.area') : $t('area.base.areaFull')">
|
|
<MenuGroup :title="isCollapsed ? $t('area.base.area') : $t('area.base.areaFull')">
|
|
@@ -68,7 +63,7 @@
|
|
</Menu>
|
|
</Menu>
|
|
<p class="copyright-info">
|
|
<p class="copyright-info">
|
|
<!-- {{$t('system.menu.copyright')}} -->
|
|
<!-- {{$t('system.menu.copyright')}} -->
|
|
- <Icon :title="isLock ? $t('system.menu.unlockTips') : $t('system.menu.lockTips')" :custom="isLock ? 'iconfont icon-lock' : 'iconfont icon-unlock'" @click="isLock = !isLock" class="lock-menu-btn"/>
|
|
|
|
|
|
+ <Icon :title="isLock ? $t('system.menu.unlockTips') : $t('system.menu.lockTips')" :custom="isLock ? 'iconfont icon-lock' : 'iconfont icon-unlock'" @click="isLock = !isLock" class="lock-menu-btn" />
|
|
</p>
|
|
</p>
|
|
</Sider>
|
|
</Sider>
|
|
<!-- Body内容部分 -->
|
|
<!-- Body内容部分 -->
|
|
@@ -106,46 +101,15 @@ export default {
|
|
if (!this.isLock) this.isCollapsed = true
|
|
if (!this.isLock) this.isCollapsed = true
|
|
},
|
|
},
|
|
//根据域名判断菜单是否显示
|
|
//根据域名判断菜单是否显示
|
|
- checkHost(){
|
|
|
|
|
|
+ checkHost() {
|
|
let host = window.location.host
|
|
let host = window.location.host
|
|
// let host = 'jinniu.teammodel.cn'
|
|
// let host = 'jinniu.teammodel.cn'
|
|
- return host != 'jinniu.teammodel.cn'
|
|
|
|
|
|
+ return host != 'jinniu.teammodel.cn'
|
|
},
|
|
},
|
|
initMenu() {
|
|
initMenu() {
|
|
// 区级菜单
|
|
// 区级菜单
|
|
this.areaMenu = [
|
|
this.areaMenu = [
|
|
- // {
|
|
|
|
- // icon: 'iconfont icon-shujufenxi',
|
|
|
|
- // name: '区级数据',
|
|
|
|
- // router: '/area/areaMgmt',
|
|
|
|
- // tag: '',
|
|
|
|
- // role: '',
|
|
|
|
- // permission: '',
|
|
|
|
- // menuName: 'areaMgmt',
|
|
|
|
- // child: []
|
|
|
|
- // },
|
|
|
|
- {
|
|
|
|
- icon: 'iconfont icon-basic-setting',
|
|
|
|
- name: this.$t('area.base.setting'),
|
|
|
|
- router: '/area/areaSetting',
|
|
|
|
- tag: '',
|
|
|
|
- role: 'admin|teacher|expert',
|
|
|
|
- permission: '',
|
|
|
|
- menuName: 'areaSetting',
|
|
|
|
- child: [],
|
|
|
|
- isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- icon: 'iconfont icon-policy',
|
|
|
|
- name: this.$t('system.menu.policy'),
|
|
|
|
- router: '/area/policy',
|
|
|
|
- tag: '',
|
|
|
|
- role: 'admin|teacher|expert',
|
|
|
|
- permission: '',
|
|
|
|
- menuName: 'policy',
|
|
|
|
- child: [],
|
|
|
|
- isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
{
|
|
{
|
|
icon: 'iconfont icon-activityS',
|
|
icon: 'iconfont icon-activityS',
|
|
name: this.$t('area.base.allAc'),
|
|
name: this.$t('area.base.allAc'),
|
|
@@ -168,17 +132,7 @@ export default {
|
|
child: [],
|
|
child: [],
|
|
isShow: true
|
|
isShow: true
|
|
},
|
|
},
|
|
- {
|
|
|
|
- icon: 'iconfont icon-spot-check',
|
|
|
|
- name: this.$t('area.base.expertCk'),
|
|
|
|
- router: '/area/spotCheck',
|
|
|
|
- tag: '',
|
|
|
|
- role: '',
|
|
|
|
- permission: '',
|
|
|
|
- menuName: 'spotCheck',
|
|
|
|
- child: [],
|
|
|
|
- isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
{
|
|
{
|
|
icon: 'iconfont icon-vote',
|
|
icon: 'iconfont icon-vote',
|
|
name: this.$t('system.menu.scVote'),
|
|
name: this.$t('system.menu.scVote'),
|
|
@@ -199,30 +153,87 @@ export default {
|
|
permission: '',
|
|
permission: '',
|
|
menuName: 'manageAreaQuestionnaire',
|
|
menuName: 'manageAreaQuestionnaire',
|
|
child: [],
|
|
child: [],
|
|
- isShow: true
|
|
|
|
|
|
+ isShow: true
|
|
},
|
|
},
|
|
- {
|
|
|
|
- icon: 'iconfont icon-ability-point',
|
|
|
|
- name: this.$t('area.base.point'),
|
|
|
|
- router: '/area/areaAbilityMgmt',
|
|
|
|
- tag: '',
|
|
|
|
- role: '',
|
|
|
|
- permission: '',
|
|
|
|
- menuName: 'areaAbilityMgmt',
|
|
|
|
- child: [],
|
|
|
|
- isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
- icon: 'iconfont icon-resource',
|
|
|
|
- name: this.$t('system.menu.resourceCenter'),
|
|
|
|
- router: '/area/areaRes',
|
|
|
|
- tag: '',
|
|
|
|
- role: '',
|
|
|
|
- permission: '',
|
|
|
|
- menuName: 'areaRes',
|
|
|
|
- child: [],
|
|
|
|
|
|
+ icon: 'iconfont icon-app',
|
|
|
|
+ name: this.$t('system.menu.platform'),
|
|
|
|
+ router: '/area/mgtPlatform',
|
|
|
|
+ tag: '',
|
|
|
|
+ role: '',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'mgtPlatform',
|
|
|
|
+ child: [],
|
|
|
|
+ isShow: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ icon: 'iconfont icon-basic-setting',
|
|
|
|
+ name: this.$t('system.menu.train'),
|
|
|
|
+ router: '',
|
|
|
|
+ tag: '',
|
|
|
|
+ subName: 'trainCenter',
|
|
|
|
+ role: 'admin|teacher|expert',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'areaSetting',
|
|
|
|
+ child: [
|
|
|
|
+ {
|
|
|
|
+ icon: 'iconfont icon-basic-setting',
|
|
|
|
+ name: this.$t('area.base.setting'),
|
|
|
|
+ router: '/area/areaSetting',
|
|
|
|
+ tag: '',
|
|
|
|
+ role: 'admin|teacher|expert',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'areaSetting',
|
|
|
|
+ child: [],
|
|
|
|
+ isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ icon: 'iconfont icon-policy',
|
|
|
|
+ name: this.$t('system.menu.policy'),
|
|
|
|
+ router: '/area/policy',
|
|
|
|
+ tag: '',
|
|
|
|
+ role: 'admin|teacher|expert',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'policy',
|
|
|
|
+ child: [],
|
|
|
|
+ isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ icon: 'iconfont icon-spot-check',
|
|
|
|
+ name: this.$t('area.base.expertCk'),
|
|
|
|
+ router: '/area/spotCheck',
|
|
|
|
+ tag: '',
|
|
|
|
+ role: '',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'spotCheck',
|
|
|
|
+ child: [],
|
|
|
|
+ isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ icon: 'iconfont icon-ability-point',
|
|
|
|
+ name: this.$t('area.base.point'),
|
|
|
|
+ router: '/area/areaAbilityMgmt',
|
|
|
|
+ tag: '',
|
|
|
|
+ role: '',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'areaAbilityMgmt',
|
|
|
|
+ child: [],
|
|
|
|
+ isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ icon: 'iconfont icon-resource',
|
|
|
|
+ name: this.$t('system.menu.resourceCenter'),
|
|
|
|
+ router: '/area/areaRes',
|
|
|
|
+ tag: '',
|
|
|
|
+ role: '',
|
|
|
|
+ permission: '',
|
|
|
|
+ menuName: 'areaRes',
|
|
|
|
+ child: [],
|
|
|
|
+ isShow: this.$store.state.config.srvAdr == 'China'
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
isShow: this.$store.state.config.srvAdr == 'China'
|
|
isShow: this.$store.state.config.srvAdr == 'China'
|
|
- }
|
|
|
|
|
|
+ }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
changeMenuStatus() {
|
|
changeMenuStatus() {
|