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
352a1fb5
Commit
352a1fb5
authored
May 25, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parent
02d5c89b
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
477 additions
and
395 deletions
+477
-395
index.vue
src/components/Layout/index.vue
+4
-5
main.vue
src/components/Layout/main.vue
+2
-2
sidemenu.vue
src/components/Layout/sidemenu.vue
+30
-69
getMicRouters.js
src/router/getMicRouters.js
+13
-13
index.js
src/router/index.js
+11
-11
routes.js
src/router/routes.js
+260
-250
ajax.js
src/server/ajax.js
+1
-0
api.js
src/server/api.js
+4
-2
home copy.vue
src/views/home copy.vue
+21
-21
homeXuhui.vue
src/views/homeXuhui.vue
+21
-21
sysInfoSetting.vue
src/views/personal/sysInfoSetting.vue
+1
-1
receiptList.vue
src/views/receiptService/receiptList.vue
+109
-0
No files found.
src/components/Layout/index.vue
View file @
352a1fb5
...
@@ -18,18 +18,17 @@
...
@@ -18,18 +18,17 @@
</div>
</div>
<div>
<div>
<!--
<a-badge
:count=
"0"
showZero
><a><a-icon
type=
"bell"
/></a></a-badge>
-->
<!--
<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>
<span>
<a-icon
type=
"user"
/>
<a-icon
type=
"user"
/>
<span
class=
"name"
>
{{
username
}}
</span>
<span
class=
"name"
>
{{
username
}}
</span>
<a-icon
type=
"down"
/>
<a-icon
type=
"down"
/>
</span>
</span>
<a-menu
slot=
"overlay"
@
click=
"handleClick"
>
<a-menu
slot=
"overlay"
@
click=
"handleClick"
>
<!--
<a-menu-item
key=
"1"
>
个人中心
</a-menu-item>
-->
<a-menu-item
key=
"changePwd"
@
click=
"showChangePwdModal"
>
修改密码
</a-menu-item>
<a-menu-item
key=
"changePwd"
@
click=
"showChangePwdModal"
>
修改密码
</a-menu-item>
<a-menu-item
key=
"2"
>
退出登录
</a-menu-item>
<a-menu-item
key=
"2"
>
退出登录
</a-menu-item>
</a-menu>
</a-menu>
</a-dropdown>
</a-dropdown>
-->
</div>
</div>
</a-layout-header>
</a-layout-header>
<a-layout-content
class=
"layout-content"
>
<a-layout-content
class=
"layout-content"
>
...
@@ -157,8 +156,8 @@ export default {
...
@@ -157,8 +156,8 @@ export default {
},
},
},
},
created
(){
created
(){
this
.
getLogo
()
//
this.getLogo()
this
.
getInfo
()
//
this.getInfo()
},
},
methods
:
{
methods
:
{
showChangePwdModal
(){
showChangePwdModal
(){
...
...
src/components/Layout/main.vue
View file @
352a1fb5
...
@@ -299,9 +299,9 @@ export default {
...
@@ -299,9 +299,9 @@ export default {
},
},
created
(){
created
(){
this
.
getLogo
()
//
this.getLogo()
this
.
getInfo
()
//
this.getInfo()
/** 持久化存储vuex 使其页面刷新后数据不丢失 */
/** 持久化存储vuex 使其页面刷新后数据不丢失 */
//在页面加载时读取sessionStorage里的状态信息
//在页面加载时读取sessionStorage里的状态信息
...
...
src/components/Layout/sidemenu.vue
View file @
352a1fb5
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
return
{
return
{
openKeys
:
[],
openKeys
:
[],
selectedKeys
:
[],
selectedKeys
:
[],
//
menus: [],
menus
:
[],
isAllPerm
:
false
isAllPerm
:
false
}
}
},
},
...
@@ -68,76 +68,37 @@ export default {
...
@@ -68,76 +68,37 @@ export default {
},
},
},
},
mounted
(){
mounted
(){
// this.$ajax.get({
let
menus
=
[]
// url: this.$api.GET_USER_INFO,
let
tempmenu
=
[]
// }).then(res => {
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
){
// if(res.code == 200) {
if
(
!!
routes
[
i
].
children
){
// this.isAllPerm = res.data.content.isAllPerm
for
(
let
j
=
0
;
j
<
routes
[
i
].
children
.
length
;
j
++
){
// console.log(this.isAllPerm)
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
&&
routes
[
i
].
children
[
j
].
name
==
'systemManagement'
&&
isLoadExtendMenu
==
'false'
){
// let menus=[]
let
target
=
routes
[
i
].
children
[
j
].
children
// let tempmenu = []
if
(
target
.
length
>
0
)
{
// let isLoadExtendMenu = this.$cookie.get('customKeyEnable')
for
(
let
k
=
0
;
k
<
target
.
length
;
k
++
)
{
// for(let i=0;i
<
routes
.
length
;
i
++
){
tempmenu
.
push
(
target
[
k
])
// if(!!routes[i].children){
}
// for(let j=0;j
<
routes
[
i
].
children
.
length
;
j
++
){
}
// if(!!this.isAllPerm) { // 超管访问
let
lusso
=
routes
[
i
].
children
[
j
]
// if(!!routes[i].children[j].meta.menuIcon && routes[i].children[j].name == 'systemManagement' && isLoadExtendMenu == 'false'){
lusso
.
children
=
[]
// let target = routes[i].children[j].children
lusso
.
children
=
tempmenu
// if(target.length > 0) {
menus
.
push
(
lusso
)
// for(let k = 0 ; k
<
target
.
length
;
k
++
)
{
}
else
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
)
{
// if(target[k].name == 'tbls') {
menus
.
push
(
routes
[
i
].
children
[
j
])
// if(isLoadExtendMenu == 'true') {
}
// tempmenu.push(target[k])
// }
// } else {
// tempmenu.push(target[k])
// }
// }
// }
// let lusso = routes[i].children[j]
// lusso.children = []
// lusso.children = tempmenu
// menus.push(lusso)
// } else if (!!routes[i].children[j].meta.menuIcon) {
// menus.push(routes[i].children[j])
// }
// } else if(!this.isAllPerm) { // 非超管访问
}
// if(routes[i].children[j].meta.isAllPerm == false) {
}
// if(!!routes[i].children[j].meta.menuIcon && routes[i].children[j].name == 'systemManagement' && isLoadExtendMenu == 'false'){
}
// let target = routes[i].children[j].children
// if(target.length > 0) {
this
.
menus
=
menus
// for(let k = 0 ; k
<
target
.
length
;
k
++
)
{
// if(target[k].name == 'tbls') {
// if(isLoadExtendMenu == 'true') {
// tempmenu.push(target[k])
// }
// } else {
// tempmenu.push(target[k])
// }
// }
// }
// let lusso = routes[i].children[j]
// lusso.children = []
// lusso.children = tempmenu
// menus.push(lusso)
// } else if (!!routes[i].children[j].meta.menuIcon) {
// menus.push(routes[i].children[j])
// }
// }
// }
// }
// }
// }
// this.menus=menus
// }
// })
},
},
computed
:
{
computed
:
{
menus
(){
//
menus(){
// console.log(this.$store.state.menuList)
//
// console.log(this.$store.state.menuList)
return
this
.
$store
.
state
.
menuList
//
return this.$store.state.menuList
}
//
}
},
},
methods
:
{
methods
:
{
// 点击菜单,收起其他展开的菜单
// 点击菜单,收起其他展开的菜单
...
...
src/router/getMicRouters.js
View file @
352a1fb5
...
@@ -87,19 +87,19 @@ function GetRoutes(router) {
...
@@ -87,19 +87,19 @@ function GetRoutes(router) {
const
{
routes
}
=
router
.
options
const
{
routes
}
=
router
.
options
const
parent
=
routes
.
find
(
item
=>
item
.
name
===
'Layout'
)
const
parent
=
routes
.
find
(
item
=>
item
.
name
===
'Layout'
)
for
(
let
key
in
micSystemRoutersConfigs
)
{
//
for (let key in micSystemRoutersConfigs) {
for
(
let
i
=
0
;
i
<
micSystemRoutersConfigs
[
key
].
length
;
i
++
)
{
//
for (let i = 0; i < micSystemRoutersConfigs[key].length; i++) {
let
firstRouter
=
Object
.
assign
({},
micSystemRoutersConfigs
[
key
][
i
])
//
let firstRouter = Object.assign({}, micSystemRoutersConfigs[key][i])
if
(
//
if (
!!
firstRouter
.
meta
.
openMode
&&
//
!!firstRouter.meta.openMode &&
firstRouter
.
meta
.
openMode
==
'outsite'
//
firstRouter.meta.openMode == 'outsite'
)
{
//
) {
firstRouter
.
component
=
TipsOutsite
//
firstRouter.component = TipsOutsite
}
//
}
parent
.
children
.
push
(
Object
.
assign
({},
firstRouter
))
//
parent.children.push(Object.assign({}, firstRouter))
router
.
addRoutes
([
parent
])
//
router.addRoutes([ parent ])
}
//
}
}
//
}
}
}
...
...
src/router/index.js
View file @
352a1fb5
...
@@ -12,17 +12,17 @@ const router = new Router({
...
@@ -12,17 +12,17 @@ const router = new Router({
routes
,
routes
,
})
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
//
router.beforeEach((to, from, next) => {
// TODO
//
// TODO
store
.
commit
(
'setWebviewSrc'
,
to
.
meta
&&
to
.
meta
.
src
)
// 判断有src的话为需要嵌入iframe的子项目
//
store.commit('setWebviewSrc', to.meta && to.meta.src) // 判断有src的话为需要嵌入iframe的子项目
const
token
=
Cookie
.
get
(
'token'
)
//
const token = Cookie.get('token')
// 当前无token且不在login页面则推到登录页面
//
// 当前无token且不在login页面则推到登录页面
if
(
to
.
path
!=
'/login'
&&
!
token
)
{
//
if (to.path != '/login' && !token) {
next
(
'/login'
)
//
next('/login')
}
else
{
//
} else {
next
()
//
next()
}
//
}
})
//
})
export
default
router
export
default
router
src/router/routes.js
View file @
352a1fb5
...
@@ -20,267 +20,277 @@
...
@@ -20,267 +20,277 @@
// import Demo from '@/views/components/demo'
// import Demo from '@/views/components/demo'
const
appRoutes
=
[
const
appRoutes
=
[
{
{
path
:
'/'
,
name
:
'Layout'
,
redirect
:
'/
portal-home
'
,
path
:
'/'
,
name
:
'Layout'
,
redirect
:
'/
receipt/receiptList
'
,
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
children
:
[
children
:
[
{
// {
path
:
'/portal-home'
,
name
:
'home'
,
component
:
resolve
=>
require
([
'@/views/commenHome'
],
resolve
),
//Home,
// path: '/portal-home', name: 'home', component: resolve => require(['@/views/commenHome'], resolve), //Home,
meta
:
{
title
:
'首页'
},
// meta: { title: '首页' },
},
// },
{
path
:
'/person'
,
name
:
'person'
,
component
:
resolve
=>
require
([
'@/views/person-center'
],
resolve
),
//PersonCenter,
// { path: '/person', name: 'person', component: resolve => require(['@/views/person-center'], resolve), //PersonCenter,
meta
:
{
title
:
'个人中心'
},
// meta: { title: '个人中心' },
},
// },
{
path
:
'/noauth'
,
name
:
'noauth'
,
component
:
resolve
=>
require
([
'@/views/errorTips/auth'
],
resolve
),
//TipsNoAuth,
// { path: '/noauth', name: 'noauth', component: resolve => require(['@/views/errorTips/auth'], resolve), //TipsNoAuth,
meta
:
{
title
:
'无权访问'
,
},
// meta: { title: '无权访问', },
},
// },
{
// {
path
:
'/systemManagement'
,
name
:
'systemManagement'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
// path: '/systemManagement', name: 'systemManagement', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta
:
{
title
:
'系统管理'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
true
},
// meta: { title: '系统管理', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children
:
[
// children: [
{
// 系统信息配置
// { // 系统信息配置
path
:
'/systemManagement/sysInfoSetting'
,
name
:
'sysInfoSetting'
,
component
:
resolve
=>
require
([
'@/views/personal/sysInfoSetting'
],
resolve
),
//NonResidents,
// path: '/systemManagement/sysInfoSetting', name: 'sysInfoSetting', component: resolve => require(['@/views/personal/sysInfoSetting'], resolve), //NonResidents,
meta
:
{
title
:
'系统信息配置'
,
menuPath
:
true
,
menuIcon
:
'setting'
,
authCode
:
'000001'
,
hideInBread
:
false
,
},
// 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: [
// 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/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,
//
path: '/systemManagement/people', name: 'people', component: resolve => require(['@/views/personal/InternalStaff/index'], resolve), //people,
meta
:
{
title
:
'用户管理'
,
authCode
:
'000904'
,
menuPath
:
true
,
menuIcon
:
'user'
,
hideInBread
:
false
,
},
//
meta: { title: '用户管理', authCode: '000904', menuPath: true, menuIcon: 'user', hideInBread: false, },
children
:
[
//
children: [
{
//
{
path
:
'/systemManagement/people/info'
,
name
:
'staffInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/InternalStaff/info'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/people/info', name: 'staffInfo', component: resolve => require(['@/views/personal/InternalStaff/info'], resolve), //staffInfo,
meta
:
{
title
:
'账号详情'
,
hideInBread
:
false
,
authCode
:
'00090401'
,
menuPath
:
false
},
//
meta: { title: '账号详情', hideInBread: false, authCode: '00090401', menuPath: false},
},
//
},
{
//
{
path
:
'/systemManagement/people/createStaff'
,
name
:
'createStaff'
,
component
:
resolve
=>
require
([
'@/views/personal/InternalStaff/edit'
],
resolve
),
//createStaff,
//
path: '/systemManagement/people/createStaff', name: 'createStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //createStaff,
meta
:
{
title
:
'新增账号'
,
hideInBread
:
false
,
authCode
:
'00090403'
,
menuPath
:
false
},
//
meta: { title: '新增账号', hideInBread: false, authCode: '00090403', menuPath: false},
},
//
},
{
//
{
path
:
'/systemManagement/people/editStaff'
,
name
:
'editStaff'
,
component
:
resolve
=>
require
([
'@/views/personal/InternalStaff/edit'
],
resolve
),
//editStaff,
//
path: '/systemManagement/people/editStaff', name: 'editStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //editStaff,
meta
:
{
title
:
'修改账号'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'00090402'
,
},
//
meta: { title: '修改账号', menuPath: false, hideInBread: false, authCode: '00090402', },
children
:
[
//
children: [
]
//
]
},
//
},
]
//
]
},
//
},
{
// 日志管理
//
{ // 日志管理
path
:
'/systemManagement/rizhi'
,
name
:
'rizhi'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/rizhiList'
],
resolve
),
//people,
//
path: '/systemManagement/rizhi', name: 'rizhi', component: resolve => require(['@/views/personal/rizhi/rizhiList'], resolve), //people,
meta
:
{
title
:
'日志管理'
,
menuPath
:
true
,
menuIcon
:
'barcode'
,
hideInBread
:
false
,
},
//
meta: { title: '日志管理', menuPath: true, menuIcon: 'barcode', hideInBread: false, },
children
:
[
//
children: [
{
//
{
path
:
'/systemManagement/rizhi/info'
,
name
:
'rizhiInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/info'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/info', name: 'rizhiInfo', component: resolve => require(['@/views/personal/rizhi/info'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/yeweiInfo'
,
name
:
'yeweiInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/yewei'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/yeweiInfo', name: 'yeweiInfo', component: resolve => require(['@/views/personal/rizhi/yewei'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/wuyeInfo'
,
name
:
'wuyeInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/wuyeqiye'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/wuyeInfo', name: 'wuyeInfo', component: resolve => require(['@/views/personal/rizhi/wuyeqiye'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/guanliInfo'
,
name
:
'guanliInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/guanlichu'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/guanliInfo', name: 'guanliInfo', component: resolve => require(['@/views/personal/rizhi/guanlichu'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/jingliInfo'
,
name
:
'jingliInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/jingli'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/jingliInfo', name: 'jingliInfo', component: resolve => require(['@/views/personal/rizhi/jingli'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/juweiInfo'
,
name
:
'juweiInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/juweihui'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/juweiInfo', name: 'juweiInfo', component: resolve => require(['@/views/personal/rizhi/juweihui'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/feijuInfo'
,
name
:
'feijuInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/feijuInfo'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/feijuInfo', name: 'feijuInfo', component: resolve => require(['@/views/personal/rizhi/feijuInfo'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/tuozhanxinxiguanliInfo'
,
name
:
'tuozhanxinxiguanliInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/tuozhanxinxiguanliInfo'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/tuozhanxinxiguanliInfo', name: 'tuozhanxinxiguanliInfo', component: resolve => require(['@/views/personal/rizhi/tuozhanxinxiguanliInfo'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/xitongxinxi'
,
name
:
'xitongxinxi'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/xitongxinxi'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/xitongxinxi', name: 'xitongxinxi', component: resolve => require(['@/views/personal/rizhi/xitongxinxi'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/jueseInfo'
,
name
:
'jueseInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/juese'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/jueseInfo', name: 'jueseInfo', component: resolve => require(['@/views/personal/rizhi/juese'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
},
//
},
{
//
{
path
:
'/systemManagement/rizhi/zhanghuInfo'
,
name
:
'zhanghuInfo'
,
component
:
resolve
=>
require
([
'@/views/personal/rizhi/zhanghuInfo'
],
resolve
),
//staffInfo,
//
path: '/systemManagement/rizhi/zhanghuInfo', name: 'zhanghuInfo', component: resolve => require(['@/views/personal/rizhi/zhanghuInfo'], resolve), //staffInfo,
meta
:
{
title
:
'日志管理详情'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
},
//
},
]
//
]
},
//
},
]
//
]
},
//
},
{
//
{
path
:
'/labelWarehouse'
,
name
:
'labelWarehouse'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
//
path: '/labelWarehouse', name: 'labelWarehouse', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta
:
{
title
:
'标签库'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000
'
,
hideInBread
:
true
},
// meta: { title: '标签库', menuPath: true, menuIcon: 'profile
', hideInBread: true },
children
:
[
//
children: [
{
// 标签管理
//
{ // 标签管理
path
:
'/labelWarehouse/lvot'
,
name
:
'lvot'
,
component
:
resolve
=>
require
([
'@/views/label/labelList'
],
resolve
),
//Tbls,
//
path: '/labelWarehouse/lvot', name: 'lvot', component: resolve => require(['@/views/label/labelList'], resolve), //Tbls,
meta
:
{
title
:
'标签配置'
,
menuPath
:
true
,
menuIcon
:
'setting'
,
hideInBread
:
false
,
},
//
meta: { title: '标签配置', menuPath: true, menuIcon: 'setting', hideInBread: false, },
},
//
},
{
//
{
path
:
'/labelWarehouse/basicInfoByLabel'
,
name
:
'basicInfoByLabel'
,
component
:
resolve
=>
require
([
'@/views/houseData/basicInfoByLabel'
],
resolve
),
//basicInfo,
//
path: '/labelWarehouse/basicInfoByLabel', name: 'basicInfoByLabel', component: resolve => require(['@/views/houseData/basicInfoByLabel'], resolve), //basicInfo,
meta
:
{
title
:
'标签筛选列表'
,
menuPath
:
true
,
hideInBread
:
false
,
},
//
meta: { title: '标签筛选列表', menuPath: true, hideInBread: false, },
},
//
},
]
//
]
},
//
},
{
//
{
path
:
'/house'
,
name
:
'house'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
// ContentWrapper,
//
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'
},
//
meta: { title: '住宅信息', menuPath: true, menuIcon: 'home', hideInBread: true, requirePerm: false, authCode: '0001' },
children
:
[
//
children: [
{
// 小区列表
//
{ // 小区列表
path
:
'/houseData/basicInfo'
,
name
:
'basicInfo'
,
component
:
resolve
=>
require
([
'@/views/houseData/basicInfo'
],
resolve
),
//basicInfo,
//
path: '/houseData/basicInfo', name: 'basicInfo', component: resolve => require(['@/views/houseData/basicInfo'], resolve), //basicInfo,
meta
:
{
title
:
'住宅小区'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'000101'
,
menuIcon
:
'home'
},
//
meta: { title: '住宅小区', menuPath: true, hideInBread: false, authCode: '000101', menuIcon: 'home'},
children
:
[
//
children: [
{
//
{
path
:
'/houseData/basicInfo/:id'
,
name
:
'basicView'
,
component
:
resolve
=>
require
([
'@/views/houseData/basicView'
],
resolve
),
//BasicView,
//
path: '/houseData/basicInfo/:id', name: 'basicView', component: resolve => require(['@/views/houseData/basicView'], resolve), //BasicView,
meta
:
{
title
:
'小区详细情况'
,
hideInBread
:
false
,
authCode
:
'00010101'
,
menuPath
:
false
},
//
meta: { title: '小区详细情况', hideInBread: false, authCode: '00010101', menuPath: false },
},
//
},
{
//
{
path
:
'/houseData/buildings'
,
name
:
'buildings'
,
component
:
resolve
=>
require
([
'@/views/houseData/buildings'
],
resolve
),
//Buildings,
//
path: '/houseData/buildings', name: 'buildings', component: resolve => require(['@/views/houseData/buildings'], resolve), //Buildings,
meta
:
{
title
:
'门牌栋'
,
hideInBread
:
false
,
authCode
:
'00010101'
,
menuPath
:
false
},
//
meta: { title: '门牌栋', hideInBread: false, authCode: '00010101', menuPath: false},
children
:
[
//
children: [
{
//
{
path
:
'/houseData/buildings/:id'
,
name
:
'buildingView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
//
path: '/houseData/buildings/:id', name: 'buildingView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'门牌栋详情'
,
hideInBread
:
false
,
authCode
:
'00010101'
,
menuPath
:
false
}
//
meta: { title: '门牌栋详情', hideInBread: false, authCode: '00010101', menuPath: false}
}
//
}
]
//
]
},
//
},
{
//
{
path
:
'/houseData/feeStandard'
,
name
:
'feeStandard'
,
component
:
resolve
=>
require
([
'@/views/houseData/feeStandard'
],
resolve
),
//Buildings,
//
path: '/houseData/feeStandard', name: 'feeStandard', component: resolve => require(['@/views/houseData/feeStandard'], resolve), //Buildings,
meta
:
{
title
:
'物业收费标准'
,
hideInBread
:
false
,
menuPath
:
false
},
//
meta: { title: '物业收费标准', hideInBread: false, menuPath: false},
},
//
},
{
//
{
path
:
'/houseData/shebei/:id'
,
name
:
'shebei'
,
component
:
resolve
=>
require
([
'@/views/houseData/shebei'
],
resolve
),
//Shebei,
//
path: '/houseData/shebei/:id', name: 'shebei', component: resolve => require(['@/views/houseData/shebei'], resolve), //Shebei,
meta
:
{
title
:
'设施设备'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'00010101'
,
menuPath
:
false
},
//
meta: { title: '设施设备', menuPath: true, hideInBread: false, authCode: '00010101', menuPath: false},
},
//
},
{
//
{
path
:
'/houseData/shebeikanyan/:id'
,
name
:
'shebeiKanyan'
,
component
:
resolve
=>
require
([
'@/views/xuhui/shebeiKanyan'
],
resolve
),
//Shebei,
//
path: '/houseData/shebeikanyan/:id', name: 'shebeiKanyan', component: resolve => require(['@/views/xuhui/shebeiKanyan'], resolve), //Shebei,
meta
:
{
title
:
'设施设备(勘验)'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'00010101'
,
menuPath
:
false
},
//
meta: { title: '设施设备(勘验)', menuPath: true, hideInBread: false, authCode: '00010101', menuPath: false },
},
//
},
]
// ]
},
// },
{
//业委会列表
// {//业委会列表
path
:
'/houseData/indCous'
,
name
:
'indCous'
,
component
:
resolve
=>
require
([
'@/views/houseData/indCous'
],
resolve
),
//IndCous,
// path: '/houseData/indCous', name: 'indCous', component: resolve => require(['@/views/houseData/indCous'], resolve), //IndCous,
meta
:
{
title
:
'业委会'
,
menuPath
:
true
,
hideInBread
:
false
,
menuIcon
:
'bank'
,
authCode
:
'000102'
},
// meta: { title: '业委会', menuPath: true, hideInBread: false, menuIcon: 'bank', authCode: '000102' },
children
:
[
// children: [
{
// {
path
:
'/houseData/indCou/:id'
,
name
:
'indCouView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/indCou/:id', name: 'indCouView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'业委会详细情况'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'00010201'
},
// meta: { title: '业委会详细情况', menuPath: false, hideInBread: false, authCode: '00010201'},
},
// },
{
// {
path
:
'/houseData/members'
,
name
:
'members'
,
component
:
resolve
=>
require
([
'@/views/houseData/members'
],
resolve
),
//Members,
// path: '/houseData/members', name: 'members', component: resolve => require(['@/views/houseData/members'], resolve), //Members,
meta
:
{
title
:
'业委会成员列表'
,
hideInBread
:
false
,
authCode
:
'00010201'
,
menuPath
:
false
},
// meta: { title: '业委会成员列表', hideInBread: false, authCode: '00010201', menuPath: false},
children
:
[
// children: [
{
// {
path
:
'/houseData/member/:id'
,
name
:
'memberView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/member/:id', name: 'memberView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'业委会成员详情'
,
hideInBread
:
false
,
authCode
:
'00010201'
,
menuPath
:
false
}
// meta: { title: '业委会成员详情', hideInBread: false, authCode: '00010201', menuPath: false}
}
// }
]
// ]
},
// },
]
// ]
},
// },
{
//物业列表
// {//物业列表
path
:
'/houseData/propertyInfo'
,
name
:
'propertyInfo'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfo'
],
resolve
),
//PropertyInfo,
// path: '/houseData/propertyInfo', name: 'propertyInfo', component: resolve => require(['@/views/houseData/propertyInfo'], resolve), //PropertyInfo,
meta
:
{
title
:
'物业企业'
,
menuPath
:
true
,
menuIcon
:
'appstore'
,
hideInBread
:
false
,
authCode
:
'000103'
},
// meta: { title: '物业企业', menuPath: true, menuIcon: 'appstore', hideInBread: false, authCode: '000103' },
children
:
[
// children: [
{
// {
path
:
'/houseData/propertyInfo/:id'
,
name
:
'propertyInfoView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/propertyInfo/:id', name: 'propertyInfoView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'物业服务企业详细情况'
,
hideInBread
:
false
,
authCode
:
'00010301'
,
menuPath
:
false
}
// meta: { title: '物业服务企业详细情况', hideInBread: false, authCode: '00010301', menuPath: false}
}
// }
]
// ]
},
// },
{
// 小区管理处
// { // 小区管理处
path
:
'/houseData/cmDivision'
,
name
:
'cmDivision'
,
component
:
resolve
=>
require
([
'@/views/houseData/cmDivision'
],
resolve
),
//CmDivision,
// path: '/houseData/cmDivision', name: 'cmDivision', component: resolve => require(['@/views/houseData/cmDivision'], resolve), //CmDivision,
meta
:
{
title
:
'小区管理处'
,
menuPath
:
true
,
menuIcon
:
'build'
,
hideInBread
:
false
,
authCode
:
'000104'
},
// meta: { title: '小区管理处', menuPath: true, menuIcon: 'build', hideInBread: false, authCode: '000104' },
children
:
[
// children: [
{
// {
path
:
'/houseData/cmDivision/:id'
,
name
:
'cmDivisionView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/cmDivision/:id', name: 'cmDivisionView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'小区管理处详细情况'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'00010401'
}
// meta: { title: '小区管理处详细情况', menuPath: false, hideInBread: false, authCode: '00010401' }
}
// }
]
// ]
},
// },
{
// 小区经理
// { // 小区经理
path
:
'/houseData/managers'
,
name
:
'managers'
,
component
:
resolve
=>
require
([
'@/views/houseData/managers'
],
resolve
),
//Managers,
// path: '/houseData/managers', name: 'managers', component: resolve => require(['@/views/houseData/managers'], resolve), //Managers,
meta
:
{
title
:
'小区经理'
,
menuPath
:
true
,
hideInBread
:
false
,
menuIcon
:
'solution'
,
authCode
:
'000105'
},
// meta: { title: '小区经理', menuPath: true, hideInBread: false, menuIcon: 'solution', authCode: '000105'},
children
:
[
// children: [
{
// {
path
:
'/houseData/managers/:id'
,
name
:
'managerView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/managers/:id', name: 'managerView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'小区经理详细情况'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'00010501'
}
// meta: { title: '小区经理详细情况', menuPath: false, hideInBread: false, authCode: '00010501'}
},
// },
]
// ]
},
// },
{
//居委会列表
// {//居委会列表
path
:
'/houseData/neighborhoodCommittees'
,
name
:
'neighborhoodCommittees'
,
component
:
resolve
=>
require
([
'@/views/houseData/neighborhoodCommittees'
],
resolve
),
//neighborhoodCommittees,
// path: '/houseData/neighborhoodCommittees', name: 'neighborhoodCommittees', component: resolve => require(['@/views/houseData/neighborhoodCommittees'], resolve), //neighborhoodCommittees,
meta
:
{
title
:
'居委会'
,
menuPath
:
true
,
hideInBread
:
false
,
menuIcon
:
'shop'
,
authCode
:
'000106'
},
// meta: { title: '居委会', menuPath: true, hideInBread: false, menuIcon: 'shop', authCode: '000106'},
children
:
[
// children: [
{
// {
path
:
'/houseData/neighborhoodCommittees/:id'
,
name
:
'neighborhoodCommitteesView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/neighborhoodCommittees/:id', name: 'neighborhoodCommitteesView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'居委会详细情况'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'00010601'
},
// meta: { title: '居委会详细情况', menuPath: false, hideInBread: false, authCode: '00010601'},
},
// },
]
// ]
},
// },
]
// ]
},
// },
{
// {
path
:
'/noN'
,
name
:
'feiju'
,
redirect
:
{
name
:
'home'
},
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
// 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'
},
// meta: { title: '非居信息', menuPath: true, menuIcon: 'laptop', hideInBread: true, authCode: '0002' },
children
:
[
// children: [
{
// 非居列表
// { // 非居列表
path
:
'/houseData/nonResidents'
,
name
:
'nonResidents'
,
component
:
resolve
=>
require
([
'@/views/houseData/nonResidents'
],
resolve
),
//NonResidents,
// path: '/houseData/nonResidents', name: 'nonResidents', component: resolve => require(['@/views/houseData/nonResidents'], resolve), //NonResidents,
meta
:
{
title
:
'非居项目信息列表'
,
menuPath
:
true
,
menuIcon
:
'laptop'
,
hideInBread
:
false
,
authCode
:
'000201'
},
// meta: { title: '非居项目信息列表', menuPath: true, menuIcon: 'laptop', hideInBread: false, authCode: '000201'},
children
:
[
// children: [
{
// {
path
:
'/houseData/nonResident/:id'
,
name
:
'nonResidentsView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
// path: '/houseData/nonResident/:id', name: 'nonResidentsView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta
:
{
title
:
'非居详细情况'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'000201'
}
// 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
:
'/houseData/nonBuildingList'
,
name
:
'nonBuildingList'
,
component
:
resolve
=>
require
([
'@/views/houseData/nonBuildingList'
],
resolve
),
//PropertyInfoView
,
path
:
'/receipt'
,
name
:
'receipt'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper
,
meta
:
{
title
:
'非居门牌幢列表'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'000201'
},
meta
:
{
title
:
'单据'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
true
},
children
:
[
children
:
[
{
{
path
:
'/houseData/nonBuildingList/nonBuildingInfo/:id'
,
name
:
'nonBuildingInfo'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
path
:
'/receipt/receiptList'
,
name
:
'receiptList'
,
component
:
resolve
=>
require
([
'@/views/receiptService/receiptList.vue'
],
resolve
),
//basicInfo,
meta
:
{
title
:
'非居门牌幢详情'
,
menuPath
:
false
,
hideInBread
:
false
,
authCode
:
'000201'
}
meta
:
{
title
:
'单据列表'
,
menuPath
:
true
,
hideInBread
:
false
,
},
}
]
},
]
},
},
]
]
},
},
...
...
src/server/ajax.js
View file @
352a1fb5
...
@@ -103,6 +103,7 @@ const errorHandler = (err) => {
...
@@ -103,6 +103,7 @@ const errorHandler = (err) => {
Axios
.
interceptors
.
request
.
use
(
config
=>
{
Axios
.
interceptors
.
request
.
use
(
config
=>
{
const
token
=
Cookie
.
get
(
'token'
)
||
Store
.
state
.
token
const
token
=
Cookie
.
get
(
'token'
)
||
Store
.
state
.
token
console
.
log
(
token
)
if
(
token
)
{
if
(
token
)
{
config
.
headers
.
Authorization
=
token
config
.
headers
.
Authorization
=
token
}
}
...
...
src/server/api.js
View file @
352a1fb5
let
BASE_URL
=
''
,
MOCK_URL
=
''
,
let
BASE_URL
=
''
,
MOCK_URL
=
''
,
WBX_URL
=
''
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
switch
(
process
.
env
.
NODE_ENV
)
{
switch
(
process
.
env
.
NODE_ENV
)
{
...
@@ -38,6 +38,7 @@ default: // 默认环境下(开发环境)
...
@@ -38,6 +38,7 @@ default: // 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
WBX_URL
=
'http://wbx.omniview.pro'
BASE_URL
=
'http://yangpu-hm.omniview.pro/api/v2'
BASE_URL
=
'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
...
@@ -228,5 +229,6 @@ export default {
...
@@ -228,5 +229,6 @@ export default {
POST_LABEL_RESULT_PREVIEW
:
'/service-customkey-ddd/findLabelObject'
,
// 标签预览
POST_LABEL_RESULT_PREVIEW
:
'/service-customkey-ddd/findLabelObject'
,
// 标签预览
POST_LABEL_CREATE_CONFIRM
:
'/service-customkey-ddd/label/confirm'
,
POST_LABEL_CREATE_CONFIRM
:
'/service-customkey-ddd/label/confirm'
,
GET_ID_INFO_BY_LABEL
:
'/service-customkey-ddd/label/resource/datas'
,
GET_ID_INFO_BY_LABEL
:
'/service-customkey-ddd/label/resource/datas'
,
GET_WY_AND_YWH_LIST
:
'/service-customkey-ddd/datas'
GET_WY_AND_YWH_LIST
:
'/service-customkey-ddd/datas'
,
GET_RESERVATION_LIST
:
WBX_URL
+
'/api/service-documents/repair/reservations'
}
}
src/views/home copy.vue
View file @
352a1fb5
...
@@ -714,27 +714,27 @@ export default {
...
@@ -714,27 +714,27 @@ export default {
mounted
(){
mounted
(){
this
.
getConfig
()
this
.
getConfig
()
this
.
getList
()
this
.
getList
()
this
.
$ajax
.
get
({
//
this.$ajax.get({
url
:
this
.
$api
.
GET_USER_INFO
,
//
url: this.$api.GET_USER_INFO,
}).
then
(
res
=>
{
//
}).then(res => {
if
(
res
.
code
==
200
)
{
//
if(res.code == 200) {
if
(
!!
res
.
data
.
content
.
isAllPerm
)
{
//
if(!!res.data.content.isAllPerm) {
this
.
getDisposal
()
//
this.getDisposal()
this
.
getHouthMonth
()
//
this.getHouthMonth()
this
.
getCheckData
()
//
this.getCheckData()
this
.
getCheckPeople
()
//
this.getCheckPeople()
this
.
getSectNum
()
//
this.getSectNum()
this
.
getReceiptsNum
()
//
this.getReceiptsNum()
this
.
getRepair
()
//
this.getRepair()
this
.
getTousuQuestion
(
'M'
)
//
this.getTousuQuestion('M')
this
.
getTousuQuestion
(
'Y'
)
//
this.getTousuQuestion('Y')
this
.
getTousuQuestion
(
'S'
)
//
this.getTousuQuestion('S')
this
.
getTousuDensity
(
'M'
)
//
this.getTousuDensity('M')
this
.
getTousuDensity
(
'Y'
)
//
this.getTousuDensity('Y')
this
.
getTousuDensity
(
'S'
)
//
this.getTousuDensity('S')
}
//
}
}
//
}
})
//
})
// })
// })
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// this.getDisposal()
// this.getDisposal()
...
...
src/views/homeXuhui.vue
View file @
352a1fb5
...
@@ -715,27 +715,27 @@ export default {
...
@@ -715,27 +715,27 @@ export default {
mounted
(){
mounted
(){
this
.
getConfig
()
this
.
getConfig
()
this
.
getList
()
this
.
getList
()
this
.
$ajax
.
get
({
//
this.$ajax.get({
url
:
this
.
$api
.
GET_USER_INFO
,
//
url: this.$api.GET_USER_INFO,
}).
then
(
res
=>
{
//
}).then(res => {
if
(
res
.
code
==
200
)
{
//
if(res.code == 200) {
if
(
!!
res
.
data
.
content
.
isAllPerm
)
{
//
if(!!res.data.content.isAllPerm) {
this
.
getDisposal
()
//
this.getDisposal()
this
.
getHouthMonth
()
//
this.getHouthMonth()
this
.
getCheckData
()
//
this.getCheckData()
this
.
getCheckPeople
()
//
this.getCheckPeople()
this
.
getSectNum
()
//
this.getSectNum()
this
.
getReceiptsNum
()
//
this.getReceiptsNum()
this
.
getRepair
()
//
this.getRepair()
this
.
getTousuQuestion
(
'M'
)
//
this.getTousuQuestion('M')
this
.
getTousuQuestion
(
'Y'
)
//
this.getTousuQuestion('Y')
this
.
getTousuQuestion
(
'S'
)
//
this.getTousuQuestion('S')
this
.
getTousuDensity
(
'M'
)
//
this.getTousuDensity('M')
this
.
getTousuDensity
(
'Y'
)
//
this.getTousuDensity('Y')
this
.
getTousuDensity
(
'S'
)
//
this.getTousuDensity('S')
}
//
}
}
//
}
})
//
})
// })
// })
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// this.getDisposal()
// this.getDisposal()
...
...
src/views/personal/sysInfoSetting.vue
View file @
352a1fb5
...
@@ -81,7 +81,7 @@ export default {
...
@@ -81,7 +81,7 @@ export default {
},
},
created
(){
created
(){
this
.
getLogo
()
this
.
getLogo
()
this
.
getInfo
()
//
this.getInfo()
},
},
methods
:
{
methods
:
{
getInfo
()
{
getInfo
()
{
...
...
src/views/receiptService/receiptList.vue
0 → 100644
View file @
352a1fb5
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name=='receiptList'"
>
<span
class=
"title"
>
预约列表
</span>
</div>
<div
v-if=
"$route.name=='receiptList'"
class=
"layoutMargin layoutPadding"
>
<div
class=
"portalTableOperates"
>
<a-table
bordered
class=
"portalTable"
:dataSource=
"receiptList"
:columns=
"columns"
size=
"small"
:pagination=
"pagination"
rowKey=
"id"
>
<span
slot=
"homeDate"
slot-scope=
"text,record"
align=
"center"
>
{{
!!
record
.
homeDate
?
record
.
homeDate
.
split
(
' '
)[
0
]:
''
}}
</span>
</a-table>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
receiptList
:
[],
pagination
:
{
//分页
pageNo
:
1
,
pageSize
:
10
,
total
:
10
,
current
:
1
,
defaultCurrent
:
1
,
showQuickJumper
:
true
,
onChange
:
this
.
pageChange
},
columns
:
[
{
title
:
'小区名称'
,
dataIndex
:
'stNameFrst'
,
align
:
'center'
,
key
:
'stNameFrst'
,
},
{
title
:
'门牌详细地址'
,
dataIndex
:
'addrFrst'
,
align
:
'center'
,
key
:
'addrFrst'
,
},
{
title
:
'报修部位'
,
dataIndex
:
'place'
,
align
:
'center'
,
key
:
'place'
,
},
{
title
:
'报修类型'
,
dataIndex
:
'type'
,
align
:
'center'
,
key
:
'type'
,
},
{
title
:
'描述'
,
dataIndex
:
'dscr'
,
align
:
'center'
,
key
:
'dscr'
,
},
{
title
:
'上门日期'
,
dataIndex
:
'homeDate'
,
align
:
'center'
,
key
:
'homeDate'
,
scopedSlots
:
{
customRender
:
'homeDate'
,
},
},
{
title
:
'上门时间'
,
dataIndex
:
'homeTime'
,
align
:
'center'
,
key
:
'homeTime'
,
},
]
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
getList
()
{
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RESERVATION_LIST
,
params
:
{
pageNo
:
this
.
pagination
.
current
,
pageSize
:
this
.
pagination
.
pageSize
,
homeDate_desc
:
'desc'
}
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
//先获取全部的自定义字段列表
this
.
receiptList
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
pagination
.
total
=
res
.
data
.
totalRows
// console.log(this.extList)
}
})
},
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
getList
()
},
}
}
</
script
>
\ No newline at end of file
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