Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yulun Yao
multiSystem
Commits
c16b48eb
Commit
c16b48eb
authored
Jul 07, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
5fb9ccdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
264 deletions
+15
-264
index.vue
src/components/Layout/index.vue
+2
-3
index.js
src/router/index.js
+13
-0
routes.js
src/router/routes.js
+0
-261
No files found.
src/components/Layout/index.vue
View file @
c16b48eb
...
...
@@ -24,17 +24,16 @@
</div>
<div>
<!--
<a-badge
:count=
"0"
showZero
><a><a-icon
type=
"bell"
/></a></a-badge>
-->
<
!--
<
a-dropdown
class=
"navdropmenu"
style=
"margin-right:20px;"
>
<a-dropdown
class=
"navdropmenu"
style=
"margin-right:20px;"
>
<span>
<a-icon
type=
"user"
/>
<span
class=
"name"
>
{{
username
}}
</span>
<a-icon
type=
"down"
/>
</span>
<a-menu
slot=
"overlay"
@
click=
"handleClick"
>
<a-menu-item
key=
"changePwd"
@
click=
"showChangePwdModal"
>
修改密码
</a-menu-item>
<a-menu-item
key=
"2"
>
退出登录
</a-menu-item>
</a-menu>
</a-dropdown>
-->
</a-dropdown>
</div>
</a-layout-header>
<a-layout-content
class=
"layout-content"
>
...
...
src/router/index.js
View file @
c16b48eb
...
...
@@ -12,4 +12,17 @@ const router = new Router({
routes
,
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// TODO
store
.
commit
(
'setWebviewSrc'
,
to
.
meta
&&
to
.
meta
.
src
)
// 判断有src的话为需要嵌入iframe的子项目
const
token
=
Cookie
.
get
(
'token'
)
// 当前无token且不在login页面则推到登录页面
if
(
to
.
path
!=
'/login'
&&
!
token
)
{
next
(
'/login'
)
}
else
{
next
()
}
})
export
default
router
src/router/routes.js
View file @
c16b48eb
...
...
@@ -23,267 +23,6 @@ const appRoutes = [
path
:
'/'
,
name
:
'Layout'
,
redirect
:
'/receipt/receiptList'
,
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
children
:
[
// {
// path: '/portal-home', name: 'home', component: resolve => require(['@/views/commenHome'], resolve), //Home,
// meta: { title: '首页' },
// },
// { path: '/person', name: 'person', component: resolve => require(['@/views/person-center'], resolve), //PersonCenter,
// meta: { title: '个人中心' },
// },
// { path: '/noauth', name: 'noauth', component: resolve => require(['@/views/errorTips/auth'], resolve), //TipsNoAuth,
// meta: { title: '无权访问', },
// },
// {
// path: '/systemManagement', name: 'systemManagement', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
// meta: { title: '系统管理', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
// children: [
// { // 系统信息配置
// path: '/systemManagement/sysInfoSetting', name: 'sysInfoSetting', component: resolve => require(['@/views/personal/sysInfoSetting'], resolve), //NonResidents,
// meta: { title: '系统信息配置', menuPath: true, menuIcon: 'setting', authCode: '000001', hideInBread: false, },
// // children: [
// // ]
// },
// { // 拓展信息管理
// path: '/systemManagement/tbls', name: 'tbls', component: resolve => require(['@/views/houseData/tbls'], resolve), //Tbls,
// meta: { title: '拓展信息管理', menuPath: true, menuIcon: 'setting', authCode: '000002', hideInBread: false, },
// },
// { // 角色管理
// path: '/systemManagement/role', name: 'role', component: resolve => require(['@/views/personal/role/list'], resolve), //role,
// meta: { title: '角色管理', authCode: '000903', menuPath: true, menuIcon: 'cluster', hideInBread: false, },
// children: [
// {
// path: '/systemManagement/role/add', name: 'add', component: resolve => require(['@/views/personal/role/add'], resolve), //add,
// meta: { title: '角色创建', hideInBread: false, authCode: '00090302', openMode: 'normal', menuPath: false, },
// },
// {
// path: '/systemManagement/role/edit', name: 'edit', component: resolve => require(['@/views/personal/role/add'], resolve), //edit,
// meta: { title: '角色修改', hideInBread: false, authCode: '00090304', openMode: 'normal', menuPath: false, },
// children: [
// {
// path: '/systemManagement/role/look', name: 'look', component: resolve => require(['@/views/personal/role/add'], resolve), //look,
// meta: { title: '角色查看', hideInBread: false, authCode: '00090301', openMode: 'normal', menuPath: false, }
// }
// ]
// },
// ]
// },
// { // 用户管理
// path: '/systemManagement/people', name: 'people', component: resolve => require(['@/views/personal/InternalStaff/index'], resolve), //people,
// meta: { title: '用户管理', authCode: '000904', menuPath: true, menuIcon: 'user', hideInBread: false, },
// children: [
// {
// path: '/systemManagement/people/info', name: 'staffInfo', component: resolve => require(['@/views/personal/InternalStaff/info'], resolve), //staffInfo,
// meta: { title: '账号详情', hideInBread: false, authCode: '00090401', menuPath: false},
// },
// {
// path: '/systemManagement/people/createStaff', name: 'createStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //createStaff,
// meta: { title: '新增账号', hideInBread: false, authCode: '00090403', menuPath: false},
// },
// {
// path: '/systemManagement/people/editStaff', name: 'editStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //editStaff,
// meta: { title: '修改账号', menuPath: false, hideInBread: false, authCode: '00090402', },
// children: [
// ]
// },
// ]
// },
// { // 日志管理
// path: '/systemManagement/rizhi', name: 'rizhi', component: resolve => require(['@/views/personal/rizhi/rizhiList'], resolve), //people,
// meta: { title: '日志管理', menuPath: true, menuIcon: 'barcode', hideInBread: false, },
// children: [
// {
// path: '/systemManagement/rizhi/info', name: 'rizhiInfo', component: resolve => require(['@/views/personal/rizhi/info'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// },
// {
// path: '/systemManagement/rizhi/yeweiInfo', name: 'yeweiInfo', component: resolve => require(['@/views/personal/rizhi/yewei'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// },
// {
// path: '/systemManagement/rizhi/wuyeInfo', name: 'wuyeInfo', component: resolve => require(['@/views/personal/rizhi/wuyeqiye'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// },
// {
// path: '/systemManagement/rizhi/guanliInfo', name: 'guanliInfo', component: resolve => require(['@/views/personal/rizhi/guanlichu'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// },
// {
// path: '/systemManagement/rizhi/jingliInfo', name: 'jingliInfo', component: resolve => require(['@/views/personal/rizhi/jingli'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// },
// {
// path: '/systemManagement/rizhi/juweiInfo', name: 'juweiInfo', component: resolve => require(['@/views/personal/rizhi/juweihui'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// },
// {
// path: '/systemManagement/rizhi/feijuInfo', name: 'feijuInfo', component: resolve => require(['@/views/personal/rizhi/feijuInfo'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// },
// {
// path: '/systemManagement/rizhi/tuozhanxinxiguanliInfo', name: 'tuozhanxinxiguanliInfo', component: resolve => require(['@/views/personal/rizhi/tuozhanxinxiguanliInfo'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// },
// {
// path: '/systemManagement/rizhi/xitongxinxi', name: 'xitongxinxi', component: resolve => require(['@/views/personal/rizhi/xitongxinxi'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// },
// {
// path: '/systemManagement/rizhi/jueseInfo', name: 'jueseInfo', component: resolve => require(['@/views/personal/rizhi/juese'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// },
// {
// path: '/systemManagement/rizhi/zhanghuInfo', name: 'zhanghuInfo', component: resolve => require(['@/views/personal/rizhi/zhanghuInfo'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// },
// ]
// },
// ]
// },
// {
// path: '/labelWarehouse', name: 'labelWarehouse', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
// meta: { title: '标签库', menuPath: true, menuIcon: 'profile', hideInBread: true },
// children: [
// { // 标签管理
// path: '/labelWarehouse/lvot', name: 'lvot', component: resolve => require(['@/views/label/labelList'], resolve), //Tbls,
// meta: { title: '标签配置', menuPath: true, menuIcon: 'setting', hideInBread: false, },
// },
// {
// path: '/labelWarehouse/basicInfoByLabel', name: 'basicInfoByLabel', component: resolve => require(['@/views/houseData/basicInfoByLabel'], resolve), //basicInfo,
// meta: { title: '标签筛选列表', menuPath: true, hideInBread: false, },
// },
// ]
// },
// {
// path: '/house', name: 'house', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), // ContentWrapper,
// meta: { title: '住宅信息', menuPath: true, menuIcon: 'home', hideInBread: true, requirePerm: false, authCode: '0001' },
// children: [
// { // 小区列表
// path: '/houseData/basicInfo', name: 'basicInfo', component: resolve => require(['@/views/houseData/basicInfo'], resolve), //basicInfo,
// meta: { title: '住宅小区', menuPath: true, hideInBread: false, authCode: '000101', menuIcon: 'home'},
// children: [
// {
// path: '/houseData/basicInfo/:id', name: 'basicView', component: resolve => require(['@/views/houseData/basicView'], resolve), //BasicView,
// meta: { title: '小区详细情况', hideInBread: false, authCode: '00010101', menuPath: false },
// },
// {
// path: '/houseData/buildings', name: 'buildings', component: resolve => require(['@/views/houseData/buildings'], resolve), //Buildings,
// meta: { title: '门牌栋', hideInBread: false, authCode: '00010101', menuPath: false},
// children: [
// {
// path: '/houseData/buildings/:id', name: 'buildingView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '门牌栋详情', hideInBread: false, authCode: '00010101', menuPath: false}
// }
// ]
// },
// {
// path: '/houseData/feeStandard', name: 'feeStandard', component: resolve => require(['@/views/houseData/feeStandard'], resolve), //Buildings,
// meta: { title: '物业收费标准', hideInBread: false, menuPath: false},
// },
// {
// path: '/houseData/shebei/:id', name: 'shebei', component: resolve => require(['@/views/houseData/shebei'], resolve), //Shebei,
// meta: { title: '设施设备', menuPath: true, hideInBread: false, authCode: '00010101', menuPath: false},
// },
// {
// path: '/houseData/shebeikanyan/:id', name: 'shebeiKanyan', component: resolve => require(['@/views/xuhui/shebeiKanyan'], resolve), //Shebei,
// meta: { title: '设施设备(勘验)', menuPath: true, hideInBread: false, authCode: '00010101', menuPath: false },
// },
// ]
// },
// {//业委会列表
// path: '/houseData/indCous', name: 'indCous', component: resolve => require(['@/views/houseData/indCous'], resolve), //IndCous,
// meta: { title: '业委会', menuPath: true, hideInBread: false, menuIcon: 'bank', authCode: '000102' },
// children: [
// {
// path: '/houseData/indCou/:id', name: 'indCouView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '业委会详细情况', menuPath: false, hideInBread: false, authCode: '00010201'},
// },
// {
// path: '/houseData/members', name: 'members', component: resolve => require(['@/views/houseData/members'], resolve), //Members,
// meta: { title: '业委会成员列表', hideInBread: false, authCode: '00010201', menuPath: false},
// children: [
// {
// path: '/houseData/member/:id', name: 'memberView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '业委会成员详情', hideInBread: false, authCode: '00010201', menuPath: false}
// }
// ]
// },
// ]
// },
// {//物业列表
// path: '/houseData/propertyInfo', name: 'propertyInfo', component: resolve => require(['@/views/houseData/propertyInfo'], resolve), //PropertyInfo,
// meta: { title: '物业企业', menuPath: true, menuIcon: 'appstore', hideInBread: false, authCode: '000103' },
// children: [
// {
// path: '/houseData/propertyInfo/:id', name: 'propertyInfoView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '物业服务企业详细情况', hideInBread: false, authCode: '00010301', menuPath: false}
// }
// ]
// },
// { // 小区管理处
// path: '/houseData/cmDivision', name: 'cmDivision', component: resolve => require(['@/views/houseData/cmDivision'], resolve), //CmDivision,
// meta: { title: '小区管理处', menuPath: true, menuIcon: 'build', hideInBread: false, authCode: '000104' },
// children: [
// {
// path: '/houseData/cmDivision/:id', name: 'cmDivisionView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '小区管理处详细情况', menuPath: false, hideInBread: false, authCode: '00010401' }
// }
// ]
// },
// { // 小区经理
// path: '/houseData/managers', name: 'managers', component: resolve => require(['@/views/houseData/managers'], resolve), //Managers,
// meta: { title: '小区经理', menuPath: true, hideInBread: false, menuIcon: 'solution', authCode: '000105'},
// children: [
// {
// path: '/houseData/managers/:id', name: 'managerView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '小区经理详细情况', menuPath: false, hideInBread: false, authCode: '00010501'}
// },
// ]
// },
// {//居委会列表
// path: '/houseData/neighborhoodCommittees', name: 'neighborhoodCommittees', component: resolve => require(['@/views/houseData/neighborhoodCommittees'], resolve), //neighborhoodCommittees,
// meta: { title: '居委会', menuPath: true, hideInBread: false, menuIcon: 'shop', authCode: '000106'},
// children: [
// {
// path: '/houseData/neighborhoodCommittees/:id', name: 'neighborhoodCommitteesView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '居委会详细情况', menuPath: false, hideInBread: false, authCode: '00010601'},
// },
// ]
// },
// ]
// },
// {
// path: '/noN', name: 'feiju', redirect: { name: 'home' }, component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
// meta: { title: '非居信息', menuPath: true, menuIcon: 'laptop', hideInBread: true, authCode: '0002' },
// children: [
// { // 非居列表
// path: '/houseData/nonResidents', name: 'nonResidents', component: resolve => require(['@/views/houseData/nonResidents'], resolve), //NonResidents,
// meta: { title: '非居项目信息列表', menuPath: true, menuIcon: 'laptop', hideInBread: false, authCode: '000201'},
// children: [
// {
// path: '/houseData/nonResident/:id', name: 'nonResidentsView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '非居详细情况', menuPath: false, hideInBread: false, authCode: '000201' }
// },
// {
// path: '/houseData/nonBuildingList', name: 'nonBuildingList', component: resolve => require(['@/views/houseData/nonBuildingList'], resolve), //PropertyInfoView,
// meta: { title: '非居门牌幢列表', menuPath: false, hideInBread: false, authCode: '000201' },
// children: [
// {
// path: '/houseData/nonBuildingList/nonBuildingInfo/:id', name: 'nonBuildingInfo', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
// meta: { title: '非居门牌幢详情', menuPath: false, hideInBread: false, authCode: '000201' }
// }
// ]
// },
// ]
// },
// ]
// },
{
path
:
'/receipt'
,
name
:
'receipt'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
meta
:
{
title
:
'单据'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
true
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment