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
Expand all
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 @@
</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=
"1"
>
个人中心
</a-menu-item>
-->
<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"
>
...
...
@@ -157,8 +156,8 @@ export default {
},
},
created
(){
this
.
getLogo
()
this
.
getInfo
()
//
this.getLogo()
//
this.getInfo()
},
methods
:
{
showChangePwdModal
(){
...
...
src/components/Layout/main.vue
View file @
352a1fb5
...
...
@@ -299,9 +299,9 @@ export default {
},
created
(){
this
.
getLogo
()
//
this.getLogo()
this
.
getInfo
()
//
this.getInfo()
/** 持久化存储vuex 使其页面刷新后数据不丢失 */
//在页面加载时读取sessionStorage里的状态信息
...
...
src/components/Layout/sidemenu.vue
View file @
352a1fb5
...
...
@@ -54,7 +54,7 @@ export default {
return
{
openKeys
:
[],
selectedKeys
:
[],
//
menus: [],
menus
:
[],
isAllPerm
:
false
}
},
...
...
@@ -68,76 +68,37 @@ export default {
},
},
mounted
(){
// this.$ajax.get({
// url: this.$api.GET_USER_INFO,
// }).then(res => {
// if(res.code == 200) {
// this.isAllPerm = res.data.content.isAllPerm
// console.log(this.isAllPerm)
// let menus=[]
// let tempmenu = []
// let isLoadExtendMenu = this.$cookie.get('customKeyEnable')
// for(let i=0;i
<
routes
.
length
;
i
++
){
// if(!!routes[i].children){
// for(let j=0;j
<
routes
[
i
].
children
.
length
;
j
++
){
// if(!!this.isAllPerm) { // 超管访问
// 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) {
// 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])
// }
let
menus
=
[]
let
tempmenu
=
[]
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
){
if
(
!!
routes
[
i
].
children
){
for
(
let
j
=
0
;
j
<
routes
[
i
].
children
.
length
;
j
++
){
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
)
{
for
(
let
k
=
0
;
k
<
target
.
length
;
k
++
)
{
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) {
// 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
// }
// })
}
}
}
this
.
menus
=
menus
},
computed
:
{
menus
(){
// console.log(this.$store.state.menuList)
return
this
.
$store
.
state
.
menuList
}
//
menus(){
//
// console.log(this.$store.state.menuList)
//
return this.$store.state.menuList
//
}
},
methods
:
{
// 点击菜单,收起其他展开的菜单
...
...
src/router/getMicRouters.js
View file @
352a1fb5
...
...
@@ -87,19 +87,19 @@ function GetRoutes(router) {
const
{
routes
}
=
router
.
options
const
parent
=
routes
.
find
(
item
=>
item
.
name
===
'Layout'
)
for
(
let
key
in
micSystemRoutersConfigs
)
{
for
(
let
i
=
0
;
i
<
micSystemRoutersConfigs
[
key
].
length
;
i
++
)
{
let
firstRouter
=
Object
.
assign
({},
micSystemRoutersConfigs
[
key
][
i
])
if
(
!!
firstRouter
.
meta
.
openMode
&&
firstRouter
.
meta
.
openMode
==
'outsite'
)
{
firstRouter
.
component
=
TipsOutsite
}
parent
.
children
.
push
(
Object
.
assign
({},
firstRouter
))
router
.
addRoutes
([
parent
])
}
}
//
for (let key in micSystemRoutersConfigs) {
//
for (let i = 0; i < micSystemRoutersConfigs[key].length; i++) {
//
let firstRouter = Object.assign({}, micSystemRoutersConfigs[key][i])
//
if (
//
!!firstRouter.meta.openMode &&
//
firstRouter.meta.openMode == 'outsite'
//
) {
//
firstRouter.component = TipsOutsite
//
}
//
parent.children.push(Object.assign({}, firstRouter))
//
router.addRoutes([ parent ])
//
}
//
}
}
...
...
src/router/index.js
View file @
352a1fb5
...
...
@@ -12,17 +12,17 @@ const router = new Router({
routes
,
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// TODO
store
.
commit
(
'setWebviewSrc'
,
to
.
meta
&&
to
.
meta
.
src
)
// 判断有src的话为需要嵌入iframe的子项目
//
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
()
}
})
//
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 @
352a1fb5
This diff is collapsed.
Click to expand it.
src/server/ajax.js
View file @
352a1fb5
...
...
@@ -103,6 +103,7 @@ const errorHandler = (err) => {
Axios
.
interceptors
.
request
.
use
(
config
=>
{
const
token
=
Cookie
.
get
(
'token'
)
||
Store
.
state
.
token
console
.
log
(
token
)
if
(
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'
switch
(
process
.
env
.
NODE_ENV
)
{
...
...
@@ -38,6 +38,7 @@ default: // 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// 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://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
...
...
@@ -228,5 +229,6 @@ export default {
POST_LABEL_RESULT_PREVIEW
:
'/service-customkey-ddd/findLabelObject'
,
// 标签预览
POST_LABEL_CREATE_CONFIRM
:
'/service-customkey-ddd/label/confirm'
,
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 {
mounted
(){
this
.
getConfig
()
this
.
getList
()
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_USER_INFO
,
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
!!
res
.
data
.
content
.
isAllPerm
)
{
this
.
getDisposal
()
this
.
getHouthMonth
()
this
.
getCheckData
()
this
.
getCheckPeople
()
this
.
getSectNum
()
this
.
getReceiptsNum
()
this
.
getRepair
()
this
.
getTousuQuestion
(
'M'
)
this
.
getTousuQuestion
(
'Y'
)
this
.
getTousuQuestion
(
'S'
)
this
.
getTousuDensity
(
'M'
)
this
.
getTousuDensity
(
'Y'
)
this
.
getTousuDensity
(
'S'
)
}
}
})
//
this.$ajax.get({
//
url: this.$api.GET_USER_INFO,
//
}).then(res => {
//
if(res.code == 200) {
//
if(!!res.data.content.isAllPerm) {
//
this.getDisposal()
//
this.getHouthMonth()
//
this.getCheckData()
//
this.getCheckPeople()
//
this.getSectNum()
//
this.getReceiptsNum()
//
this.getRepair()
//
this.getTousuQuestion('M')
//
this.getTousuQuestion('Y')
//
this.getTousuQuestion('S')
//
this.getTousuDensity('M')
//
this.getTousuDensity('Y')
//
this.getTousuDensity('S')
//
}
//
}
//
})
// })
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// this.getDisposal()
...
...
src/views/homeXuhui.vue
View file @
352a1fb5
...
...
@@ -715,27 +715,27 @@ export default {
mounted
(){
this
.
getConfig
()
this
.
getList
()
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_USER_INFO
,
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
!!
res
.
data
.
content
.
isAllPerm
)
{
this
.
getDisposal
()
this
.
getHouthMonth
()
this
.
getCheckData
()
this
.
getCheckPeople
()
this
.
getSectNum
()
this
.
getReceiptsNum
()
this
.
getRepair
()
this
.
getTousuQuestion
(
'M'
)
this
.
getTousuQuestion
(
'Y'
)
this
.
getTousuQuestion
(
'S'
)
this
.
getTousuDensity
(
'M'
)
this
.
getTousuDensity
(
'Y'
)
this
.
getTousuDensity
(
'S'
)
}
}
})
//
this.$ajax.get({
//
url: this.$api.GET_USER_INFO,
//
}).then(res => {
//
if(res.code == 200) {
//
if(!!res.data.content.isAllPerm) {
//
this.getDisposal()
//
this.getHouthMonth()
//
this.getCheckData()
//
this.getCheckPeople()
//
this.getSectNum()
//
this.getReceiptsNum()
//
this.getRepair()
//
this.getTousuQuestion('M')
//
this.getTousuQuestion('Y')
//
this.getTousuQuestion('S')
//
this.getTousuDensity('M')
//
this.getTousuDensity('Y')
//
this.getTousuDensity('S')
//
}
//
}
//
})
// })
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// this.getDisposal()
...
...
src/views/personal/sysInfoSetting.vue
View file @
352a1fb5
...
...
@@ -81,7 +81,7 @@ export default {
},
created
(){
this
.
getLogo
()
this
.
getInfo
()
//
this.getInfo()
},
methods
:
{
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