fix(index): 修复邮管角色车辆定位查看权限问题
- 移除交警和邮管角色禁止地图查看车辆定位的限制 - 允许邮管角色通过 organizationParentId 查询管辖范围内车辆 - 保持快递角色使用 organizationParentId 查询车辆不变
This commit is contained in:
@@ -197,7 +197,10 @@ function Home() {
|
|||||||
// 邮管(youzheng)可以查看管辖范围内车辆,通过 organizationParentId 查询
|
// 邮管(youzheng)可以查看管辖范围内车辆,通过 organizationParentId 查询
|
||||||
if (roleCode == 'youzheng') {
|
if (roleCode == 'youzheng') {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
where.organizationParentId = user.organizationId;
|
// where.organizationParentId = undefined;
|
||||||
|
where.limit = 1000;
|
||||||
|
// @ts-ignore
|
||||||
|
where.status = 1;
|
||||||
}
|
}
|
||||||
if (roleCode == 'kuaidi') {
|
if (roleCode == 'kuaidi') {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user