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
d9a6592f
Commit
d9a6592f
authored
Apr 29, 2021
by
zhangrui123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限,日志
parent
a51c3b1f
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1748 additions
and
600 deletions
+1748
-600
sidemenu.vue
src/components/Layout/sidemenu.vue
+74
-64
documentsRoutes.json
src/router/documentsRoutes.json
+87
-47
routes.js
src/router/routes.js
+73
-45
xuhuiRoutes.json
src/router/xuhuiRoutes.json
+3
-60
api.js
src/server/api.js
+2
-1
mixins.js
src/util/mixins.js
+2
-2
propertyInfoView.vue
src/views/houseData/propertyInfoView.vue
+1
-1
tbls.vue
src/views/houseData/tbls.vue
+86
-86
edit.vue
src/views/personal/InternalStaff/edit.vue
+15
-8
index.vue
src/views/personal/InternalStaff/index.vue
+12
-14
1
src/views/personal/rizhi/1
+0
-39
feijuInfo.vue
src/views/personal/rizhi/feijuInfo.vue
+12
-9
guanlichu.vue
src/views/personal/rizhi/guanlichu.vue
+114
-0
info.vue
src/views/personal/rizhi/info.vue
+46
-167
jingli.vue
src/views/personal/rizhi/jingli.vue
+114
-0
juese.vue
src/views/personal/rizhi/juese.vue
+170
-0
juweihui.vue
src/views/personal/rizhi/juweihui.vue
+114
-0
rizhiList.vue
src/views/personal/rizhi/rizhiList.vue
+83
-9
tuozhanxinxiguanliInfo.vue
src/views/personal/rizhi/tuozhanxinxiguanliInfo.vue
+130
-0
wuyeqiye.vue
src/views/personal/rizhi/wuyeqiye.vue
+114
-0
xitongInfo.vue
src/views/personal/rizhi/xitongInfo.vue
+0
-0
xitongxinxi.vue
src/views/personal/rizhi/xitongxinxi.vue
+123
-0
yewei.vue
src/views/personal/rizhi/yewei.vue
+114
-0
zhanghuInfo.vue
src/views/personal/rizhi/zhanghuInfo.vue
+199
-0
list.vue
src/views/personal/role/list.vue
+60
-48
No files found.
src/components/Layout/sidemenu.vue
View file @
d9a6592f
...
...
@@ -16,7 +16,17 @@
<span>
{{
menu
.
meta
.
title
}}
</span>
</span>
<template
v-for=
"child in menu.children"
>
<a-menu-item
:key=
"child.key"
@
click=
"onclick(child.name)"
>
<!--
<a-menu-item
:key=
"child.key"
@
click=
"onclick(child.name)"
>
<a-icon
:type=
"child.meta.menuIcon?child.meta.menuIcon:'bars'"
/>
{{
child
.
meta
.
title
}}
</a-menu-item>
-->
<template
v-if=
"child.meta.title == '系统信息配置' ||child.meta.title == '拓展信息管理'|| child.meta.title == '日志管理'"
>
<a-menu-item
v-if=
"$store.state.hasAllRight"
:key=
"child.key"
@
click=
"onclick(child.name)"
>
<a-icon
:type=
"child.meta.menuIcon?child.meta.menuIcon:'bars'"
/>
{{
child
.
meta
.
title
}}
</a-menu-item>
</
template
>
<a-menu-item
v-else
:key=
"child.key"
@
click=
"onclick(child.name)"
>
<a-icon
:type=
"child.meta.menuIcon?child.meta.menuIcon:'bars'"
/>
{{child.meta.title}}
</a-menu-item>
...
...
@@ -56,70 +66,70 @@ 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
])
}
//
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])
//
}
}
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
}
})
//
} 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
//
}
//
})
},
computed
:
{
menus
(){
...
...
src/router/documentsRoutes.json
View file @
d9a6592f
{
"Layout"
:
[
{
"path"
:
"/documents/fiveSearch"
,
"name"
:
"fiveSearch"
,
"meta"
:
{
"title"
:
"物业三查"
,
"menuPath"
:
true
,
"authCode"
:
"0007"
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList"
,
"name"
:
"managerSelfCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查"
,
"menuPath"
:
true
,
"authCode"
:
"000701"
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckList"
,
"name"
:
"managerCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查检查单列表"
,
"authCode"
:
"000701"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckInfo"
,
"name"
:
"managerCheckInfo"
,
"meta"
:
{
"title"
:
"小区经理自查检查单详情"
,
"authCode"
:
"00070101"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070102"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList"
,
"name"
:
"doubleWeekCheckList"
,
"meta"
:
{
"title"
:
"物企双周查"
,
"authCode"
:
"000702"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckList"
,
"name"
:
"doubleCheckList"
,
"meta"
:
{
"title"
:
"物企双周查列表"
,
"authCode"
:
"000702"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckInfo"
,
"name"
:
"doubleCheckInfo"
,
"meta"
:
{
"title"
:
"物企双周查详情"
,
"authCode"
:
"00070201"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070202"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"authCode"
:
"0006"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"authCode"
:
"000704"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"authCode"
:
"00070401"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/fiveSearch/mutableList"
,
"name"
:
"mutableList"
,
"meta"
:
{
"title"
:
"整改单列表"
,
"authCode"
:
"000703"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/mutableList/info"
,
"name"
:
"mutableInfo"
,
"meta"
:
{
"title"
:
"整改单详情"
,
"authCode"
:
"00070301"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"authCode"
:
"0005"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
...
...
@@ -41,72 +110,43 @@
}
]
},
{
"path"
:
"/documents/
fiveSearch"
,
"name"
:
"fiveSearch"
,
"meta"
:
{
"title"
:
"
物业五查"
,
"menuPath"
:
true
,
"authCode"
:
"0007"
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
tru
e
},
{
"path"
:
"/documents/
ledger"
,
"name"
:
"ledger"
,
"meta"
:
{
"title"
:
"
区房屋台账"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
fals
e
},
"children"
:
[
{
"path"
:
"/documents/
fiveSearch/managerSelfCheckList"
,
"name"
:
"managerSelfCheckList"
,
"meta"
:
{
"title"
:
"
小区经理自查"
,
"menuPath"
:
true
,
"authCode"
:
"000701"
,
"hideInBread"
:
false
},
"path"
:
"/documents/
ledger/community"
,
"name"
:
"communityList"
,
"meta"
:
{
"title"
:
"
住宅房屋"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/
fiveSearch/managerSelfCheckList/managerCheckList"
,
"name"
:
"managerCheckList
"
,
"meta"
:
{
"title"
:
"
小区经理自查检查单列表"
,
"authCode"
:
"000701
"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"path"
:
"/documents/
ledger/community/info"
,
"name"
:
"communityInfo
"
,
"meta"
:
{
"title"
:
"
详情"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile
"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/
fiveSearch/managerSelfCheckList/managerCheckInfo"
,
"name"
:
"managerCheckInfo"
,
"meta"
:
{
"title"
:
"
小区经理自查检查单详情"
,
"authCode"
:
"00070101
"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"path"
:
"/documents/
ledger/community/equipment"
,
"name"
:
"equipment"
,
"meta"
:
{
"title"
:
"
设备信息"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile
"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/
fiveSearch/managerSelfCheckList/managerAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"
街道检查情况汇总"
,
"authCode"
:
"00070102
"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"path"
:
"/documents/
ledger/community/building"
,
"name"
:
"communityBuilding"
,
"meta"
:
{
"title"
:
"
门牌幢列表"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile
"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/
fiveSearch/doubleWeekCheckList"
,
"name"
:
"doubleWeekCheckLis
t"
,
"meta"
:
{
"title"
:
"
物企双周查"
,
"authCode"
:
"000702
"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"path"
:
"/documents/
ledger/NonResident"
,
"name"
:
"NonResiden
t"
,
"meta"
:
{
"title"
:
"
非居房屋"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile
"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckList"
,
"name"
:
"doubleCheckList"
,
"meta"
:
{
"title"
:
"物企双周查列表"
,
"authCode"
:
"000702"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckInfo"
,
"name"
:
"doubleCheckInfo"
,
"meta"
:
{
"title"
:
"物企双周查详情"
,
"authCode"
:
"00070201"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"path"
:
"/documents/ledger/NonResident/info"
,
"name"
:
"NonResidentInfo"
,
"meta"
:
{
"title"
:
"非居详情"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070202"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/mutableList"
,
"name"
:
"mutableList"
,
"meta"
:
{
"title"
:
"整改单列表"
,
"authCode"
:
"000703"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/mutableList/info"
,
"name"
:
"mutableInfo"
,
"meta"
:
{
"title"
:
"整改单详情"
,
"authCode"
:
"00070301"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"authCode"
:
"0006"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"authCode"
:
"000704"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"authCode"
:
"00070401"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
"path"
:
"/documents/ledger/NonResident/building"
,
"name"
:
"NonResidentBuilding"
,
"meta"
:
{
"title"
:
"非居门牌幢列表"
,
"authCode"
:
"0008"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
...
...
src/router/routes.js
View file @
d9a6592f
...
...
@@ -74,85 +74,113 @@ const appRoutes = [
},
{
// 用户管理
path
:
'/systemManagement/people'
,
name
:
'people'
,
component
:
resolve
=>
require
([
'@/views/personal/InternalStaff/index'
],
resolve
),
//people,
meta
:
{
title
:
'用户管理'
,
authCode
:
'000904'
,
menuPath
:
true
,
menuIcon
:
'
setting
'
,
hideInBread
:
false
,
},
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'
},
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'
},
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
:
true
,
hideInBread
:
false
,
authCode
:
'00090402'
},
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: '日志管理', authCode: '', menuPath: true, menuIcon: 'setting', hideInBread: false, },
// children: [
// {
// path: '/systemManagement/rizhi/info', name: 'rizhiInfo', component: resolve => require(['@/views/personal/rizhi/info'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' },
// },
// {
// path: '/systemManagement/rizhi/feijuInfo', name: 'feijuInfo', component: resolve => require(['@/views/personal/rizhi/feijuInfo'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' },
// },
// {
// path: '/systemManagement/rizhi/xitongInfo', name: 'xitongInfo', component: resolve => require(['@/views/personal/rizhi/xitongInfo'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' },
// },
// {
// path: '/systemManagement/rizhi/zhanghuInfo', name: 'zhanghuInfo', component: resolve => require(['@/views/personal/rizhi/zhanghuInfo'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' },
// },
// ]
// },
{
// 日志管理
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
:
'/house'
,
name
:
'house'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
// ContentWrapper,
meta
:
{
title
:
'住宅信息'
,
menuPath
:
true
,
menuIcon
:
'
profil
e'
,
hideInBread
:
true
,
requirePerm
:
false
,
authCode
:
'0001'
},
meta
:
{
title
:
'住宅信息'
,
menuPath
:
true
,
menuIcon
:
'
hom
e'
,
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'
},
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'
},
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
:
'0001010
3'
},
meta
:
{
title
:
'门牌栋'
,
hideInBread
:
false
,
authCode
:
'0001010
1'
,
menuPath
:
false
},
children
:
[
{
path
:
'/houseData/buildings/:id'
,
name
:
'buildingView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
meta
:
{
title
:
'门牌栋详情'
,
hideInBread
:
false
,
authCode
:
'0001010
3'
}
meta
:
{
title
:
'门牌栋详情'
,
hideInBread
:
false
,
authCode
:
'0001010
1'
,
menuPath
:
false
}
}
]
},
{
path
:
'/houseData/feeStandard'
,
name
:
'feeStandard'
,
component
:
resolve
=>
require
([
'@/views/houseData/feeStandard'
],
resolve
),
//Buildings,
meta
:
{
title
:
'物业收费标准'
,
hideInBread
:
false
,
},
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'
},
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'
},
meta
:
{
title
:
'设施设备(勘验)'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'00010101'
,
menuPath
:
false
},
},
...
...
@@ -160,7 +188,7 @@ const appRoutes = [
},
{
//业委会列表
path
:
'/houseData/indCous'
,
name
:
'indCous'
,
component
:
resolve
=>
require
([
'@/views/houseData/indCous'
],
resolve
),
//IndCous,
meta
:
{
title
:
'业委会
信息列表'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'000102'
},
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,
...
...
@@ -168,11 +196,11 @@ const appRoutes = [
},
{
path
:
'/houseData/members'
,
name
:
'members'
,
component
:
resolve
=>
require
([
'@/views/houseData/members'
],
resolve
),
//Members,
meta
:
{
title
:
'业委会成员列表'
,
hideInBread
:
false
,
authCode
:
'0001020
2'
},
meta
:
{
title
:
'业委会成员列表'
,
hideInBread
:
false
,
authCode
:
'0001020
1'
,
menuPath
:
false
},
children
:
[
{
path
:
'/houseData/member/:id'
,
name
:
'memberView'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfoView'
],
resolve
),
//PropertyInfoView,
meta
:
{
title
:
'业委会成员详情'
,
hideInBread
:
false
,
authCode
:
'0001020
2'
}
meta
:
{
title
:
'业委会成员详情'
,
hideInBread
:
false
,
authCode
:
'0001020
1'
,
menuPath
:
false
}
}
]
},
...
...
@@ -180,27 +208,27 @@ const appRoutes = [
},
{
//物业列表
path
:
'/houseData/propertyInfo'
,
name
:
'propertyInfo'
,
component
:
resolve
=>
require
([
'@/views/houseData/propertyInfo'
],
resolve
),
//PropertyInfo,
meta
:
{
title
:
'物业企业
列表'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'000103'
},
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'
}
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
,
hideInBread
:
false
,
authCode
:
'000104'
},
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
:
tru
e
,
hideInBread
:
false
,
authCode
:
'00010401'
}
meta
:
{
title
:
'小区管理处详细情况'
,
menuPath
:
fals
e
,
hideInBread
:
false
,
authCode
:
'00010401'
}
}
]
},
{
// 小区经理
path
:
'/houseData/managers'
,
name
:
'managers'
,
component
:
resolve
=>
require
([
'@/views/houseData/managers'
],
resolve
),
//Managers,
meta
:
{
title
:
'小区经理
列表'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'000105'
},
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,
...
...
@@ -210,7 +238,7 @@ const appRoutes = [
},
{
//居委会列表
path
:
'/houseData/neighborhoodCommittees'
,
name
:
'neighborhoodCommittees'
,
component
:
resolve
=>
require
([
'@/views/houseData/neighborhoodCommittees'
],
resolve
),
//neighborhoodCommittees,
meta
:
{
title
:
'居委会
信息列表'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'000106'
},
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,
...
...
@@ -222,11 +250,11 @@ const appRoutes = [
},
{
path
:
'/noN'
,
name
:
'feiju'
,
redirect
:
{
name
:
'home'
},
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
meta
:
{
title
:
'非居信息'
,
menuPath
:
true
,
menuIcon
:
'
profile
'
,
hideInBread
:
true
,
authCode
:
'0002'
},
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
,
hideInBread
:
false
,
authCode
:
'000201'
},
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,
...
...
src/router/xuhuiRoutes.json
View file @
d9a6592f
...
...
@@ -2,76 +2,19 @@
"Layout"
:
[
{
"path"
:
"/order/disposal"
,
"name"
:
"Disposal"
,
"meta"
:
{
"title"
:
"处置单列表"
,
"menuPath"
:
fals
e
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"处置单列表"
,
"menuPath"
:
tru
e
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/order/disposal/disposalList"
,
"name"
:
"disposalList"
,
"meta"
:
{
"title"
:
"处置单列表"
,
"menuPath"
:
fals
e
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"处置单列表"
,
"menuPath"
:
tru
e
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/order/disposal/disposalView/:id"
,
"name"
:
"DisposalView"
,
"meta"
:
{
"title"
:
"处置单详情"
,
"menuPath"
:
fals
e
,
"hideInBread"
:
false
}
"meta"
:
{
"title"
:
"处置单详情"
,
"menuPath"
:
tru
e
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/question/month"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/question/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/question/month/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/question/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/question/repair/repairList"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/question/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/question/tousu"
,
"name"
:
"tousu"
,
"meta"
:
{
"title"
:
"投诉信息"
,
"menuPath"
:
true
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/question/tousu/tousuQuestion"
,
"name"
:
"tousuQuestion"
,
"meta"
:
{
"title"
:
"投诉问题排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/question/tousu/tousuQuestion/questionInfo"
,
"name"
:
"questionInfo"
,
"meta"
:
{
"title"
:
"投诉问题列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/question/tousu/tousuQuestion/tousuDetails"
,
"name"
:
"tousuDetails"
,
"meta"
:
{
"title"
:
"投诉问题详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/question/tousu/tousuDensity"
,
"name"
:
"tousuDensity"
,
"meta"
:
{
"title"
:
"投诉密度排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
}
]
}
]
}
src/server/api.js
View file @
d9a6592f
...
...
@@ -214,6 +214,7 @@ export default {
GET_ALL_ROLE
:
'/service-permission/menu/tree'
,
//获取权限
GET_USER_CODE
:
'/service-permission/user/menus/code'
,
//获取用户权限
GET_USER_PERM
:
'/service-permission/user/menus/{id}'
,
ROLE_DETAIL
:
'/service-permission/roles/{id}'
,
// 查询角色权限
ADD_ROLE_POST
:
'/service-permission/role'
,
// 新增角色
...
...
@@ -228,7 +229,7 @@ export default {
// PUT_STAFF_LIST: '/service-user-ddd/user', //修改内部人员列表
GET_USERNAME_EXIST
:
'/service-user-ddd/public/check/username/exist'
,
//校验用户名是否存在
GET_CHECK_PHONE_EXIST
:
'/public/check/phone/exist'
,
//判断手机是否存在
GET_REDIS
:
'/service-
user-ddd/user/refresh/
{id}'
,
//后台刷新redis
GET_REDIS
:
'/service-
permission/login/user/perms
{id}'
,
//后台刷新redis
//日志管理
GET_RIZHI
:
'/service-log/operateRecord'
,
//日志列表
...
...
src/util/mixins.js
View file @
d9a6592f
...
...
@@ -11,8 +11,8 @@ export const permission = {
url
:
this
.
$api
.
GET_USER_INFO
}).
then
(
res
=>
{
//后台刷新redis
this
.
$ajax
.
ge
t
({
url
:
this
.
$api
.
GET_REDIS
.
replace
(
'{id}'
,
res
.
data
.
content
.
id
),
this
.
$ajax
.
pos
t
({
url
:
this
.
$api
.
GET_REDIS
.
replace
(
'{id}'
,
'?message='
+
res
.
data
.
content
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
console
.
log
(
1
)
...
...
src/views/houseData/propertyInfoView.vue
View file @
d9a6592f
...
...
@@ -5,7 +5,7 @@
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
详情
</span>
<div
class=
"detailOperations"
>
<
a-button
v-if=
"urls.name == 'propertyInfoView'"
@
click=
"$router.push(
{path: `/houseData/basicInfo`,query:{id:$route.query.id,name:$route.query.name}})"> 查看管理小区列表
</a-button
>
<
!--
<a-button
v-if=
"urls.name == 'propertyInfoView'"
@
click=
"$router.push(
{path: `/houseData/basicInfo`,query:{id:$route.query.id,name:$route.query.name}})"> 查看管理小区列表
</a-button>
--
>
<a-button
@
click=
"handleReturn"
>
返回
</a-button>
</div>
</div>
...
...
src/views/houseData/tbls.vue
View file @
d9a6592f
...
...
@@ -5,7 +5,7 @@
<a-col
:span=
"3"
style=
"border-right:1px solid #ccc;height:100%; position:relative"
>
<span
class=
"menu_header"
>
拓展信息管理列表
</span>
<a-menu
mode=
"vertical"
:selectedKeys=
"selectedKeys"
>
<a-menu-item
:key=
"k"
v-show=
"$permission(
formatPermission(item)
)"
v-for=
"(item,k) in tblsLists"
@
click=
"clickMenu(k)"
>
<a-menu-item
:key=
"k"
v-show=
"$permission(
'00000201'
)"
v-for=
"(item,k) in tblsLists"
@
click=
"clickMenu(k)"
>
{{
item
}}
</a-menu-item>
</a-menu>
...
...
@@ -15,7 +15,7 @@
<a-form
class=
"protalForm"
:form=
"searchForm"
>
<a-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
<a-col
span=
"6"
>
<a-button
class=
"addZiduan"
v-if=
"$permission(
formatDeletePermission()
)"
type=
"primary"
@
click=
"showModal()"
ghost
>
新增字段
</a-button>
<a-button
class=
"addZiduan"
v-if=
"$permission(
'0000020102'
)"
type=
"primary"
@
click=
"showModal()"
ghost
>
新增字段
</a-button>
<div
>
<a-modal
:title=
"!isChangeZdy ? '新增字段':'修改字段'"
v-model=
"visible"
@
cancel=
"handleCancel"
@
ok=
"handleOk"
>
<a-form
class=
"protalForm"
:form=
"form"
>
...
...
@@ -86,11 +86,11 @@
<!-- table -->
<a-table
bordered
class=
"portalTable"
:dataSource=
"taskCollectList"
:columns=
"columns"
size=
"small"
:pagination=
"pagination"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
class=
"actionBtn"
v-if=
"$permission(
formatDeletePermission()
)"
@
click=
"showDelModal(record)"
>
删除
<a-divider
type=
"vertical"
/></span>
<span
class=
"actionBtn"
v-if=
"$permission(
'0000020102'
)"
@
click=
"showDelModal(record)"
>
删除
<a-divider
type=
"vertical"
/></span>
<a-modal
title=
"警告"
v-model=
"visibleDel"
@
ok=
"del(record)"
>
<p>
该字段可能已被使用,是否确定删除?
</p>
</a-modal>
<span
class=
"actionBtn"
v-if=
"$permission(
formatDeletePermission()
)"
@
click=
"setKey(record)"
>
修改
</span>
<span
class=
"actionBtn"
v-if=
"$permission(
'0000020102'
)"
@
click=
"setKey(record)"
>
修改
</span>
</span>
</a-table>
...
...
@@ -200,89 +200,89 @@ export default {
}
},
methods
:
{
formatPermission
(
item
){
let
permissionNum
=
null
switch
(
item
)
{
case
'小区'
:
permissionNum
=
'00000201'
break
case
'门牌幢'
:
permissionNum
=
'00000202'
break
case
'设施设备'
:
permissionNum
=
'00000203'
break
case
'物业企业'
:
permissionNum
=
'00000204'
break
case
'业主大会'
:
permissionNum
=
'00000205'
break
case
'业委会成员'
:
permissionNum
=
'00000206'
break
case
'小区管理处'
:
permissionNum
=
'00000209'
break
case
'小区经理'
:
permissionNum
=
'00000210'
break
case
'居委会信息'
:
permissionNum
=
'00000211'
break
case
'非居信息'
:
permissionNum
=
'00000212'
break
case
'非居门牌幢信息'
:
permissionNum
=
'00000213'
break
default
:
break
}
return
permissionNum
//
formatPermission(item){
//
let permissionNum = null
//
switch (item) {
//
case '小区':
//
permissionNum = '00000201'
//
break
//
case '门牌幢':
//
permissionNum = '00000202'
//
break
//
case '设施设备':
//
permissionNum = '00000203'
//
break
//
case '物业企业':
//
permissionNum = '00000204'
//
break
//
case '业主大会':
//
permissionNum = '00000205'
//
break
//
case '业委会成员':
//
permissionNum = '00000206'
//
break
//
case '小区管理处':
//
permissionNum = '00000209'
//
break
//
case '小区经理':
//
permissionNum = '00000210'
//
break
//
case '居委会信息':
//
permissionNum = '00000211'
//
break
//
case '非居信息':
//
permissionNum = '00000212'
//
break
//
case '非居门牌幢信息':
//
permissionNum = '00000213'
//
break
//
default:
//
break
//
}
//
return permissionNum
},
formatDeletePermission
(){
let
deletePermissionNum
=
null
switch
(
this
.
selectedKeys
[
0
])
{
case
'tbl_community'
:
deletePermissionNum
=
'0000020102'
break
case
'tbl_building'
:
deletePermissionNum
=
'0000020202'
break
case
'tbl_facilities_equipment'
:
deletePermissionNum
=
'0000020302'
break
case
'tbl_prop_company'
:
deletePermissionNum
=
'0000020402'
break
case
'tbl_industry_council'
:
deletePermissionNum
=
'0000020502'
break
case
'tbl_ic_member'
:
deletePermissionNum
=
'0000020602'
break
case
'tbl_community_amst_office'
:
deletePermissionNum
=
'0000020902'
break
case
'tbl_community_manager'
:
deletePermissionNum
=
'0000021002'
break
case
'tbl_residents_committees'
:
deletePermissionNum
=
'0000021102'
break
case
'tbl_non_resident'
:
deletePermissionNum
=
'0000021202'
break
case
'tbl_non_resident_building'
:
deletePermissionNum
=
'0000021302'
break
default
:
break
}
return
deletePermissionNum
},
//
},
//
formatDeletePermission(){
//
let deletePermissionNum = null
//
switch (this.selectedKeys[0]) {
//
case 'tbl_community':
//
deletePermissionNum = '0000020102'
//
break
//
case 'tbl_building':
//
deletePermissionNum = '0000020202'
//
break
//
case 'tbl_facilities_equipment':
//
deletePermissionNum = '0000020302'
//
break
//
case 'tbl_prop_company':
//
deletePermissionNum = '0000020402'
//
break
//
case 'tbl_industry_council':
//
deletePermissionNum = '0000020502'
//
break
//
case 'tbl_ic_member':
//
deletePermissionNum = '0000020602'
//
break
//
case 'tbl_community_amst_office':
//
deletePermissionNum = '0000020902'
//
break
//
case 'tbl_community_manager':
//
deletePermissionNum = '0000021002'
//
break
//
case 'tbl_residents_committees':
//
deletePermissionNum = '0000021102'
//
break
//
case 'tbl_non_resident':
//
deletePermissionNum = '0000021202'
//
break
//
case 'tbl_non_resident_building':
//
deletePermissionNum = '0000021302'
//
break
//
default:
//
break
//
}
//
return deletePermissionNum
//
},
//默认时间框
chooseDate
(
date
,
dateString
)
{
...
...
src/views/personal/InternalStaff/edit.vue
View file @
d9a6592f
...
...
@@ -36,15 +36,16 @@
<a-row
class=
"formItemLine"
>
<a-col
span=
"8"
>
<a-form-item
label=
"机构类型"
v-bind=
"colSpe"
>
<a-select
placeholder=
"请选择"
allowClear
mode=
"multip"
v-decorator=
"['orgType',
{initialValue:'2',
<a-select
placeholder=
"请选择"
allowClear
mode=
"multip"
@
change=
"changeType"
v-decorator=
"['orgType',
{initialValue:'2',
validateTrigger: 'change', rules: [ { required: true, message: '请选择机构类型!' } ]
}]">
<a-select-option
value=
"2"
>
房办
</a-select-option>
<a-select-option
value=
"0"
>
区级
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
span=
"8"
>
<a-form-item
label=
"机构名称"
v-bind=
"colSpe"
>
<a-col
span=
"8"
v-if=
"show"
>
<a-form-item
label=
"机构名称"
v-bind=
"colSpe"
>
<a-select
placeholder=
"请选择"
allowClear
mode=
"multi"
v-decorator=
"['DorgId',
{
validateTrigger: 'change', rules: [ { required: true, message: '请选择机构名称!' } ]
}]">
...
...
@@ -80,6 +81,7 @@ export default {
},
data
()
{
return
{
show
:
true
,
exclusionRoleIds
:
[
'999999'
,
],
userRoldIDsOrg
:
[],
orgnazation
:
[],
...
...
@@ -104,6 +106,7 @@ export default {
// 从个人中心-账户信息跳过来的不能修改手机号
this
.
fromCenter
=
!!
this
.
$route
.
query
.
id
},
mounted
()
{
this
.
$ajax
.
get
({
...
...
@@ -165,8 +168,8 @@ export default {
if
(
values
.
phone2
)
{
values
.
phone
+=
values
.
phone2
}
values
.
orgId
=
this
.
searchForm
.
getFieldValue
(
'DorgId'
)
.
split
(
'#'
)[
0
]
values
.
orgName
=
this
.
searchForm
.
getFieldValue
(
'DorgId'
)
.
split
(
'#'
)[
1
]
values
.
orgId
=
this
.
searchForm
.
getFieldValue
(
'DorgId'
)
?
this
.
searchForm
.
getFieldValue
(
'DorgId'
).
split
(
'#'
)[
0
]:
''
values
.
orgName
=
this
.
searchForm
.
getFieldValue
(
'DorgId'
)
?
this
.
searchForm
.
getFieldValue
(
'DorgId'
).
split
(
'#'
)[
1
]:
''
values
.
notes
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
)
{
values
.
roleIds
+=
item
.
key
...
...
@@ -268,9 +271,13 @@ export default {
})
}
},
//获取机构名称的下拉框
changeOrg
(){
changeType
(
val
){
console
.
log
(
val
)
if
(
val
==
0
){
this
.
show
=
false
}
else
{
this
.
show
=
true
}
},
//获取id 对应的账户信息
getDetail
()
{
...
...
src/views/personal/InternalStaff/index.vue
View file @
d9a6592f
...
...
@@ -45,9 +45,9 @@
<!--
<a-menu-item
v-if=
"$permission('00090401')"
class=
"actionBtn"
key=
"4"
>
重置密码
</a-menu-item>
-->
<!--
<a-menu-item
class=
"actionBtn"
key=
"2"
v-if=
"$permission('S00011416')"
>
禁用
</a-menu-item>
-->
<a-menu-item
class=
"actionBtn"
v-if=
"$permission('00090405')"
key=
"1"
@
click=
'(event)=>
{showOpeations(event.key,record)}'> 启用
</a-menu-item>
<a-menu-item
class=
"actionBtn"
v-if=
"$permission('00090406')"
key=
"3"
@
click=
'(event)=>
{showOpeations(event.key,record)}'> 注销
<
/a-menu-item
>
<
!--
<
a-menu-item
class=
"actionBtn"
v-if=
"$permission('00090405')"
key=
"1"
@
click=
'(event)=>
{showOpeations(event.key,record)}'> 启用
</a-menu-item>
<a-menu-item
class=
"actionBtn"
v-if=
"$permission('00090406')"
key=
"3"
@
click=
'(event)=>
{showOpeations(event.key,record)}'> 注销
-->
<
!--
</a-menu-item>
--
>
<a-menu-item
class=
"actionBtn"
v-if=
"$permission('00090402')"
@
click=
"handleEdit(record)"
>
修改
</a-menu-item>
</a-menu>
...
...
@@ -184,16 +184,6 @@ export default {
customRender
:
'roleIds'
,
},
},
{
title
:
'状态'
,
align
:
'center'
,
dataIndex
:
'status'
,
key
:
'status'
,
width
:
'13%'
,
scopedSlots
:
{
customRender
:
'status'
,
},
},
{
title
:
'手机号'
,
align
:
'center'
,
...
...
@@ -213,6 +203,14 @@ export default {
]
}
},
watch
:
{
$route
(
cur
)
{
if
(
cur
)
{
this
.
getSearchParams
()
this
.
getRoleList
()
}
},
},
mounted
()
{
if
(
this
.
$route
.
name
==
'people'
){
this
.
$nextTick
(
function
()
{
...
...
@@ -342,7 +340,7 @@ export default {
let
searchParms
=
{
pageNo
:
this
.
pagination
.
current
,
pageSize
:
this
.
pagination
.
pageSize
,
phone_ne
:
0
}
searchParms
=
Object
.
assign
({},
searchParms
,
this
.
searchForm
.
getFieldsValue
())
if
(
searchParms
.
roleIds_in
&&
searchParms
.
roleIds_in
.
length
>
0
)
{
...
...
src/views/personal/rizhi/1
deleted
100644 → 0
View file @
a51c3b1f
// {
// "path": "/documents/ledger", "name": "ledger",
// "meta": { "title": "区房屋台账","authCode":"0008", "menuIcon": "profile", "menuPath": true, "hideInBread": false },
// "children": [
// {
// "path": "/documents/ledger/community", "name": "communityList",
// "meta": { "title": "住宅房屋","authCode":"000801", "menuIcon": "profile", "menuPath": true, "hideInBread": false },
// "children": [
// {
// "path": "/documents/ledger/community/info", "name": "communityInfo",
// "meta": { "title": "详情","authCode":"00080101", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
// },
// {
// "path": "/documents/ledger/community/equipment", "name": "equipment",
// "meta": { "title": "设备信息","authCode":"000801010102", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
// },
// {
// "path": "/documents/ledger/community/building", "name": "communityBuilding",
// "meta": { "title": "门牌幢列表","authCode":"0008010101", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
// }
// ]
// },
// {
// "path": "/documents/ledger/NonResident", "name": "NonResident",
// "meta": { "title": "非居房屋","authCode":"000802", "menuIcon": "profile", "menuPath": true, "hideInBread": false },
// "children": [
// {
// "path": "/documents/ledger/NonResident/info", "name": "NonResidentInfo",
// "meta": { "title": "非居详情","authCode":"000802", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
// },
// {
// "path": "/documents/ledger/NonResident/building", "name": "NonResidentBuilding",
// "meta": { "title": "非居门牌幢列表","authCode":"00080202", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
// }
// ]
// }
// ]
// }
\ No newline at end of file
src/views/personal/rizhi/feijuInfo.vue
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<Loader
/>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
...
...
@@ -9,16 +8,19 @@
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<!-- 小区 -->
<div
v-if=
"$route.name == 'feijuInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_
community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 8
}" :wrapper-col="{ span: 12 }">
<a-form-item
v-for=
"(item,k) in extList.tbl_
non_resident"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9
}" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
...
...
@@ -29,7 +31,7 @@
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span:
8
}" :wrapper-col="{ span: 12 }">
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span:
9
}" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
...
...
@@ -44,7 +46,7 @@
<
script
>
export
default
{
name
:
'
rizhi
Info'
,
name
:
'
feiju
Info'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
...
...
@@ -55,12 +57,13 @@ export default {
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
tbl_non_resident
:
[],
},
// ext所有列表
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'
rizhi
Info'
){
if
(
this
.
$route
.
name
==
'
feiju
Info'
){
this
.
getList
()
}
},
...
...
@@ -75,10 +78,10 @@ export default {
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_
community
'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_
non_resident
'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_
community
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
extList
.
tbl_
non_resident
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
...
...
src/views/personal/rizhi/guanlichu.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'guanliInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community_amst_office"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'guanliInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'guanliInfo'
){
this
.
getList
()
}
},
methods
:
{
getList
(
params
){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_community_amst_office'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_community_amst_office
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/info.vue
View file @
d9a6592f
...
...
@@ -11,45 +11,17 @@
<!-- 小区 -->
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<!-- 业委会信息 -->
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
<a-form
class=
"protalForm"
:form=
"form"
>
<a-form-item
v-for=
"(ele,k) in extList.tbl_community"
:key=
"k"
:label=
"ele.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
:value=
"ele.keyVal"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
...
...
@@ -60,127 +32,7 @@
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<!-- 物业企业 -->
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<!-- 小区管理处 -->
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<!-- 小区经理 -->
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<!-- 小区居委会信息 -->
<div
v-if=
"$route.name == 'rizhiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
操作说明:
{{
content
.
pointName
}}
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
<a-input
:value=
"item.keyValue"
:key=
"key"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
...
...
@@ -188,6 +40,7 @@
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
...
...
@@ -195,9 +48,10 @@
<
script
>
export
default
{
name
:
'rizhiInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
return
{
form
:
this
.
$form
.
createForm
(
this
),
//表单验证
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
...
...
@@ -206,9 +60,12 @@ export default {
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
keyCode
:
[],
key
:
''
,
text
:
''
,
content
:
{}
}
},
},
mounted
(){
if
(
this
.
$route
.
name
==
'rizhiInfo'
){
this
.
getList
()
...
...
@@ -219,18 +76,40 @@ export default {
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
const
data
=
this
.
content
.
dataAfterObj
this
.
data
=
this
.
content
.
dataAfterObj
?
JSON
.
parse
(
this
.
content
.
dataAfterObj
.
extJson
):
null
const
dataCode
=
this
.
content
.
dataBeforeObj
this
.
dataCode
=
this
.
content
.
dataBeforeObj
?
JSON
.
parse
(
this
.
content
.
dataBeforeObj
.
extJson
):
null
if
(
res
.
code
==
'200'
)
{
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_community'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_community
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
if
(
this
.
data
!=
null
){
for
(
let
init
in
this
.
data
)
{
this
.
extList
.
tbl_community
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
keyCode
==
init
){
this
.
extList
.
tbl_community
[
index
].
keyValue
=
this
.
data
[
init
]
}
})
}
}
if
(
this
.
dataCode
!=
null
){
for
(
let
ini
in
this
.
dataCode
)
{
this
.
extList
.
tbl_community
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
keyCode
==
ini
){
this
.
extList
.
tbl_community
[
index
].
keyVal
=
this
.
dataCode
[
ini
]
}
})
}
}
}
})
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_community'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_community
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
},
},
...
...
src/views/personal/rizhi/jingli.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'jingliInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community_manager"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'jingliInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'jingliInfo'
){
this
.
getList
()
}
},
methods
:
{
getList
(
params
){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_community_manager'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_community_manager
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/juese.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'jueseInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<div
class=
"layoutMargin detailsPartSection contentPadding"
>
<a-form
class=
"portalDetailContentBody"
:form=
"formData"
>
<p>
角色名称:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
roleName
:
''
}}
</span>
</p>
<a-tree
class=
"portalRoleTree"
v-if=
"showTree"
checkable
:treeData=
"treeData"
:defaultExpandedKeys=
'expandedKeys1'
v-model=
"checkedKeys1"
disabled=
"disabled"
/>
</a-form>
</div>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<div
class=
"layoutMargin detailsPartSection contentPadding"
>
<a-form
class=
"portalDetailContentBody"
:form=
"formData"
>
<p>
角色名称:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
roleName
:
''
}}
</span>
</p>
<a-tree
class=
"portalRoleTree"
v-if=
"showTree"
checkable
:treeData=
"treeData"
:defaultExpandedKeys=
'expandedKeys'
v-model=
"checkedKeys"
disabled=
"disabled"
/>
</a-form>
</div>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'jueseInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
showTree
:
false
,
treeData
:
[],
expandedKeys
:
[],
checkedKeys
:
[],
expandedKeys1
:
[],
checkedKeys1
:
[],
roleName
:
null
,
userCount
:
null
,
roleIds
:
[],
// 功能点的id数组
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'jueseInfo'
){
this
.
getList
()
this
.
getTree
()
}
},
beforeCreate
()
{
this
.
formData
=
this
.
$form
.
createForm
(
this
)
},
methods
:
{
getTree
(){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_ALL_ROLE
+
'?isTree=true'
}).
then
(
res
=>
{
const
data
=
res
.
data
.
content
this
.
parentId
=
data
.
id
data
.
forEach
((
item
,
index
)
=>
{
this
.
treeData
.
push
(
this
.
getTreeNode
(
item
,
index
))
})
this
.
getList
(
this
.
$route
.
query
.
id
)
})
},
getList
(){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
){
this
.
content
=
res
.
data
.
content
const
data
=
res
.
data
.
content
this
.
roleName
=
data
.
roleName
this
.
userCount
=
data
.
userCount
this
.
expandedKeys
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
checkedKeys
))
this
.
expandedKeys1
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
checkedKeys1
))
this
.
showTree
=
true
if
(
data
.
dataBeforeObj
){
this
.
checkedKeys1
=
data
.
dataBeforeObj
.
perm
.
map
((
item
)
=>
{
return
item
.
id
})
}
if
(
data
.
dataAfterObj
){
this
.
checkedKeys
=
data
.
dataAfterObj
.
perm
.
map
((
item
)
=>
{
return
item
.
id
})
}
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
},
getTreeNode
(
item
,
index
){
let
childrenNode
=
{}
if
(
this
.
roleIds
.
length
>
0
&&
this
.
roleIds
.
indexOf
(
item
.
id
)
<
0
&&
!
this
.
$store
.
state
.
userInfos
.
isAllPerm
){
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
,
disabled
:
true
,
}
}
else
{
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
}
}
if
(
item
.
childList
&&
item
.
childList
.
length
){
childrenNode
.
children
=
[]
item
.
childList
.
forEach
((
subItem
,
subIndex
)
=>
{
const
subkey
=
subItem
.
id
childrenNode
.
children
.
push
(
this
.
getTreeNode
(
subItem
,
subkey
))
})
}
return
childrenNode
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/juweihui.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'juweiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_residents_committees"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'juweiInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'juweiInfo'
){
this
.
getList
()
}
},
methods
:
{
getList
(
params
){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_residents_committees'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_residents_committees
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/rizhiList.vue
View file @
d9a6592f
<
template
>
<div>
<div
class=
"routerWapper AccountManagement"
v-if=
"$route.name == 'rizhi'"
>
<div
class=
"routerWapper AccountManagement"
v-if=
"$route.name == 'rizhi'
&&$permission('0010')
"
>
<div
class=
"routerContent layoutMargin layoutPadding"
>
<!-- 搜索区 -->
<a-form
class=
"protalForm"
:form=
"searchForm"
style=
"padding: 0px 10px;"
>
...
...
@@ -23,7 +23,7 @@
<a-table
class=
"elevator-table portalTable"
:dataSource=
"List"
:columns=
"columns"
size=
"small"
:pagination=
"pagination"
rowKey=
"id"
>
<span
slot=
"operation"
slot-scope=
"text, record"
>
<span
class=
"actionBtn"
@
click=
"toNext(record)"
>
查看
</span>
<span
class=
"actionBtn"
v-if=
"$permission('001001')"
@
click=
"toNext(record)"
>
查看
</span>
</span>
</a-table>
</div>
...
...
@@ -144,6 +144,7 @@ export default {
})
}
else
{
var
searchParms
=
{
'createTime_desc'
:
'desc'
,
'createTime_btw'
:
!!
this
.
searchForm
.
getFieldValue
(
'createTime_btw'
)
?
[
this
.
$moment
(
this
.
searchForm
.
getFieldValue
(
'createTime_btw'
)[
0
]).
format
(
'YYYY-MM-DD'
),
this
.
$moment
(
this
.
searchForm
.
getFieldValue
(
'createTime_btw'
)[
1
]).
format
(
'YYYY-MM-DD'
)].
toString
():
''
,
pageNo
:
this
.
pagination
.
current
,
pageSize
:
10
,
...
...
@@ -180,13 +181,86 @@ export default {
*/
toNext
(
record
){
// 进入详情
this
.
$router
.
push
({
name
:
'rizhiInfo'
,
query
:
{
id
:
record
.
id
,
type
:
'view'
},
})
if
(
record
.
pointName
.
slice
(
0
,
6
)
==
'拓展信息管理'
){
this
.
$router
.
push
({
name
:
'tuozhanxinxiguanliInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
8
)
==
'小区拓展字段维护'
){
this
.
$router
.
push
({
name
:
'rizhiInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
11
)
==
'业委会信息拓展字段维护'
){
this
.
$router
.
push
({
name
:
'yeweiInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
10
)
==
'物业企业拓展字段维护'
){
this
.
$router
.
push
({
name
:
'wuyeInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
11
)
==
'小区管理处拓展字段维护'
){
this
.
$router
.
push
({
name
:
'guanliInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
10
)
==
'小区经理拓展字段维护'
){
this
.
$router
.
push
({
name
:
'jingliInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
11
)
==
'居委会信息拓展字段维护'
){
this
.
$router
.
push
({
name
:
'juweiInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
4
)
==
'角色管理'
){
console
.
log
(
record
.
pointName
.
slice
(
0
,
4
))
this
.
$router
.
push
({
name
:
'jueseInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
4
)
==
'用户管理'
){
this
.
$router
.
push
({
name
:
'zhanghuInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
10
)
==
'非居信息拓展字段维护'
){
this
.
$router
.
push
({
name
:
'feijuInfo'
,
query
:
{
id
:
record
.
id
,
},
})
}
else
if
(
record
.
pointName
.
slice
(
0
,
6
)
==
'系统信息配置'
){
this
.
$router
.
push
({
name
:
'xitongxinxi'
,
query
:
{
id
:
record
.
id
,
},
})
}
},
/**
* 清空表单
...
...
src/views/personal/rizhi/tuozhanxinxiguanliInfo.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'tuozhanxinxiguanliInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-table
bordered
class=
"portalTable"
:dataSource=
"taskCollectList"
:columns=
"columns"
size=
"small"
>
</a-table>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<div
style=
"margin-bottom:8px;"
>
<a-table
bordered
class=
"portalTable"
:dataSource=
"taskCollectList1"
:columns=
"columns"
size=
"small"
>
</a-table>
</div>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'tuozhanxinxiguanliInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
content
:
{},
taskCollectList
:
[],
taskCollectList1
:
[],
columns
:
[
{
title
:
'字段名称'
,
dataIndex
:
'keyName'
,
key
:
'keyName'
,
},
{
title
:
'组件类型'
,
dataIndex
:
'compntType'
,
key
:
'compntType'
,
},
{
title
:
'默认值'
,
dataIndex
:
'defVal'
,
key
:
'defVal'
,
},
],
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'tuozhanxinxiguanliInfo'
){
this
.
getTaskCollectList
()
}
},
methods
:
{
getTaskCollectList
(
params
){
// 获取列表里面的数据
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
params
:
{
tbl
:
params
,
},
}).
then
(
res
=>
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
if
(
res
.
code
==
'200'
)
{
this
.
taskCollectList
=
this
.
content
.
dataBeforeObj
this
.
taskCollectList1
=
this
.
content
.
dataAfterObj
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/wuyeqiye.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'wuyeInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_prop_company"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'wuyeInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'wuyeInfo'
){
this
.
getList
()
}
},
methods
:
{
getList
(
params
){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_prop_company'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_prop_company
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/xitongInfo.vue
deleted
100644 → 0
View file @
a51c3b1f
src/views/personal/rizhi/xitongxinxi.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'xitongxinxi'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-tabs
default-active-key=
"1"
>
<a-tab-pane
tab=
"系统信息"
key=
"1"
>
<a-form>
<a-form-item
label=
"项目名"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<p>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
prjName
:
''
}}
</p>
</a-form-item>
</a-form>
</a-tab-pane>
</a-tabs>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-tabs
default-active-key=
"1"
>
<a-tab-pane
tab=
"系统信息"
key=
"1"
>
<a-form>
<a-form-item
label=
"项目名"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<p>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
prjName
:
''
}}
</p>
</a-form-item>
</a-form>
</a-tab-pane>
</a-tabs>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'xitongxinxi'
,
data
()
{
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
keyCode
:
[],
key
:
''
,
text
:
''
,
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'xitongxinxi'
){
this
.
getList
()
}
},
methods
:
{
getList
(
params
){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
if
(
res
.
code
==
'200'
)
{
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/yewei.vue
0 → 100644
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'yeweiInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_community"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<a-form
class=
"protalForm"
>
<a-form-item
v-for=
"(item,k) in extList.tbl_industry_council"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span: 9 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"[item.keyCode]"
disabled=
"disabled"
/>
</a-form-item>
</a-form>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'yeweiInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
extList
:
{
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_prop_company
:
[],
tbl_community_manager
:
[],
tbl_industry_council
:
[],
tbl_residents_committees
:
[],
},
// ext所有列表
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'yeweiInfo'
){
this
.
getList
()
}
},
methods
:
{
getList
(
params
){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
this
.
content
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
else
{
this
.
$message
.
info
(
res
.
msg
,
10
)
}
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_industry_council'
).
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_industry_council
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
}
})
})
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/rizhi/zhanghuInfo.vue
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper enquiryList"
>
<div
class=
"portalDetailTitle"
>
<span
class=
"title"
>
日志详情
</span>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.back()"
>
返回
</a-button>
</div>
</div>
<!-- 小区 -->
<div
v-if=
"$route.name == 'zhanghuInfo'"
class=
"layoutMargin layoutPadding"
>
<div
style=
"font-size:16px;margin-bottom:20px"
>
<P>
操作人:
{{
content
.
creator
}}
</P>
<P>
操作说明:
{{
content
.
pointName
}}
</P>
<P>
操作时间:
{{
this
.
$moment
(
content
.
createTime
).
format
(
'YYYY-MM-DD'
)
}}
</P>
</div>
<div
class=
"cardBox"
>
<a-card
title=
"操作前信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<div
class=
"layoutMargin detailsPartSection contentPadding"
>
<a-form
class=
"portalDetailContentBody"
:form=
"formData"
>
<p>
姓名:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
name
:
''
}}
</span>
</p>
<p>
手机:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
phone
:
''
}}
</span>
</p>
<p>
邮箱:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
roleName
:
''
}}
</span>
</p>
<p>
机构类型:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
orgType
:
''
}}
</span>
</p>
<p>
机构名称:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
orgName
:
''
}}
</span>
</p>
<p>
角色名称:
<span>
{{
content
.
dataBeforeObj
?
content
.
dataBeforeObj
.
roleNames
:
''
}}
</span>
</p>
<!--
<a-tree
class=
"portalRoleTree"
v-if=
"showTree"
checkable
:treeData=
"treeData"
:defaultExpandedKeys=
'expandedKeys1'
v-model=
"checkedKeys1"
disabled=
"disabled"
/>
-->
</a-form>
</div>
</div>
</div>
</a-card>
<a-card
title=
"操作后信息"
style=
"width: 49%;margin-right:1%;margin-bottom:1%;"
>
<div
class=
"card-centent"
>
<div
style=
"margin-bottom:8px;"
>
<div
class=
"layoutMargin detailsPartSection contentPadding"
>
<a-form
class=
"portalDetailContentBody"
:form=
"formData"
>
<p>
姓名:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
name
:
''
}}
</span>
</p>
<p>
手机:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
phone
:
''
}}
</span>
</p>
<p>
邮箱:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
roleName
:
''
}}
</span>
</p>
<p>
机构类型:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
orgType
:
''
}}
</span>
</p>
<p>
机构名称:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
orgName
:
''
}}
</span>
</p>
<p>
角色名称:
<span>
{{
content
.
dataAfterObj
?
content
.
dataAfterObj
.
roleNames
:
''
}}
</span>
</p>
<!--
<a-tree
class=
"portalRoleTree"
v-if=
"showTree"
checkable
:treeData=
"treeData"
:defaultExpandedKeys=
'expandedKeys'
v-model=
"checkedKeys"
disabled=
"disabled"
/>
-->
</a-form>
</div>
</div>
</div>
</a-card>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</
template
>
<
script
>
export
default
{
name
:
'zhanghuInfo'
,
data
()
{
formExt
:
this
.
$form
.
createForm
(
this
)
return
{
showTree
:
false
,
treeData
:
[],
expandedKeys
:
[],
checkedKeys
:
[],
expandedKeys1
:
[],
checkedKeys1
:
[],
roleName
:
null
,
userCount
:
null
,
roleIds
:
[],
// 功能点的id数组
content
:
{}
}
},
mounted
(){
if
(
this
.
$route
.
name
==
'zhanghuInfo'
){
this
.
getList
()
this
.
getTree
()
}
},
beforeCreate
()
{
this
.
formData
=
this
.
$form
.
createForm
(
this
)
},
methods
:
{
getTree
(){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_ALL_ROLE
+
'?isTree=true'
}).
then
(
res
=>
{
const
data
=
res
.
data
.
content
this
.
parentId
=
data
.
id
data
.
forEach
((
item
,
index
)
=>
{
this
.
treeData
.
push
(
this
.
getTreeNode
(
item
,
index
))
})
this
.
getList
(
this
.
$route
.
query
.
id
)
})
},
getList
(){
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI_INFO
.
replace
(
'{id}'
,
this
.
$route
.
query
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
){
this
.
content
=
res
.
data
.
content
const
data
=
res
.
data
.
content
this
.
roleName
=
data
.
roleName
this
.
userCount
=
data
.
userCount
this
.
expandedKeys
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
checkedKeys
))
this
.
expandedKeys1
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
checkedKeys1
))
this
.
showTree
=
true
if
(
data
.
dataBeforeObj
){
this
.
checkedKeys1
=
data
.
dataBeforeObj
.
perm
.
map
((
item
)
=>
{
return
item
.
id
})
}
if
(
data
.
dataAfterObj
){
this
.
checkedKeys
=
data
.
dataAfterObj
.
perm
.
map
((
item
)
=>
{
return
item
.
id
})
}
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
},
getTreeNode
(
item
,
index
){
if
(
this
.
roleIds
.
length
>
0
&&
this
.
roleIds
.
indexOf
(
item
.
id
)
<
0
&&
!
this
.
$store
.
state
.
userInfos
.
isAllPerm
){
var
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
,
disabled
:
true
,
}
}
else
{
var
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
}
}
if
(
item
.
childList
&&
item
.
childList
.
length
){
childrenNode
.
children
=
[]
item
.
childList
.
forEach
((
subItem
,
subIndex
)
=>
{
const
subkey
=
subItem
.
id
childrenNode
.
children
.
push
(
this
.
getTreeNode
(
subItem
,
subkey
))
})
}
return
childrenNode
},
},
}
</
script
>
<
style
>
.enquiryList
.ant-card-head
{
border-bottom
:
1px
dashed
#e8e8e8
;
padding
:
0
12px
;
}
.enquiryList
.ant-card-body
{
padding
:
0px
;
}
.enquiryList
.card-bottom
{
padding
:
8px
0px
;
text-align
:
center
;
color
:
#1890ff
;
border-top
:
1px
solid
#e8e8e8
;
cursor
:
pointer
;
}
.enquiryList
.card-centent
{
padding
:
12px
;
}
.enquiryList
.cardBox
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
src/views/personal/role/list.vue
View file @
d9a6592f
<
template
>
<div
class=
"routerWapper"
>
<div
v-if=
"$route.name == 'role' && $permission('000903')"
class=
"layoutMargin layoutPadding"
>
<a-form
class=
"protalForm"
:form=
"searchForm"
>
<a-row
type=
"flex"
justify=
"end"
align=
"middle"
>
<a-col
span=
"6"
>
<a-form-item
class=
"formItem"
label=
""
:label-col=
"
{span:0}" :wrapper-col="{span:24}" >
<a-input
placeholder=
"请输入角色名称"
v-model=
"searchForm.roleName_l"
/>
</a-form-item>
</a-col>
<a-col
span=
"5"
class=
"algin-right"
style=
"padding-right:8px"
>
<a-button
@
click=
"reset"
>
重置
</a-button>
<a-button
type=
"primary"
@
click=
"search"
>
搜索
</a-button>
</a-col>
</a-row>
</a-form>
<p
class=
"gayLine noline"
></p>
<div
class=
"portalTableOperates"
>
<a-button
type=
"primary"
icon=
'plus'
v-if=
"$permission('00090302')"
@
click=
"addBtn"
>
新增角色
</a-button>
</div>
<div
class=
"wrapper-roles"
>
<div
class=
"box"
v-for=
"(item,index) in roleList"
:key=
"index"
>
<div
class=
"inner"
>
<div
class=
"content"
>
<p
class=
"roleName"
:title=
'item.roleName'
>
{{
item
.
roleName
}}
</p>
<p
class=
"roleNum"
><img
:src=
"groups"
class=
"group-icon"
alt=
"人数"
><span
class=
"name-num"
>
{{
item
.
userCount
||
'0'
}}
人
</span></p>
<DataOperatorInList
:level=
"!item.sort?0:item.sort"
:creator=
'!item.creator?"":item.creator'
:lastOperator=
'!item.operator?"":item.operator'
></DataOperatorInList>
</div>
<div
class=
"operate"
>
<template>
<span
@
click=
"view(item)"
v-if=
"$permission('00090301')"
>
查看
</span>
<a-divider
type=
"vertical"
/>
</
template
>
<
template
>
<span
@
click=
"edit(item)"
v-if=
"$permission('00090304')"
>
修改
</span>
<a-divider
type=
"vertical"
/>
</
template
>
<span
@
click=
"deleteBtn(item)"
v-if=
"$permission('00090304')"
>
删除
</span>
<keep-alive>
<div
class=
"routerWapper"
>
<div
v-if=
"$route.name == 'role' && $permission('000903')"
class=
"layoutMargin layoutPadding"
>
<a-form
class=
"protalForm"
:form=
"searchForm"
>
<a-row
type=
"flex"
justify=
"end"
align=
"middle"
>
<a-col
span=
"6"
>
<a-form-item
class=
"formItem"
label=
""
:label-col=
"
{span:0}" :wrapper-col="{span:24}" >
<a-input
placeholder=
"请输入角色名称"
v-model=
"searchForm.roleName_l"
/>
</a-form-item>
</a-col>
<a-col
span=
"5"
class=
"algin-right"
style=
"padding-right:8px"
>
<a-button
@
click=
"reset"
>
重置
</a-button>
<a-button
type=
"primary"
@
click=
"search"
>
搜索
</a-button>
</a-col>
</a-row>
</a-form>
<p
class=
"gayLine noline"
></p>
<div
class=
"portalTableOperates"
>
<a-button
type=
"primary"
icon=
'plus'
v-if=
"$permission('00090302')"
@
click=
"addBtn"
>
新增角色
</a-button>
</div>
<div
class=
"wrapper-roles"
>
<div
class=
"box"
v-for=
"(item,index) in roleList"
:key=
"index"
>
<div
class=
"inner"
>
<div
class=
"content"
>
<p
class=
"roleName"
:title=
'item.roleName'
>
{{
item
.
roleName
}}
</p>
<p
class=
"roleNum"
><img
:src=
"groups"
class=
"group-icon"
alt=
"人数"
><span
class=
"name-num"
>
{{
item
.
userCount
||
'0'
}}
人
</span></p>
<DataOperatorInList
:level=
"!item.sort?0:item.sort"
:creator=
'!item.creator?"":item.creator'
:lastOperator=
'!item.operator?"":item.operator'
></DataOperatorInList>
</div>
<div
class=
"operate"
>
<template>
<span
@
click=
"view(item)"
v-if=
"$permission('00090301')"
>
查看
</span>
<a-divider
type=
"vertical"
/>
</
template
>
<
template
>
<span
@
click=
"edit(item)"
v-if=
"$permission('00090304')"
>
修改
</span>
<a-divider
type=
"vertical"
/>
</
template
>
<span
@
click=
"deleteBtn(item)"
v-if=
"$permission('00090304')"
>
删除
</span>
</div>
</div>
</div>
</div>
<!-- 分页 -->
<a-row
type=
"flex"
justify=
"end"
>
<a-col>
<a-pagination
size=
"small"
:defaultPageSize=
"20"
showQuickJumper
@
change=
"onChange"
:current=
"params.pageNo"
:total=
"total"
>
</a-pagination>
</a-col>
</a-row>
</div>
<!-- 分页 -->
<a-row
type=
"flex"
justify=
"end"
>
<a-col>
<a-pagination
size=
"small"
:defaultPageSize=
"20"
showQuickJumper
@
change=
"onChange"
:current=
"params.pageNo"
:total=
"total"
>
</a-pagination>
</a-col>
</a-row>
<RouterWapper
v-else
></RouterWapper>
</div>
<RouterWapper
v-else
></RouterWapper>
</div>
</keep-alive>
</template>
<
script
>
import
DataOperatorInList
from
'@/views/components/dataOperatorInList'
...
...
@@ -73,10 +75,20 @@ export default {
groups
:
require
(
'@/assets/images/group.png'
),
}
},
watch
:
{
$route
(
cur
)
{
if
(
cur
)
{
this
.
getSearchParams
()
}
},
},
mounted
(){
console
.
log
(
1
)
if
(
this
.
$route
.
name
==
'role'
){
console
.
log
(
3
)
this
.
getSearchParams
()
}
},
activated
()
{
if
(
this
.
$route
.
name
==
'role'
){
this
.
getSearchParams
()
}
},
...
...
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