Browse Source

接口监控看板菜单

dev_web_online
安虹睿 2 years ago
parent
commit
f12c15b3e5
  1. 2
      fe/PC/public/config.js
  2. 2
      fe/PC/public/version.json
  3. 2
      fe/PC/src/App.vue
  4. 2
      fe/PC/src/layout/components/Sidebar/SidebarItem.vue
  5. 36
      fe/PC/src/router/index.js

2
fe/PC/public/config.js

@ -21,6 +21,8 @@ window.SITE_CONFIG['client_secret'] = '1q2w3E*'
window.SITE_CONFIG['reportsUrl'] = 'http://dev.ccwin-in.com:60074/#/reports/'
window.SITE_CONFIG['versionUrl'] = 'http://dev.ccwin-in.com:60070'
window.SITE_CONFIG['companyName'] = '长春一汽富维东阳汽车塑料零部件(安徽)有限公司'
// 接口看板地址
window.SITE_CONFIG['interfaceBoardUrl'] = 'https://www.baidu.com/'
// mock
// window.SITE_CONFIG['apifoxToken'] = 'NXHNi5mp0dnUHGt0wkCrjvfcidsFKV33'

2
fe/PC/public/version.json

@ -1,3 +1,3 @@
{
"version": "1.0.27"
"version": "1.0.28"
}

2
fe/PC/src/App.vue

@ -17,6 +17,8 @@ localStorage.setItem('largeScreen',window.SITE_CONFIG['largeScreen'])
localStorage.setItem('apifoxToken',window.SITE_CONFIG['apifoxToken'])
localStorage.setItem('reportsUrl',window.SITE_CONFIG['reportsUrl'])
localStorage.setItem('companyName',window.SITE_CONFIG['companyName'])
localStorage.setItem('interfaceBoardUrl',window.SITE_CONFIG['interfaceBoardUrl'])
</script>
<style lang="scss">

2
fe/PC/src/layout/components/Sidebar/SidebarItem.vue

@ -5,7 +5,7 @@
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
<!-- 系统首页为最后一层且带图标 -->
<item v-if="onlyOneChild.meta.title == '系统首页'" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
<item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
<!-- 是二级也是最后一级且带菱形 -->
<item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/>
<!-- 其他为最后一层且不带图标 -->

36
fe/PC/src/router/index.js

@ -114,26 +114,46 @@ export const constantRoutes = [
keepAlive : true,
title: '系统首页',
icon: '系统首页',
outerFirst:true
// affix: true
}
}]
},
// {
// path: '/',
// component: Layout,
// redirect: '/gridlayout',
// hidden: true,
// children: [{
// path: 'gridlayout',
// component: () => import('@/views/gridLayout/indexShow'),
// name: 'Gridlayout',
// meta: {
// keepAlive : true,
// title: '首页编辑器',
// icon: '系统首页',
// }
// }]
// },
// 接口看板
{
path: '/',
component: Layout,
redirect: '/gridlayout',
hidden: true,
// redirect: '/interfaceBoard',
// hidden: true,
children: [{
path: 'gridlayout',
component: () => import('@/views/gridLayout/indexShow'),
name: 'Gridlayout',
path: localStorage.getItem('interfaceBoardUrl'),
// component: () => import('@/views/gridLayout/index'),
// name: 'interfaceBoard',
meta: {
keepAlive : true,
title: '首页编辑器',
icon: '系统首页',
title: '接口监控看板',
icon: '报表查看',
outerFirst:true
// affix: true
}
}]
},
// 开发中模拟路由
// {
// path: '/',

Loading…
Cancel
Save