From 506625164c6f2c633485a423ecbbd2d892a1f7bb Mon Sep 17 00:00:00 2001 From: lzh Date: Wed, 25 Mar 2026 15:43:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(@vben/web-antd):=20=E5=AE=89=E4=BF=9D?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E8=AF=A6=E6=83=85=E5=B7=A6=E5=9B=BE=E5=8F=B3?= =?UTF-8?q?=E8=A1=A8=E5=B8=83=E5=B1=80=E6=94=B9=E9=80=A0=E5=8F=8A=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E6=A8=A1=E5=9D=97=E4=BB=A3=E7=A0=81=E8=B4=A8=E9=87=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 安保详情事件信息改为左图右表布局,新增摄像头名称和处理人手机号字段 - 工单卡片展示处理人手机号,时间字段类型兼容时间戳和格式化字符串 - 工单详情页安保扩展区位置下移,安保工单隐藏重复的执行人行 - 登录后默认设置访问租户为登录租户 - 修复 scoped 暗色模式选择器不生效问题,移除 as any 类型断言 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/api/ops/order-center/index.ts | 8 +- apps/web-antd/src/store/auth.ts | 5 + .../cleaning/work-order/modules/card-view.vue | 15 +- .../components/security-detail-ext.vue | 252 +++++++++++++----- .../src/views/ops/work-order/detail/index.vue | 10 +- .../ops/work-order/modules/card-view.vue | 15 +- 6 files changed, 221 insertions(+), 84 deletions(-) diff --git a/apps/web-antd/src/api/ops/order-center/index.ts b/apps/web-antd/src/api/ops/order-center/index.ts index 567928a6d..f9c12d9e4 100644 --- a/apps/web-antd/src/api/ops/order-center/index.ts +++ b/apps/web-antd/src/api/ops/order-center/index.ts @@ -78,16 +78,18 @@ export namespace OpsOrderCenterApi { alarmId?: string; // 关联告警ID alarmType?: string; // 告警类型: intrusion/leave_post/fire/fence cameraId?: string; // 摄像头ID + cameraName?: string; // 摄像头名称 roiId?: string; // ROI区域ID imageUrl?: string; // 告警截图URL assignedUserId?: number; // 处理人user_id assignedUserName?: string; // 处理人姓名 + assignedUserPhone?: string; // 处理人手机号 assignedTeamId?: number; // 班组ID result?: string; // 处理结果描述 resultImgUrls?: string; // 处理结果图片URL,JSON数组 - dispatchedTime?: string; // 派单时间 - confirmedTime?: string; // 确认时间 - completedTime?: string; // 完成时间 + dispatchedTime?: number | string; // 派单时间(number=毫秒时间戳,string=格式化时间) + confirmedTime?: number | string; // 确认时间(number=毫秒时间戳,string=格式化时间) + completedTime?: number | string; // 完成时间(number=毫秒时间戳,string=格式化时间) } /** 工单列表项 */ diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index dcef71175..88d201b27 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -70,6 +70,11 @@ export const useAuthStore = defineStore('auth', () => { accessStore.setAccessToken(accessToken); accessStore.setRefreshToken(refreshToken); + // 登录成功后,如果未设置访问租户,默认使用登录时选择的租户 + if (accessStore.tenantId && !accessStore.visitTenantId) { + accessStore.setVisitTenantId(accessStore.tenantId); + } + // 获取用户信息并存储到 userStore、accessStore 中 // TODO @芋艿:清理掉 accessCodes 相关的逻辑 // const [fetchUserInfoResult, accessCodes] = await Promise.all([ diff --git a/apps/web-antd/src/views/ops/cleaning/work-order/modules/card-view.vue b/apps/web-antd/src/views/ops/cleaning/work-order/modules/card-view.vue index b6bb0f642..75e9ed9e7 100644 --- a/apps/web-antd/src/views/ops/cleaning/work-order/modules/card-view.vue +++ b/apps/web-antd/src/views/ops/cleaning/work-order/modules/card-view.vue @@ -367,6 +367,12 @@ onMounted(() => { class="info-text assignee-text" > {{ item.assigneeName }} + + ({{ (item.extInfo as OpsOrderCenterApi.SecurityExtInfo).assignedUserPhone }}) + 待分配 @@ -420,9 +426,9 @@ onMounted(() => { - + - +