mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-06-11 06:07:28 +08:00
优化物业手机端
This commit is contained in:
parent
a734ca35cf
commit
f84328c40e
@ -28,25 +28,36 @@
|
||||
icon: '/static/image/index/i_complaint.png',
|
||||
name: '投诉待办',
|
||||
url: '/pages/complaintList/complaintList',
|
||||
undoCount:_data.complaint
|
||||
undoCount:_data.complaint,
|
||||
pri:'502021012519810021'
|
||||
}, {
|
||||
icon: '/static/image/index/i_repair.png',
|
||||
name: '报修待办',
|
||||
url: '/pages/repairDispatch/repairDispatch',
|
||||
undoCount:_data.repair
|
||||
undoCount:_data.repair,
|
||||
pri:'502021012507510017'
|
||||
}, {
|
||||
icon: '/static/image/index/i_inspection.png',
|
||||
name: '待巡检',
|
||||
url: '/pages/inspection/inspection',
|
||||
undoCount:_data.inspectionTaskCount
|
||||
undoCount:_data.inspectionTaskCount,
|
||||
pri:'502021012567490019'
|
||||
}, {
|
||||
icon: '/static/image/index/i_machine.png',
|
||||
name: '设备保养',
|
||||
url: '/pages/maintainance/maintainance',
|
||||
undoCount:_data.maintainanceTaskCount
|
||||
undoCount:_data.maintainanceTaskCount,
|
||||
pri:'502022110923120007'
|
||||
}]
|
||||
},
|
||||
_toPage: function(_item) {
|
||||
if(!this.java110Context.hasPrivilege(_item.pri)){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'无权限,联系管理员'
|
||||
});
|
||||
return ;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: _item.url
|
||||
})
|
||||
|
||||
@ -31,30 +31,42 @@
|
||||
icon: '/static/image/index_apply_audit.png',
|
||||
name: '采购待办',
|
||||
url: '/pages/resource/purchaseApplyAuditOrders',
|
||||
undoCount:_data.purchase
|
||||
undoCount:_data.purchase,
|
||||
pri:'502021052747070004'
|
||||
}, {
|
||||
icon: '/static/image/index_itemout_audit.png',
|
||||
name: '领用待办',
|
||||
url: '/pages/resource/itemOutAuditOrders',
|
||||
undoCount:_data.collection
|
||||
undoCount:_data.collection,
|
||||
pri:'502021052762260006'
|
||||
}, {
|
||||
icon: '/static/image/index_allocation.png',
|
||||
name: '调拨待办',
|
||||
url: '/pages/resource/allocationStorehouseAuditOrders',
|
||||
undoCount:_data.allocation
|
||||
undoCount:_data.allocation,
|
||||
pri:'502021052707250008'
|
||||
}, {
|
||||
icon: '/static/image/index_complaint.png',
|
||||
name: '物品放行',
|
||||
url: '/pages/itemRelease/itemRelease',
|
||||
undoCount:_data.itemReleaseCount
|
||||
undoCount:_data.itemReleaseCount,
|
||||
pri:'502023011673900012'
|
||||
}, {
|
||||
icon: '/static/image/index_repair.png',
|
||||
name: '访客待办',
|
||||
url: '/pages/visit/visit',
|
||||
undoCount:_data.visitUndoCount
|
||||
undoCount:_data.visitUndoCount,
|
||||
pri:'502023012597990035'
|
||||
}]
|
||||
},
|
||||
_toPage: function(_item) {
|
||||
if(!this.java110Context.hasPrivilege(_item.pri)){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'无权限,联系管理员'
|
||||
});
|
||||
return ;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: _item.url
|
||||
})
|
||||
|
||||
@ -33,6 +33,17 @@
|
||||
data() {
|
||||
return {
|
||||
real_list: [],
|
||||
real_list_noshow:[
|
||||
'/pages/complaintList/complaintList',
|
||||
'/pages/repairDispatch/repairDispatch',
|
||||
'/pages/inspection/inspection',
|
||||
'/pages/maintainance/maintainance',
|
||||
'/pages/resource/purchaseApplyAuditOrders',
|
||||
'/pages/resource/itemOutAuditOrders',
|
||||
'/pages/resource/allocationStorehouseAuditOrders',
|
||||
'/pages/itemRelease/itemRelease',
|
||||
'/pages/visit/visit',
|
||||
],
|
||||
reportMenus:[]
|
||||
};
|
||||
},
|
||||
@ -55,7 +66,13 @@
|
||||
console.log(_data);
|
||||
_data.forEach(_menu=>{
|
||||
if(_menu.name == "物业手机版"){
|
||||
_that.real_list = _menu.childs;
|
||||
let _childs = [];
|
||||
_menu.childs.forEach(item=>{
|
||||
if(_that.real_list_noshow.indexOf(item.href) < 0){
|
||||
_childs.push(item);
|
||||
}
|
||||
})
|
||||
_that.real_list = _childs;
|
||||
}
|
||||
if(_menu.name == "手机报表"){
|
||||
_that.reportMenus = _menu.childs;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user