fix(index): 修复邮管角色车辆定位查看权限问题

- 移除交警和邮管角色禁止地图查看车辆定位的限制
- 允许邮管角色通过 organizationParentId 查询管辖范围内车辆
- 保持快递角色使用 organizationParentId 查询车辆不变
This commit is contained in:
2026-04-29 22:07:17 +08:00
parent bfd2c60070
commit 6136851ade

View File

@@ -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