From bfd2c600706a61d0abefb91a5202d77dff5bf9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 29 Apr 2026 19:42:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(index):=20=E4=BF=AE=E5=A4=8D=E9=82=AE?= =?UTF-8?q?=E7=AE=A1=E8=A7=92=E8=89=B2=E8=BD=A6=E8=BE=86=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除交警和邮管角色禁止地图查看车辆定位的限制 - 允许邮管角色通过 organizationParentId 查询管辖范围内车辆 - 保持快递角色使用 organizationParentId 查询车辆不变 --- src/pages/index/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 43ad006..7860209 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -176,10 +176,6 @@ function Home() { const user = await getUserInfo(); - // 交警和邮管不能在小程序主界面地图上看到任何一个车辆的定位 - if(Taro.getStorageSync('RoleCode') == 'jiaojing' || Taro.getStorageSync('RoleCode') == 'youzheng'){ - return false - } if (latitude) { // @ts-ignore where.latitude = latitude @@ -198,6 +194,11 @@ function Home() { // @ts-ignore where.organizationId = user.organizationId; } + // 邮管(youzheng)可以查看管辖范围内车辆,通过 organizationParentId 查询 + if (roleCode == 'youzheng') { + // @ts-ignore + where.organizationParentId = user.organizationId; + } if (roleCode == 'kuaidi') { // @ts-ignore where.organizationParentId = user.organizationId;