Commit 5e9334ea authored by levante's avatar levante

12

parents 70b5ccdf 9978c122
...@@ -13,22 +13,34 @@ ...@@ -13,22 +13,34 @@
<a-sub-menu :key="menu.name"> <a-sub-menu :key="menu.name">
<span slot="title"> <span slot="title">
<a-icon :type="menu.meta.menuIcon?menu.meta.menuIcon:'bars'" /> <a-icon :type="menu.meta.menuIcon?menu.meta.menuIcon:'bars'" />
<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>
</template> </template>
</a-sub-menu> </a-sub-menu>
</template> </template>
<template v-else> <!-- <template v-else>
<a-menu-item :key="menu.name" @click="onclick(menu.name)"> <a-menu-item :key="menu.name" @click="onclick(menu.name)">
<a-icon :type="menu.meta.menuIcon?menu.meta.menuIcon:'bars'" /> <a-icon :type="menu.meta.menuIcon?menu.meta.menuIcon:'bars'" />
{{menu.meta.title}} {{menu.meta.title}}
</a-menu-item> </a-menu-item>
</template> </template> -->
</template> </template>
</template> </template>
</a-menu> </a-menu>
...@@ -56,70 +68,70 @@ export default { ...@@ -56,70 +68,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": "区房屋台账","authCode":"0008", "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 }
}
]
} }
] ]
} }
] ]
} }
......
This diff is collapsed.
...@@ -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}
}
]
} }
] ]
} }
...@@ -64,7 +64,8 @@ default: // 默认环境下(开发环境) ...@@ -64,7 +64,8 @@ default: // 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2' // BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2' // BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2' // BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
BASE_URL = 'http://pudong.hm.omniview.pro/api/v2' BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://211.136.105.193/apiv2' // BASE_URL = 'http://211.136.105.193/apiv2'
MOCK_URL = 'https://yapi.omniview.pro/mock/283' MOCK_URL = 'https://yapi.omniview.pro/mock/283'
break break
...@@ -214,6 +215,7 @@ export default { ...@@ -214,6 +215,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 +230,7 @@ export default { ...@@ -228,7 +230,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)
......
<template>
<div class="content">
<xuhui v-if="(this.$api.BASE_URL).indexOf('xuhui') > -1 || (this.$api.BASE_URL).indexOf('31.0.161.39') > -1||(this.$api.BASE_URL).indexOf('pudong') > -1 || (this.$api.BASE_URL).indexOf('211.136.105.193') > -1" />
<home v-else />
</div>
</template>
<script>
import xuhui from '@/views/homeXuhui'
import home from '@/views/home'
export default {
components: {
xuhui,
home
}
}
</script>
<style scoped>
.content{
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -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="4">区级</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 == 4){
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>
This diff is collapsed.
<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>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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