Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
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
wbx-PCAndMobi
pc
Commits
5346c242
Commit
5346c242
authored
Mar 08, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
之前更改
parent
aee97ab3
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
60 deletions
+128
-60
sidemenu.vue
src/components/Layout/sidemenu.vue
+58
-23
main.js
src/main.js
+2
-0
getMicRouters.js
src/router/getMicRouters.js
+3
-1
yangpuRoutes.json
src/router/yangpuRoutes.json
+15
-8
api.js
src/server/api.js
+4
-2
home.vue
src/views/home.vue
+43
-26
feeStandard.vue
src/views/houseData/feeStandard.vue
+3
-0
No files found.
src/components/Layout/sidemenu.vue
View file @
5346c242
...
@@ -43,6 +43,7 @@ export default {
...
@@ -43,6 +43,7 @@ export default {
openKeys
:
[],
openKeys
:
[],
selectedKeys
:
[],
selectedKeys
:
[],
menus
:
[],
menus
:
[],
isAllPerm
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -55,12 +56,19 @@ export default {
...
@@ -55,12 +56,19 @@ export default {
},
},
},
},
mounted
(){
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
menus
=
[]
let
tempmenu
=
[]
let
tempmenu
=
[]
let
isLoadExtendMenu
=
this
.
$cookie
.
get
(
'customKeyEnable'
)
let
isLoadExtendMenu
=
this
.
$cookie
.
get
(
'customKeyEnable'
)
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
){
if
(
!!
routes
[
i
].
children
){
if
(
!!
routes
[
i
].
children
){
for
(
let
j
=
0
;
j
<
routes
[
i
].
children
.
length
;
j
++
){
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'
){
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
&&
routes
[
i
].
children
[
j
].
name
==
'systemManagement'
&&
isLoadExtendMenu
==
'false'
){
let
target
=
routes
[
i
].
children
[
j
].
children
let
target
=
routes
[
i
].
children
[
j
].
children
if
(
target
.
length
>
0
)
{
if
(
target
.
length
>
0
)
{
...
@@ -81,10 +89,37 @@ export default {
...
@@ -81,10 +89,37 @@ export default {
}
else
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
)
{
}
else
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
)
{
menus
.
push
(
routes
[
i
].
children
[
j
])
menus
.
push
(
routes
[
i
].
children
[
j
])
}
}
}
else
if
(
!
this
.
isAllPerm
)
{
// 非超管访问
if
(
routes
[
i
].
children
[
j
].
meta
.
requirePerm
==
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
}
})
},
},
methods
:
{
methods
:
{
// 点击菜单,收起其他展开的菜单
// 点击菜单,收起其他展开的菜单
...
...
src/main.js
View file @
5346c242
...
@@ -56,6 +56,7 @@ import {
...
@@ -56,6 +56,7 @@ import {
// BackTop,
// BackTop,
// Carousel,
// Carousel,
Tooltip
,
Tooltip
,
Tree
// Progress,
// Progress,
// CollapsePanel
// CollapsePanel
}
from
'ant-design-vue'
}
from
'ant-design-vue'
...
@@ -114,6 +115,7 @@ Vue.use(Divider)
...
@@ -114,6 +115,7 @@ Vue.use(Divider)
Vue
.
use
(
Upload
)
Vue
.
use
(
Upload
)
Vue
.
use
(
Modal
)
Vue
.
use
(
Modal
)
Vue
.
use
(
Progress
)
Vue
.
use
(
Progress
)
Vue
.
use
(
Tree
)
// Vue.use(badge)
// Vue.use(badge)
// Vue.use(skeleton)
// Vue.use(skeleton)
// Vue.use(Tree)
// Vue.use(Tree)
...
...
src/router/getMicRouters.js
View file @
5346c242
...
@@ -48,7 +48,7 @@ async function GetRoutes(router) {
...
@@ -48,7 +48,7 @@ async function GetRoutes(router) {
break
break
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
MicRouters
=
yangpu
MicRouters
=
xuhui
break
break
}
}
...
@@ -99,6 +99,8 @@ async function GetRoutes(router) {
...
@@ -99,6 +99,8 @@ async function GetRoutes(router) {
}
}
}
}
console
.
log
(
router
)
// for(let key in documents) {
// for(let key in documents) {
// for (let i = 0; i < documents[key].length; i++) {
// for (let i = 0; i < documents[key].length; i++) {
// let firstRouter = Object.assign({}, documents[key][i])
// let firstRouter = Object.assign({}, documents[key][i])
...
...
src/router/yangpuRoutes.json
View file @
5346c242
...
@@ -2,16 +2,23 @@
...
@@ -2,16 +2,23 @@
"Layout"
:
[
"Layout"
:
[
{
{
"path"
:
"/documentOne/month"
,
"name"
:
"month"
,
"path"
:
"/documentOne/month"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
"children"
:
[
{
{
"path"
:
"/documentOne/month/monthList"
,
"name"
:
"month"
,
"path"
:
"/documentOne/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"房办月查"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documentOne/month/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
"children"
:
[
{
{
"path"
:
"/documentOne/month/monthInfo"
,
"name"
:
"monthInfo"
,
"path"
:
"/documentOne/month/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
}
]
]
}
}
]
]
...
...
src/server/api.js
View file @
5346c242
...
@@ -65,7 +65,7 @@ default: // 默认环境下(开发环境)
...
@@ -65,7 +65,7 @@ default: // 默认环境下(开发环境)
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://xuhui.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://211.136.105.193/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// MOCK_URL = 'https://yapi.omniview.pro/mock/278
'
MOCK_URL
=
'https://yapi.omniview.pro/mock/283
'
break
break
}
}
/**
/**
...
@@ -199,6 +199,8 @@ export default {
...
@@ -199,6 +199,8 @@ export default {
// get_specialInspection: '/service-documents-ddd/statistical/specialInspection', //行业督查数字
// get_specialInspection: '/service-documents-ddd/statistical/specialInspection', //行业督查数字
get_specialInspection
:
'/service-documents-ddd/statistical/specialInspection'
,
//行业督查数字
get_specialInspection
:
'/service-documents-ddd/statistical/specialInspection'
,
//行业督查数字
get_month_check
:
'service-documents-ddd/dashboard/house/month'
get_month_check
:
'service-documents-ddd/dashboard/house/month'
,
GET_LABEL_LIST
:
MOCK_URL
+
'/service-customkey-ddd/labels'
,
// 获取标签列表
}
}
src/views/home.vue
View file @
5346c242
...
@@ -40,23 +40,23 @@
...
@@ -40,23 +40,23 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"secBox"
>
<div
class=
"secBox"
v-if=
"$store.state.userInfos && $store.state.userInfos.isAllPerm"
>
<IndustrySupervision
style=
"width:35%"
/>
<IndustrySupervision
style=
"width:35%"
/>
<ComplaintsTrain
moduletitle=
"投诉直通车"
style=
"width:48%"
/>
<ComplaintsTrain
moduletitle=
"投诉直通车"
style=
"width:48%"
/>
<FileModule
style=
"width:13%;"
/>
<FileModule
style=
"width:13%;"
/>
</div>
</div>
<div
class=
"thirdBox"
>
<div
class=
"thirdBox"
v-if=
"$store.state.userInfos && $store.state.userInfos.isAllPerm"
>
<ManagementModule
moduletitle=
"信用"
style=
"width:32.5%"
/>
<ManagementModule
moduletitle=
"信用"
style=
"width:32.5%"
/>
<ManagementModule
moduletitle=
"风险"
style=
"width:32.5%"
/>
<ManagementModule
moduletitle=
"风险"
style=
"width:32.5%"
/>
<ManagementModule
moduletitle=
"分类"
style=
"width:32.5%"
/>
<ManagementModule
moduletitle=
"分类"
style=
"width:32.5%"
/>
</div>
</div>
<div
class=
"fourthBox"
>
<div
class=
"fourthBox"
v-if=
"$store.state.userInfos && $store.state.userInfos.isAllPerm"
>
<RiskDisposal
style=
"width:30%"
/>
<RiskDisposal
style=
"width:30%"
/>
<RetrofitElevator
style=
"width:32%"
/>
<RetrofitElevator
style=
"width:32%"
/>
<ComplaintsTrain
moduletitle=
"应急报修"
style=
"width:36%"
/>
<ComplaintsTrain
moduletitle=
"应急报修"
style=
"width:36%"
/>
</div>
</div>
</div>
</div>
<div
id=
"home"
class=
"layoutPadding"
>
<div
id=
"home"
class=
"layoutPadding"
v-else
>
<!--
<div
id=
"home"
class=
"layoutPadding"
v-else
>
-->
<!--
<div
id=
"home"
class=
"layoutPadding"
v-else
>
-->
<a-row
type=
"flex"
class=
"align-stretch"
>
<a-row
type=
"flex"
class=
"align-stretch"
>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
</div>
</div>
</a-col>
-->
</a-col>
-->
</a-row>
</a-row>
<a-row
v-if=
"$store.state.userInfos
&&
$store.state.userInfos.isAllPerm"
class=
"align-stretch"
style=
"margin-top:20px;"
>
<a-row
v-if=
"$store.state.userInfos
&&
$store.state.userInfos.isAllPerm"
class=
"align-stretch"
style=
"margin-top:20px;"
>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<div
class=
"month"
>
<div
class=
"month"
>
<div
class=
"home-card monthTitle"
>
<div
class=
"home-card monthTitle"
>
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
<div
class=
"jiancha"
>
<div
class=
"jiancha"
>
<div
class=
"home-card jianchaTitle"
>
<div
class=
"home-card jianchaTitle"
>
<span>
专项检查
</span>
<span>
专项检查
</span>
<img
src=
"@/assets/icon/tp.png"
@
click=
"openOutUrl2"
style=
"height:20px;"
alt=
""
>
<img
src=
"@/assets/icon/tp.png"
style=
"height:20px;"
alt=
""
>
</div>
</div>
<div
style=
"height: calc(100% - 55px);"
>
<div
style=
"height: calc(100% - 55px);"
>
<a-row
class=
"jianchaBox"
>
<a-row
class=
"jianchaBox"
>
...
@@ -713,9 +713,12 @@ export default {
...
@@ -713,9 +713,12 @@ export default {
created
(){},
created
(){},
mounted
(){
mounted
(){
this
.
getConfig
()
this
.
getConfig
()
if
(
this
.
$api
.
BASE_URL
.
indexOf
(
'xuhui'
)
!=-
1
||
this
.
$api
.
BASE_URL
.
indexOf
(
'31.0.161.39'
)
!=-
1
)
{
//徐汇分支
this
.
getList
()
this
.
getList
()
if
(
this
.
$store
.
state
.
userinfos
&&
this
.
$store
.
state
.
userinfos
.
isAllPerm
)
{
// 不是全部权限dashboard下方的模块不展示
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_USER_INFO
,
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
!!
res
.
data
.
content
.
isAllPerm
)
{
this
.
getDisposal
()
this
.
getDisposal
()
this
.
getHouthMonth
()
this
.
getHouthMonth
()
this
.
getCheckData
()
this
.
getCheckData
()
...
@@ -730,9 +733,24 @@ export default {
...
@@ -730,9 +733,24 @@ export default {
this
.
getTousuDensity
(
'Y'
)
this
.
getTousuDensity
(
'Y'
)
this
.
getTousuDensity
(
'S'
)
this
.
getTousuDensity
(
'S'
)
}
}
}
}
})
// })
// if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
// 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')
// }
},
},
methods
:
{
methods
:
{
/**
/**
...
@@ -987,7 +1005,6 @@ export default {
...
@@ -987,7 +1005,6 @@ export default {
if
(
res
.
code
===
'200'
)
{
if
(
res
.
code
===
'200'
)
{
this
.
openConfig
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[]).
customKeyEnable
this
.
openConfig
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[]).
customKeyEnable
console
.
log
(
this
.
openConfig
)
// 是否开启自定义字段存入cookie
// 是否开启自定义字段存入cookie
this
.
$cookie
.
set
(
'customKeyEnable'
,
this
.
openConfig
)
this
.
$cookie
.
set
(
'customKeyEnable'
,
this
.
openConfig
)
let
isXuHui
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
let
isXuHui
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
...
...
src/views/houseData/feeStandard.vue
View file @
5346c242
...
@@ -137,6 +137,9 @@ export default {
...
@@ -137,6 +137,9 @@ export default {
}
}
})
})
},
},
backPage
(){
// 返回按钮
this
.
$router
.
back
()
},
changeMeaning
(
type
,
num
)
{
changeMeaning
(
type
,
num
)
{
console
.
log
(
type
,
num
)
console
.
log
(
type
,
num
)
if
(
type
==
'changedCosts'
)
{
if
(
type
==
'changedCosts'
)
{
...
...
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