Commit d9a6592f authored by zhangrui123's avatar zhangrui123

权限,日志

parent a51c3b1f
...@@ -16,7 +16,17 @@ ...@@ -16,7 +16,17 @@
<span>{{menu.meta.title}}</span> <span>{{menu.meta.title}}</span>
</span> </span>
<template v-for="child in menu.children"> <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'" /> <a-icon :type="child.meta.menuIcon?child.meta.menuIcon:'bars'" />
{{child.meta.title}} {{child.meta.title}}
</a-menu-item> </a-menu-item>
...@@ -56,70 +66,70 @@ export default { ...@@ -56,70 +66,70 @@ export default {
}, },
}, },
mounted(){ mounted(){
this.$ajax.get({ // this.$ajax.get({
url: this.$api.GET_USER_INFO, // url: this.$api.GET_USER_INFO,
}).then(res => { // }).then(res => {
if(res.code == 200) { // if(res.code == 200) {
this.isAllPerm = res.data.content.isAllPerm // this.isAllPerm = res.data.content.isAllPerm
console.log(this.isAllPerm) // console.log(this.isAllPerm)
let menus=[] // let menus=[]
let tempmenu = [] // let tempmenu = []
let isLoadExtendMenu = this.$cookie.get('customKeyEnable') // let isLoadExtendMenu = this.$cookie.get('customKeyEnable')
for(let i=0;i<routes.length;i++){ // for(let i=0;i<routes.length;i++){
if(!!routes[i].children){ // if(!!routes[i].children){
for(let j=0;j<routes[i].children.length;j++){ // for(let j=0;j<routes[i].children.length;j++){
if(!!this.isAllPerm) { // 超管访问 // if(!!this.isAllPerm) { // 超管访问
if(!!routes[i].children[j].meta.menuIcon && routes[i].children[j].name == 'systemManagement' && isLoadExtendMenu == 'false'){ // if(!!routes[i].children[j].meta.menuIcon && routes[i].children[j].name == 'systemManagement' && isLoadExtendMenu == 'false'){
let target = routes[i].children[j].children // let target = routes[i].children[j].children
if(target.length > 0) { // if(target.length > 0) {
for(let k = 0 ; k < target.length; k++) { // for(let k = 0 ; k < target.length; k++) {
if(target[k].name == 'tbls') { // if(target[k].name == 'tbls') {
if(isLoadExtendMenu == 'true') { // if(isLoadExtendMenu == 'true') {
tempmenu.push(target[k]) // tempmenu.push(target[k])
} // }
} else { // } else {
tempmenu.push(target[k]) // tempmenu.push(target[k])
} // }
} // }
} // }
let lusso = routes[i].children[j] // let lusso = routes[i].children[j]
lusso.children = [] // lusso.children = []
lusso.children = tempmenu // lusso.children = tempmenu
menus.push(lusso) // menus.push(lusso)
} else if (!!routes[i].children[j].meta.menuIcon) { // } else if (!!routes[i].children[j].meta.menuIcon) {
menus.push(routes[i].children[j]) // menus.push(routes[i].children[j])
} // }
} else if(!this.isAllPerm) { // 非超管访问 // } else if(!this.isAllPerm) { // 非超管访问
if(routes[i].children[j].meta.isAllPerm == false) { // if(routes[i].children[j].meta.isAllPerm == false) {
if(!!routes[i].children[j].meta.menuIcon && routes[i].children[j].name == 'systemManagement' && isLoadExtendMenu == 'false'){ // if(!!routes[i].children[j].meta.menuIcon && routes[i].children[j].name == 'systemManagement' && isLoadExtendMenu == 'false'){
let target = routes[i].children[j].children // let target = routes[i].children[j].children
if(target.length > 0) { // if(target.length > 0) {
for(let k = 0 ; k < target.length; k++) { // for(let k = 0 ; k < target.length; k++) {
if(target[k].name == 'tbls') { // if(target[k].name == 'tbls') {
if(isLoadExtendMenu == 'true') { // if(isLoadExtendMenu == 'true') {
tempmenu.push(target[k]) // tempmenu.push(target[k])
} // }
} else { // } else {
tempmenu.push(target[k]) // tempmenu.push(target[k])
} // }
} // }
} // }
let lusso = routes[i].children[j] // let lusso = routes[i].children[j]
lusso.children = [] // lusso.children = []
lusso.children = tempmenu // lusso.children = tempmenu
menus.push(lusso) // menus.push(lusso)
} else if (!!routes[i].children[j].meta.menuIcon) { // } else if (!!routes[i].children[j].meta.menuIcon) {
menus.push(routes[i].children[j]) // menus.push(routes[i].children[j])
} // }
} // }
} // }
} // }
} // }
} // }
this.menus=menus // this.menus=menus
} // }
}) // })
}, },
computed: { computed: {
menus(){ menus(){
......
{ {
"Layout": [ "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", "path": "/documents/repair", "name": "repairList",
"meta": { "title": "应急报修","authCode":"0005", "menuIcon": "profile", "menuPath": true, "hideInBread": false }, "meta": { "title": "应急报修","authCode":"0005", "menuIcon": "profile", "menuPath": true, "hideInBread": false },
...@@ -41,72 +110,43 @@ ...@@ -41,72 +110,43 @@
} }
] ]
}, },
{ {
"path": "/documents/fiveSearch", "name": "fiveSearch", "path": "/documents/ledger", "name": "ledger",
"meta": { "title": "物业五查", "menuPath": true,"authCode":"0007", "menuIcon": "profile", "hideInBread": true }, "meta": { "title": "区房屋台账", "menuIcon": "profile", "menuPath": true, "hideInBread": false },
"children": [ "children": [
{ {
"path": "/documents/fiveSearch/managerSelfCheckList", "name": "managerSelfCheckList", "path": "/documents/ledger/community", "name": "communityList",
"meta": { "title": "小区经理自查", "menuPath": true,"authCode":"000701", "hideInBread": false}, "meta": { "title": "住宅房屋","authCode":"0008", "menuIcon": "profile", "menuPath": false, "hideInBread": false },
"children": [ "children": [
{ {
"path": "/documents/fiveSearch/managerSelfCheckList/managerCheckList", "name": "managerCheckList", "path": "/documents/ledger/community/info", "name": "communityInfo",
"meta": { "title": "小区经理自查检查单列表","authCode":"000701", "menuPath": false, "hideInBread": false } "meta": { "title": "详情","authCode":"0008", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
}, },
{ {
"path": "/documents/fiveSearch/managerSelfCheckList/managerCheckInfo", "name": "managerCheckInfo", "path": "/documents/ledger/community/equipment", "name": "equipment",
"meta": { "title": "小区经理自查检查单详情","authCode":"00070101", "menuPath": false, "hideInBread": false } "meta": { "title": "设备信息","authCode":"0008", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
}, },
{ {
"path": "/documents/fiveSearch/managerSelfCheckList/managerAllIn", "name": "allIn", "path": "/documents/ledger/community/building", "name": "communityBuilding",
"meta": { "title": "街道检查情况汇总","authCode":"00070102", "menuPath": false, "hideInBread": false } "meta": { "title": "门牌幢列表","authCode":"0008", "menuIcon": "profile", "menuPath": false, "hideInBread": false }
} }
] ]
}, },
{ {
"path": "/documents/fiveSearch/doubleWeekCheckList", "name": "doubleWeekCheckList", "path": "/documents/ledger/NonResident", "name": "NonResident",
"meta": { "title": "物企双周查","authCode":"000702", "menuPath": true, "hideInBread": false }, "meta": { "title": "非居房屋","authCode":"0008", "menuIcon": "profile", "menuPath": true, "hideInBread": false },
"children": [ "children": [
{ {
"path": "/documents/fiveSearch/doubleWeekCheckList/doubleCheckList", "name": "doubleCheckList", "path": "/documents/ledger/NonResident/info", "name": "NonResidentInfo",
"meta": { "title": "物企双周查列表","authCode":"000702" ,"menuPath": false, "hideInBread": false } "meta": { "title": "非居详情","authCode":"0008", "menuIcon": "profile", "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", "path": "/documents/ledger/NonResident/building", "name": "NonResidentBuilding",
"meta": { "title": "街道检查情况汇总","authCode":"00070202", "menuPath": false, "hideInBread": false} "meta": { "title": "非居门牌幢列表","authCode":"0008", "menuIcon": "profile", "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 }
}
]
} }
] ]
} }
] ]
} }
......
...@@ -74,85 +74,113 @@ const appRoutes = [ ...@@ -74,85 +74,113 @@ const appRoutes = [
}, },
{ // 用户管理 { // 用户管理
path: '/systemManagement/people', name: 'people', component: resolve => require(['@/views/personal/InternalStaff/index'], resolve), //people, path: '/systemManagement/people', name: 'people', component: resolve => require(['@/views/personal/InternalStaff/index'], resolve), //people,
meta: { title: '用户管理', authCode: '000904', menuPath: true, menuIcon: 'setting', hideInBread: false, }, meta: { title: '用户管理', authCode: '000904', menuPath: true, menuIcon: 'user', hideInBread: false, },
children: [ children: [
{ {
path: '/systemManagement/people/info', name: 'staffInfo', component: resolve => require(['@/views/personal/InternalStaff/info'], resolve), //staffInfo, path: '/systemManagement/people/info', name: 'staffInfo', component: resolve => require(['@/views/personal/InternalStaff/info'], resolve), //staffInfo,
meta: { title: '账号详情', hideInBread: false, authCode: '00090401' }, meta: { title: '账号详情', hideInBread: false, authCode: '00090401', menuPath: false},
}, },
{ {
path: '/systemManagement/people/createStaff', name: 'createStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //createStaff, path: '/systemManagement/people/createStaff', name: 'createStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //createStaff,
meta: { title: '新增账号', hideInBread: false, authCode: '00090403'}, meta: { title: '新增账号', hideInBread: false, authCode: '00090403', menuPath: false},
}, },
{ {
path: '/systemManagement/people/editStaff', name: 'editStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //editStaff, path: '/systemManagement/people/editStaff', name: 'editStaff', component: resolve => require(['@/views/personal/InternalStaff/edit'], resolve), //editStaff,
meta: { title: '修改账号', menuPath: true, hideInBread: false, authCode: '00090402'}, meta: { title: '修改账号', menuPath: false, hideInBread: false, authCode: '00090402', },
children: [ children: [
] ]
}, },
] ]
}, },
// { // 日志管理 { // 日志管理
// path: '/systemManagement/rizhi', name: 'rizhi', component: resolve => require(['@/views/personal/rizhi/rizhiList'], resolve), //people, path: '/systemManagement/rizhi', name: 'rizhi', component: resolve => require(['@/views/personal/rizhi/rizhiList'], resolve), //people,
// meta: { title: '日志管理', authCode: '', menuPath: true, menuIcon: 'setting', hideInBread: false, }, meta: { title: '日志管理', menuPath: true, menuIcon: 'barcode', hideInBread: false, },
// children: [ children: [
// { {
// path: '/systemManagement/rizhi/info', name: 'rizhiInfo', component: resolve => require(['@/views/personal/rizhi/info'], resolve), //staffInfo, path: '/systemManagement/rizhi/info', name: 'rizhiInfo', component: resolve => require(['@/views/personal/rizhi/info'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' }, meta: { title: '日志管理详情', hideInBread: false, menuPath: false },
// }, },
// { {
// path: '/systemManagement/rizhi/feijuInfo', name: 'feijuInfo', component: resolve => require(['@/views/personal/rizhi/feijuInfo'], resolve), //staffInfo, path: '/systemManagement/rizhi/yeweiInfo', name: 'yeweiInfo', component: resolve => require(['@/views/personal/rizhi/yewei'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' }, meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// }, },
// { {
// path: '/systemManagement/rizhi/xitongInfo', name: 'xitongInfo', component: resolve => require(['@/views/personal/rizhi/xitongInfo'], resolve), //staffInfo, path: '/systemManagement/rizhi/wuyeInfo', name: 'wuyeInfo', component: resolve => require(['@/views/personal/rizhi/wuyeqiye'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' }, meta: { title: '日志管理详情', hideInBread: false, menuPath: false},
// }, },
// { {
// path: '/systemManagement/rizhi/zhanghuInfo', name: 'zhanghuInfo', component: resolve => require(['@/views/personal/rizhi/zhanghuInfo'], resolve), //staffInfo, path: '/systemManagement/rizhi/guanliInfo', name: 'guanliInfo', component: resolve => require(['@/views/personal/rizhi/guanlichu'], resolve), //staffInfo,
// meta: { title: '日志管理详情', hideInBread: false, authCode: '' }, 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, path: '/house', name: 'house', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), // ContentWrapper,
meta: { title: '住宅信息', menuPath: true, menuIcon: 'profile', hideInBread: true, requirePerm: false, authCode: '0001' }, meta: { title: '住宅信息', menuPath: true, menuIcon: 'home', hideInBread: true, requirePerm: false, authCode: '0001' },
children: [ children: [
{ // 小区列表 { // 小区列表
path: '/houseData/basicInfo', name: 'basicInfo', component: resolve => require(['@/views/houseData/basicInfo'], resolve), //basicInfo, path: '/houseData/basicInfo', name: 'basicInfo', component: resolve => require(['@/views/houseData/basicInfo'], resolve), //basicInfo,
meta: { title: '小区列表', menuPath: true, hideInBread: false, authCode: '000101' }, meta: { title: '住宅小区', menuPath: true, hideInBread: false, authCode: '000101', menuIcon: 'home'},
children: [ children: [
{ {
path: '/houseData/basicInfo/:id', name: 'basicView', component: resolve => require(['@/views/houseData/basicView'], resolve), //BasicView, path: '/houseData/basicInfo/:id', name: 'basicView', component: resolve => require(['@/views/houseData/basicView'], resolve), //BasicView,
meta: { title: '小区详细情况', hideInBread: false, authCode: '00010101' }, meta: { title: '小区详细情况', hideInBread: false, authCode: '00010101', menuPath: false },
}, },
{ {
path: '/houseData/buildings', name: 'buildings', component: resolve => require(['@/views/houseData/buildings'], resolve), //Buildings, path: '/houseData/buildings', name: 'buildings', component: resolve => require(['@/views/houseData/buildings'], resolve), //Buildings,
meta: { title: '门牌栋', hideInBread: false, authCode: '00010103'}, meta: { title: '门牌栋', hideInBread: false, authCode: '00010101', menuPath: false},
children: [ children: [
{ {
path: '/houseData/buildings/:id', name: 'buildingView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/buildings/:id', name: 'buildingView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta: { title: '门牌栋详情', hideInBread: false, authCode: '00010103'} meta: { title: '门牌栋详情', hideInBread: false, authCode: '00010101', menuPath: false}
} }
] ]
}, },
{ {
path: '/houseData/feeStandard', name: 'feeStandard', component: resolve => require(['@/views/houseData/feeStandard'], resolve), //Buildings, path: '/houseData/feeStandard', name: 'feeStandard', component: resolve => require(['@/views/houseData/feeStandard'], resolve), //Buildings,
meta: { title: '物业收费标准', hideInBread: false, }, meta: { title: '物业收费标准', hideInBread: false, menuPath: false},
}, },
{ {
path: '/houseData/shebei/:id', name: 'shebei', component: resolve => require(['@/views/houseData/shebei'], resolve), //Shebei, path: '/houseData/shebei/:id', name: 'shebei', component: resolve => require(['@/views/houseData/shebei'], resolve), //Shebei,
meta: { title: '设施设备', menuPath: true, hideInBread: false, authCode: '00010101' }, meta: { title: '设施设备', menuPath: true, hideInBread: false, authCode: '00010101', menuPath: false},
}, },
{ {
path: '/houseData/shebeikanyan/:id', name: 'shebeiKanyan', component: resolve => require(['@/views/xuhui/shebeiKanyan'], resolve), //Shebei, path: '/houseData/shebeikanyan/:id', name: 'shebeiKanyan', component: resolve => require(['@/views/xuhui/shebeiKanyan'], resolve), //Shebei,
meta: { title: '设施设备(勘验)', menuPath: true, hideInBread: false, authCode: '00010101' }, meta: { title: '设施设备(勘验)', menuPath: true, hideInBread: false, authCode: '00010101', menuPath: false },
}, },
...@@ -160,7 +188,7 @@ const appRoutes = [ ...@@ -160,7 +188,7 @@ const appRoutes = [
}, },
{//业委会列表 {//业委会列表
path: '/houseData/indCous', name: 'indCous', component: resolve => require(['@/views/houseData/indCous'], resolve), //IndCous, path: '/houseData/indCous', name: 'indCous', component: resolve => require(['@/views/houseData/indCous'], resolve), //IndCous,
meta: { title: '业委会信息列表', menuPath: true, hideInBread: false, authCode: '000102' }, meta: { title: '业委会', menuPath: true, hideInBread: false, menuIcon: 'bank', authCode: '000102' },
children: [ children: [
{ {
path: '/houseData/indCou/:id', name: 'indCouView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/indCou/:id', name: 'indCouView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
...@@ -168,11 +196,11 @@ const appRoutes = [ ...@@ -168,11 +196,11 @@ const appRoutes = [
}, },
{ {
path: '/houseData/members', name: 'members', component: resolve => require(['@/views/houseData/members'], resolve), //Members, path: '/houseData/members', name: 'members', component: resolve => require(['@/views/houseData/members'], resolve), //Members,
meta: { title: '业委会成员列表', hideInBread: false, authCode: '00010202'}, meta: { title: '业委会成员列表', hideInBread: false, authCode: '00010201', menuPath: false},
children: [ children: [
{ {
path: '/houseData/member/:id', name: 'memberView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/member/:id', name: 'memberView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta: { title: '业委会成员详情', hideInBread: false, authCode: '00010202'} meta: { title: '业委会成员详情', hideInBread: false, authCode: '00010201', menuPath: false}
} }
] ]
}, },
...@@ -180,27 +208,27 @@ const appRoutes = [ ...@@ -180,27 +208,27 @@ const appRoutes = [
}, },
{//物业列表 {//物业列表
path: '/houseData/propertyInfo', name: 'propertyInfo', component: resolve => require(['@/views/houseData/propertyInfo'], resolve), //PropertyInfo, path: '/houseData/propertyInfo', name: 'propertyInfo', component: resolve => require(['@/views/houseData/propertyInfo'], resolve), //PropertyInfo,
meta: { title: '物业企业列表', menuPath: true, hideInBread: false, authCode: '000103' }, meta: { title: '物业企业', menuPath: true, menuIcon: 'appstore', hideInBread: false, authCode: '000103' },
children: [ children: [
{ {
path: '/houseData/propertyInfo/:id', name: 'propertyInfoView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/propertyInfo/:id', name: 'propertyInfoView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta: { title: '物业服务企业详细情况', hideInBread: false, authCode: '00010301' } meta: { title: '物业服务企业详细情况', hideInBread: false, authCode: '00010301', menuPath: false}
} }
] ]
}, },
{ // 小区管理处 { // 小区管理处
path: '/houseData/cmDivision', name: 'cmDivision', component: resolve => require(['@/views/houseData/cmDivision'], resolve), //CmDivision, path: '/houseData/cmDivision', name: 'cmDivision', component: resolve => require(['@/views/houseData/cmDivision'], resolve), //CmDivision,
meta: { title: '小区管理处列表', menuPath: true, hideInBread: false, authCode: '000104' }, meta: { title: '小区管理处', menuPath: true, menuIcon: 'build', hideInBread: false, authCode: '000104' },
children: [ children: [
{ {
path: '/houseData/cmDivision/:id', name: 'cmDivisionView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/cmDivision/:id', name: 'cmDivisionView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
meta: { title: '小区管理处详细情况', menuPath: true, hideInBread: false, authCode: '00010401' } meta: { title: '小区管理处详细情况', menuPath: false, hideInBread: false, authCode: '00010401' }
} }
] ]
}, },
{ // 小区经理 { // 小区经理
path: '/houseData/managers', name: 'managers', component: resolve => require(['@/views/houseData/managers'], resolve), //Managers, path: '/houseData/managers', name: 'managers', component: resolve => require(['@/views/houseData/managers'], resolve), //Managers,
meta: { title: '小区经理列表', menuPath: true, hideInBread: false, authCode: '000105'}, meta: { title: '小区经理', menuPath: true, hideInBread: false, menuIcon: 'solution', authCode: '000105'},
children: [ children: [
{ {
path: '/houseData/managers/:id', name: 'managerView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/managers/:id', name: 'managerView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
...@@ -210,7 +238,7 @@ const appRoutes = [ ...@@ -210,7 +238,7 @@ const appRoutes = [
}, },
{//居委会列表 {//居委会列表
path: '/houseData/neighborhoodCommittees', name: 'neighborhoodCommittees', component: resolve => require(['@/views/houseData/neighborhoodCommittees'], resolve), //neighborhoodCommittees, path: '/houseData/neighborhoodCommittees', name: 'neighborhoodCommittees', component: resolve => require(['@/views/houseData/neighborhoodCommittees'], resolve), //neighborhoodCommittees,
meta: { title: '居委会信息列表', menuPath: true, hideInBread: false, authCode: '000106'}, meta: { title: '居委会', menuPath: true, hideInBread: false, menuIcon: 'shop', authCode: '000106'},
children: [ children: [
{ {
path: '/houseData/neighborhoodCommittees/:id', name: 'neighborhoodCommitteesView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/neighborhoodCommittees/:id', name: 'neighborhoodCommitteesView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
...@@ -222,11 +250,11 @@ const appRoutes = [ ...@@ -222,11 +250,11 @@ const appRoutes = [
}, },
{ {
path: '/noN', name: 'feiju', redirect: { name: 'home' }, component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper, path: '/noN', name: 'feiju', redirect: { name: 'home' }, component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '非居信息', menuPath: true, menuIcon: 'profile', hideInBread: true, authCode: '0002' }, meta: { title: '非居信息', menuPath: true, menuIcon: 'laptop', hideInBread: true, authCode: '0002' },
children: [ children: [
{ // 非居列表 { // 非居列表
path: '/houseData/nonResidents', name: 'nonResidents', component: resolve => require(['@/views/houseData/nonResidents'], resolve), //NonResidents, path: '/houseData/nonResidents', name: 'nonResidents', component: resolve => require(['@/views/houseData/nonResidents'], resolve), //NonResidents,
meta: { title: '非居项目信息列表', menuPath: true, hideInBread: false, authCode: '000201'}, meta: { title: '非居项目信息列表', menuPath: true, menuIcon: 'laptop', hideInBread: false, authCode: '000201'},
children: [ children: [
{ {
path: '/houseData/nonResident/:id', name: 'nonResidentsView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView, path: '/houseData/nonResident/:id', name: 'nonResidentsView', component: resolve => require(['@/views/houseData/propertyInfoView'], resolve), //PropertyInfoView,
......
...@@ -2,76 +2,19 @@ ...@@ -2,76 +2,19 @@
"Layout": [ "Layout": [
{ {
"path": "/order/disposal", "name": "Disposal", "path": "/order/disposal", "name": "Disposal",
"meta": { "title": "处置单列表", "menuPath":false, "menuIcon": "profile","hideInBread":false}, "meta": { "title": "处置单列表", "menuPath":true, "menuIcon": "profile","hideInBread":false},
"children":[ "children":[
{ {
"path": "/order/disposal/disposalList", "name": "disposalList", "path": "/order/disposal/disposalList", "name": "disposalList",
"meta": { "title": "处置单列表", "menuPath":false, "menuIcon": "profile","hideInBread":false}, "meta": { "title": "处置单列表", "menuPath":true, "menuIcon": "profile","hideInBread":false},
"children": [ "children": [
{ {
"path": "/order/disposal/disposalView/:id", "name": "DisposalView", "path": "/order/disposal/disposalView/:id", "name": "DisposalView",
"meta": { "title": "处置单详情", "menuPath":false, "hideInBread":false } "meta": { "title": "处置单详情", "menuPath":true, "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}
}
]
} }
] ]
} }
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
GET_ALL_ROLE: '/service-permission/menu/tree', //获取权限 GET_ALL_ROLE: '/service-permission/menu/tree', //获取权限
GET_USER_CODE: '/service-permission/user/menus/code', //获取用户权限 GET_USER_CODE: '/service-permission/user/menus/code', //获取用户权限
GET_USER_PERM: '/service-permission/user/menus/{id}',
ROLE_DETAIL: '/service-permission/roles/{id}', // 查询角色权限 ROLE_DETAIL: '/service-permission/roles/{id}', // 查询角色权限
ADD_ROLE_POST: '/service-permission/role', // 新增角色 ADD_ROLE_POST: '/service-permission/role', // 新增角色
...@@ -228,7 +229,7 @@ export default { ...@@ -228,7 +229,7 @@ export default {
// PUT_STAFF_LIST: '/service-user-ddd/user', //修改内部人员列表 // PUT_STAFF_LIST: '/service-user-ddd/user', //修改内部人员列表
GET_USERNAME_EXIST: '/service-user-ddd/public/check/username/exist', //校验用户名是否存在 GET_USERNAME_EXIST: '/service-user-ddd/public/check/username/exist', //校验用户名是否存在
GET_CHECK_PHONE_EXIST: '/public/check/phone/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', //日志列表 GET_RIZHI: '/service-log/operateRecord', //日志列表
......
...@@ -11,8 +11,8 @@ export const permission = { ...@@ -11,8 +11,8 @@ export const permission = {
url: this.$api.GET_USER_INFO url: this.$api.GET_USER_INFO
}).then(res => { }).then(res => {
//后台刷新redis //后台刷新redis
this.$ajax.get({ this.$ajax.post({
url: this.$api.GET_REDIS.replace('{id}', res.data.content.id), url: this.$api.GET_REDIS.replace('{id}', '?message='+ res.data.content.id),
}).then(res => { }).then(res => {
if (res.code == '200') { if (res.code == '200') {
console.log(1) console.log(1)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="portalDetailTitle"> <div class="portalDetailTitle">
<span class="title">详情</span> <span class="title">详情</span>
<div class="detailOperations"> <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> <a-button @click="handleReturn"> 返回 </a-button>
</div> </div>
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<a-col :span="3" style="border-right:1px solid #ccc;height:100%; position:relative"> <a-col :span="3" style="border-right:1px solid #ccc;height:100%; position:relative">
<span class="menu_header">拓展信息管理列表</span> <span class="menu_header">拓展信息管理列表</span>
<a-menu mode="vertical" :selectedKeys="selectedKeys"> <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}} {{item}}
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<a-form class="protalForm" :form="searchForm" > <a-form class="protalForm" :form="searchForm" >
<a-row type="flex" justify="space-between" align="middle"> <a-row type="flex" justify="space-between" align="middle">
<a-col span="6" > <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 > <div >
<a-modal :title="!isChangeZdy ? '新增字段':'修改字段'" v-model="visible" @cancel="handleCancel" @ok="handleOk"> <a-modal :title="!isChangeZdy ? '新增字段':'修改字段'" v-model="visible" @cancel="handleCancel" @ok="handleOk">
<a-form class="protalForm" :form="form" > <a-form class="protalForm" :form="form" >
...@@ -86,11 +86,11 @@ ...@@ -86,11 +86,11 @@
<!-- table --> <!-- table -->
<a-table bordered class="portalTable" :dataSource="taskCollectList" :columns="columns" size="small" :pagination="pagination"> <a-table bordered class="portalTable" :dataSource="taskCollectList" :columns="columns" size="small" :pagination="pagination">
<span slot="action" slot-scope="text, record"> <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)"> <a-modal title="警告" v-model="visibleDel" @ok="del(record)">
<p>该字段可能已被使用,是否确定删除?</p> <p>该字段可能已被使用,是否确定删除?</p>
</a-modal> </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> </span>
</a-table> </a-table>
...@@ -200,89 +200,89 @@ export default { ...@@ -200,89 +200,89 @@ export default {
} }
}, },
methods: { methods: {
formatPermission(item){ // formatPermission(item){
let permissionNum = null // let permissionNum = null
switch (item) { // switch (item) {
case '小区': // case '小区':
permissionNum = '00000201' // permissionNum = '00000201'
break // break
case '门牌幢': // case '门牌幢':
permissionNum = '00000202' // permissionNum = '00000202'
break // break
case '设施设备': // case '设施设备':
permissionNum = '00000203' // permissionNum = '00000203'
break // break
case '物业企业': // case '物业企业':
permissionNum = '00000204' // permissionNum = '00000204'
break // break
case '业主大会': // case '业主大会':
permissionNum = '00000205' // permissionNum = '00000205'
break // break
case '业委会成员': // case '业委会成员':
permissionNum = '00000206' // permissionNum = '00000206'
break // break
case '小区管理处': // case '小区管理处':
permissionNum = '00000209' // permissionNum = '00000209'
break // break
case '小区经理': // case '小区经理':
permissionNum = '00000210' // permissionNum = '00000210'
break // break
case '居委会信息': // case '居委会信息':
permissionNum = '00000211' // permissionNum = '00000211'
break // break
case '非居信息': // case '非居信息':
permissionNum = '00000212' // permissionNum = '00000212'
break // break
case '非居门牌幢信息': // case '非居门牌幢信息':
permissionNum = '00000213' // permissionNum = '00000213'
break // break
default: // default:
break // break
} // }
return permissionNum // return permissionNum
}, // },
formatDeletePermission(){ // formatDeletePermission(){
let deletePermissionNum = null // let deletePermissionNum = null
switch (this.selectedKeys[0]) { // switch (this.selectedKeys[0]) {
case 'tbl_community': // case 'tbl_community':
deletePermissionNum = '0000020102' // deletePermissionNum = '0000020102'
break // break
case 'tbl_building': // case 'tbl_building':
deletePermissionNum = '0000020202' // deletePermissionNum = '0000020202'
break // break
case 'tbl_facilities_equipment': // case 'tbl_facilities_equipment':
deletePermissionNum = '0000020302' // deletePermissionNum = '0000020302'
break // break
case 'tbl_prop_company': // case 'tbl_prop_company':
deletePermissionNum = '0000020402' // deletePermissionNum = '0000020402'
break // break
case 'tbl_industry_council': // case 'tbl_industry_council':
deletePermissionNum = '0000020502' // deletePermissionNum = '0000020502'
break // break
case 'tbl_ic_member': // case 'tbl_ic_member':
deletePermissionNum = '0000020602' // deletePermissionNum = '0000020602'
break // break
case 'tbl_community_amst_office': // case 'tbl_community_amst_office':
deletePermissionNum = '0000020902' // deletePermissionNum = '0000020902'
break // break
case 'tbl_community_manager': // case 'tbl_community_manager':
deletePermissionNum = '0000021002' // deletePermissionNum = '0000021002'
break // break
case 'tbl_residents_committees': // case 'tbl_residents_committees':
deletePermissionNum = '0000021102' // deletePermissionNum = '0000021102'
break // break
case 'tbl_non_resident': // case 'tbl_non_resident':
deletePermissionNum = '0000021202' // deletePermissionNum = '0000021202'
break // break
case 'tbl_non_resident_building': // case 'tbl_non_resident_building':
deletePermissionNum = '0000021302' // deletePermissionNum = '0000021302'
break // break
default: // default:
break // break
} // }
return deletePermissionNum // return deletePermissionNum
}, // },
//默认时间框 //默认时间框
chooseDate(date, dateString) { chooseDate(date, dateString) {
......
...@@ -36,15 +36,16 @@ ...@@ -36,15 +36,16 @@
<a-row class="formItemLine"> <a-row class="formItemLine">
<a-col span="8"> <a-col span="8">
<a-form-item label="机构类型" v-bind="colSpe"> <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: '请选择机构类型!' } ] validateTrigger: 'change', rules: [ { required: true, message: '请选择机构类型!' } ]
}]"> }]">
<a-select-option value="2">房办</a-select-option> <a-select-option value="2">房办</a-select-option>
<a-select-option value="0">区级</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col span="8"> <a-col span="8" v-if="show">
<a-form-item label="机构名称" v-bind="colSpe"> <a-form-item label="机构名称" v-bind="colSpe" >
<a-select placeholder="请选择" allowClear mode="multi" v-decorator="['DorgId', { <a-select placeholder="请选择" allowClear mode="multi" v-decorator="['DorgId', {
validateTrigger: 'change', rules: [ { required: true, message: '请选择机构名称!' } ] validateTrigger: 'change', rules: [ { required: true, message: '请选择机构名称!' } ]
}]"> }]">
...@@ -80,6 +81,7 @@ export default { ...@@ -80,6 +81,7 @@ export default {
}, },
data() { data() {
return { return {
show: true,
exclusionRoleIds: [ '999999', ], exclusionRoleIds: [ '999999', ],
userRoldIDsOrg: [], userRoldIDsOrg: [],
orgnazation: [], orgnazation: [],
...@@ -104,6 +106,7 @@ export default { ...@@ -104,6 +106,7 @@ export default {
// 从个人中心-账户信息跳过来的不能修改手机号 // 从个人中心-账户信息跳过来的不能修改手机号
this.fromCenter = !!this.$route.query.id this.fromCenter = !!this.$route.query.id
}, },
mounted() { mounted() {
this.$ajax.get({ this.$ajax.get({
...@@ -165,8 +168,8 @@ export default { ...@@ -165,8 +168,8 @@ export default {
if (values.phone2) { if (values.phone2) {
values.phone+= values.phone2 values.phone+= values.phone2
} }
values.orgId = this.searchForm.getFieldValue('DorgId').split('#')[0] values.orgId = this.searchForm.getFieldValue('DorgId')?this.searchForm.getFieldValue('DorgId').split('#')[0]:''
values.orgName = this.searchForm.getFieldValue('DorgId').split('#')[1] values.orgName = this.searchForm.getFieldValue('DorgId')?this.searchForm.getFieldValue('DorgId').split('#')[1]:''
values.notes.forEach((item, index) => { values.notes.forEach((item, index) => {
if (index == 0) { if (index == 0) {
values.roleIds += item.key values.roleIds += item.key
...@@ -268,9 +271,13 @@ export default { ...@@ -268,9 +271,13 @@ export default {
}) })
} }
}, },
//获取机构名称的下拉框 changeType(val){
changeOrg(){ console.log(val)
if(val == 0){
this.show = false
}else{
this.show = true
}
}, },
//获取id 对应的账户信息 //获取id 对应的账户信息
getDetail() { getDetail() {
......
...@@ -45,9 +45,9 @@ ...@@ -45,9 +45,9 @@
<!-- <a-menu-item v-if="$permission('00090401')" class="actionBtn" key="4"> 重置密码 <!-- <a-menu-item v-if="$permission('00090401')" class="actionBtn" key="4"> 重置密码
</a-menu-item> --> </a-menu-item> -->
<!-- <a-menu-item class="actionBtn" key="2" v-if="$permission('S00011416')"> 禁用 </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('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 class="actionBtn" v-if="$permission('00090406')" key="3" @click='(event)=>{showOpeations(event.key,record)}'> 注销 -->
</a-menu-item> <!-- </a-menu-item> -->
<a-menu-item class="actionBtn" v-if="$permission('00090402')" @click="handleEdit(record)"> 修改 <a-menu-item class="actionBtn" v-if="$permission('00090402')" @click="handleEdit(record)"> 修改
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
...@@ -184,16 +184,6 @@ export default { ...@@ -184,16 +184,6 @@ export default {
customRender: 'roleIds', customRender: 'roleIds',
}, },
}, },
{
title: '状态',
align: 'center',
dataIndex: 'status',
key: 'status',
width: '13%',
scopedSlots: {
customRender: 'status',
},
},
{ {
title: '手机号', title: '手机号',
align: 'center', align: 'center',
...@@ -213,6 +203,14 @@ export default { ...@@ -213,6 +203,14 @@ export default {
] ]
} }
}, },
watch: {
$route(cur) {
if (cur) {
this.getSearchParams()
this.getRoleList()
}
},
},
mounted() { mounted() {
if(this.$route.name == 'people'){ if(this.$route.name == 'people'){
this.$nextTick(function () { this.$nextTick(function () {
...@@ -342,7 +340,7 @@ export default { ...@@ -342,7 +340,7 @@ export default {
let searchParms = { let searchParms = {
pageNo: this.pagination.current, pageNo: this.pagination.current,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
phone_ne: 0
} }
searchParms = Object.assign({}, searchParms, this.searchForm.getFieldsValue()) searchParms = Object.assign({}, searchParms, this.searchForm.getFieldsValue())
if (searchParms.roleIds_in && searchParms.roleIds_in.length>0) { if (searchParms.roleIds_in && searchParms.roleIds_in.length>0) {
......
// {
// "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
<template> <template>
<div class="routerWapper enquiryList"> <div class="routerWapper enquiryList">
<Loader />
<div class="portalDetailTitle"> <div class="portalDetailTitle">
<span class="title"> <span class="title">
日志详情 日志详情
...@@ -9,16 +8,19 @@ ...@@ -9,16 +8,19 @@
<a-button @click="$router.back()"> 返回 </a-button> <a-button @click="$router.back()"> 返回 </a-button>
</div> </div>
</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"> <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>
<div class="cardBox"> <div class="cardBox">
<a-card title="操作前信息" style="width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"> <a-card title="操作前信息" style="width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;">
<div class="card-centent"> <div class="card-centent">
<div style="margin-bottom:8px;"> <div style="margin-bottom:8px;">
<a-form class="protalForm"> <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-input v-decorator="[item.keyCode]" disabled="disabled"/>
</a-form-item> </a-form-item>
</a-form> </a-form>
...@@ -29,7 +31,7 @@ ...@@ -29,7 +31,7 @@
<div class="card-centent"> <div class="card-centent">
<div style="margin-bottom:8px;"> <div style="margin-bottom:8px;">
<a-form class="protalForm"> <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-input v-decorator="[item.keyCode]" disabled="disabled"/>
</a-form-item> </a-form-item>
</a-form> </a-form>
...@@ -44,7 +46,7 @@ ...@@ -44,7 +46,7 @@
<script> <script>
export default { export default {
name: 'rizhiInfo', name: 'feijuInfo',
data() { data() {
formExt: this.$form.createForm(this) formExt: this.$form.createForm(this)
return { return {
...@@ -55,12 +57,13 @@ export default { ...@@ -55,12 +57,13 @@ export default {
tbl_community_manager: [], tbl_community_manager: [],
tbl_industry_council: [], tbl_industry_council: [],
tbl_residents_committees: [], tbl_residents_committees: [],
tbl_non_resident: [],
}, // ext所有列表 }, // ext所有列表
content: {} content: {}
} }
}, },
mounted(){ mounted(){
if(this.$route.name == 'rizhiInfo'){ if(this.$route.name == 'feijuInfo'){
this.getList() this.getList()
} }
}, },
...@@ -75,10 +78,10 @@ export default { ...@@ -75,10 +78,10 @@ export default {
this.$message.info(res.msg, 10) this.$message.info(res.msg, 10)
} }
this.$ajax.get({ 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 => { }).then(res => {
if (res.code == 200) { 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', [])
} }
}) })
}) })
......
<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>
...@@ -11,45 +11,17 @@ ...@@ -11,45 +11,17 @@
<!-- 小区 --> <!-- 小区 -->
<div v-if="$route.name == 'rizhiInfo'" class="layoutMargin layoutPadding"> <div v-if="$route.name == 'rizhiInfo'" class="layoutMargin layoutPadding">
<div style="font-size:16px;margin-bottom:20px"> <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>
<div class="cardBox"> <div class="cardBox">
<a-card title="操作前信息" style="width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;"> <a-card title="操作前信息" style="width: 49%;margin-right:1%;margin-bottom:1%;justify-content:flex-end;">
<div class="card-centent"> <div class="card-centent">
<div style="margin-bottom:8px;"> <div style="margin-bottom:8px;">
<a-form class="protalForm"> <a-form class="protalForm" :form="form">
<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-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 v-decorator="[item.keyCode]" disabled="disabled"/> <a-input :value="ele.keyVal" 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-item>
</a-form> </a-form>
</div> </div>
...@@ -60,127 +32,7 @@ ...@@ -60,127 +32,7 @@
<div style="margin-bottom:8px;"> <div style="margin-bottom:8px;">
<a-form class="protalForm"> <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-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>
</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-form-item> </a-form-item>
</a-form> </a-form>
</div> </div>
...@@ -188,6 +40,7 @@ ...@@ -188,6 +40,7 @@
</a-card> </a-card>
</div> </div>
</div> </div>
<RouterWapper v-else></RouterWapper> <RouterWapper v-else></RouterWapper>
</div> </div>
</template> </template>
...@@ -195,9 +48,10 @@ ...@@ -195,9 +48,10 @@
<script> <script>
export default { export default {
name: 'rizhiInfo', name: 'rizhiInfo',
data() { data() {
formExt: this.$form.createForm(this) return {
return { form: this.$form.createForm(this), //表单验证
extList: { extList: {
tbl_community: [], tbl_community: [],
tbl_community_amst_office: [], tbl_community_amst_office: [],
...@@ -206,9 +60,12 @@ export default { ...@@ -206,9 +60,12 @@ export default {
tbl_industry_council: [], tbl_industry_council: [],
tbl_residents_committees: [], tbl_residents_committees: [],
}, // ext所有列表 }, // ext所有列表
keyCode: [],
key: '',
text: '',
content: {} content: {}
} }
}, },
mounted(){ mounted(){
if(this.$route.name == 'rizhiInfo'){ if(this.$route.name == 'rizhiInfo'){
this.getList() this.getList()
...@@ -219,18 +76,40 @@ export default { ...@@ -219,18 +76,40 @@ export default {
this.$ajax.get({ this.$ajax.get({
url: this.$api.GET_RIZHI_INFO.replace('{id}', this.$route.query.id), url: this.$api.GET_RIZHI_INFO.replace('{id}', this.$route.query.id),
}).then(res => { }).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 { } else {
this.$message.info(res.msg, 10) 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', [])
}
})
}) })
}, },
}, },
......
<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>
<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>
<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>
<template> <template>
<div> <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"> <div class="routerContent layoutMargin layoutPadding">
<!-- 搜索区 --> <!-- 搜索区 -->
<a-form class="protalForm" :form="searchForm" style="padding: 0px 10px;"> <a-form class="protalForm" :form="searchForm" style="padding: 0px 10px;">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<a-table class="elevator-table portalTable" :dataSource="List" :columns="columns" size="small" :pagination="pagination" <a-table class="elevator-table portalTable" :dataSource="List" :columns="columns" size="small" :pagination="pagination"
rowKey="id"> rowKey="id">
<span slot="operation" slot-scope="text, record"> <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> </span>
</a-table> </a-table>
</div> </div>
...@@ -144,6 +144,7 @@ export default { ...@@ -144,6 +144,7 @@ export default {
}) })
}else{ }else{
var searchParms = { 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(): '', '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, pageNo: this.pagination.current,
pageSize: 10, pageSize: 10,
...@@ -180,13 +181,86 @@ export default { ...@@ -180,13 +181,86 @@ export default {
*/ */
toNext(record){ toNext(record){
// 进入详情 // 进入详情
this.$router.push({ if(record.pointName.slice(0, 6)=='拓展信息管理'){
name: 'rizhiInfo', this.$router.push({
query: { name: 'tuozhanxinxiguanliInfo',
id: record.id, query: {
type: 'view' 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,
},
})
}
}, },
/** /**
* 清空表单 * 清空表单
......
<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>
<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>
<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>
<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>
<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>
<template> <template>
<div class="routerWapper"> <keep-alive>
<div v-if="$route.name == 'role' && $permission('000903')" class="layoutMargin layoutPadding"> <div class="routerWapper">
<a-form class="protalForm" :form="searchForm"> <div v-if="$route.name == 'role' && $permission('000903')" class="layoutMargin layoutPadding">
<a-row type="flex" justify="end" align="middle"> <a-form class="protalForm" :form="searchForm">
<a-col span="6"> <a-row type="flex" justify="end" align="middle">
<a-form-item class="formItem" label="" :label-col="{span:0}" :wrapper-col="{span:24}" > <a-col span="6">
<a-input placeholder="请输入角色名称" v-model="searchForm.roleName_l" /> <a-form-item class="formItem" label="" :label-col="{span:0}" :wrapper-col="{span:24}" >
</a-form-item> <a-input placeholder="请输入角色名称" v-model="searchForm.roleName_l" />
</a-col> </a-form-item>
<a-col span="5" class="algin-right" style="padding-right:8px"> </a-col>
<a-button @click="reset">重置</a-button> <a-col span="5" class="algin-right" style="padding-right:8px">
<a-button type="primary" @click="search">搜索</a-button> <a-button @click="reset">重置</a-button>
</a-col> <a-button type="primary" @click="search">搜索</a-button>
</a-row> </a-col>
</a-form> </a-row>
<p class="gayLine noline"></p> </a-form>
<div class="portalTableOperates"> <p class="gayLine noline"></p>
<a-button type="primary" icon='plus' v-if="$permission('00090302')" @click="addBtn">新增角色</a-button> <div class="portalTableOperates">
</div> <a-button type="primary" icon='plus' v-if="$permission('00090302')" @click="addBtn">新增角色</a-button>
<div class="wrapper-roles"> </div>
<div class="box" v-for="(item,index) in roleList" :key="index"> <div class="wrapper-roles">
<div class="inner"> <div class="box" v-for="(item,index) in roleList" :key="index">
<div class="content"> <div class="inner">
<p class="roleName" :title='item.roleName'>{{item.roleName}} </p> <div class="content">
<p class="roleNum"><img :src="groups" class="group-icon" alt="人数"><span class="name-num">{{item.userCount || '0'}}</span></p> <p class="roleName" :title='item.roleName'>{{item.roleName}} </p>
<DataOperatorInList :level="!item.sort?0:item.sort" :creator='!item.creator?"":item.creator' :lastOperator='!item.operator?"":item.operator'></DataOperatorInList> <p class="roleNum"><img :src="groups" class="group-icon" alt="人数"><span class="name-num">{{item.userCount || '0'}}</span></p>
</div> <DataOperatorInList :level="!item.sort?0:item.sort" :creator='!item.creator?"":item.creator' :lastOperator='!item.operator?"":item.operator'></DataOperatorInList>
<div class="operate"> </div>
<template> <div class="operate">
<span @click="view(item)" v-if="$permission('00090301')">查看</span> <template>
<a-divider type="vertical" /> <span @click="view(item)" v-if="$permission('00090301')">查看</span>
</template> <a-divider type="vertical" />
<template> </template>
<span @click="edit(item)" v-if="$permission('00090304')">修改</span> <template>
<a-divider type="vertical" /> <span @click="edit(item)" v-if="$permission('00090304')">修改</span>
</template> <a-divider type="vertical" />
<span @click="deleteBtn(item)" v-if="$permission('00090304')">删除</span> </template>
<span @click="deleteBtn(item)" v-if="$permission('00090304')">删除</span>
</div>
</div> </div>
</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> </div>
<!-- 分页 --> <RouterWapper v-else></RouterWapper>
<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> </div>
<RouterWapper v-else></RouterWapper> </keep-alive>
</div>
</template> </template>
<script> <script>
import DataOperatorInList from '@/views/components/dataOperatorInList' import DataOperatorInList from '@/views/components/dataOperatorInList'
...@@ -73,10 +75,20 @@ export default { ...@@ -73,10 +75,20 @@ export default {
groups: require('@/assets/images/group.png'), groups: require('@/assets/images/group.png'),
} }
}, },
watch: {
$route(cur) {
if (cur) {
this.getSearchParams()
}
},
},
mounted(){ mounted(){
console.log(1)
if(this.$route.name == 'role'){ if(this.$route.name == 'role'){
console.log(3) this.getSearchParams()
}
},
activated () {
if(this.$route.name == 'role'){
this.getSearchParams() this.getSearchParams()
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment