From e479f3851c303c97db18303b2d80cc5458368241 Mon Sep 17 00:00:00 2001 From: dev_ljl <2590379346@qq.com> Date: Tue, 9 Sep 2025 17:49:34 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E3=80=81=E5=B1=95=E7=A4=BA=E8=A7=92=E8=89=B2=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/layouts/basic.vue | 20 ++++++++++---------- apps/web-antd/src/store/auth.ts | 1 + packages/stores/src/modules/user.ts | 2 ++ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue index 61256dab..eaa9997b 100644 --- a/apps/web-antd/src/layouts/basic.vue +++ b/apps/web-antd/src/layouts/basic.vue @@ -41,15 +41,15 @@ const { destroyWatermark, updateWatermark } = useWatermark(); const tenantStore = useTenantStore(); const menus = computed(() => { const defaultMenus = [ - { - handler: () => { - openWindow(VBEN_DOC_URL, { - target: '_blank', - }); - }, - icon: BookOpenText, - text: $t('ui.widgets.document'), - }, + // { + // handler: () => { + // openWindow(VBEN_DOC_URL, { + // target: '_blank', + // }); + // }, + // icon: BookOpenText, + // text: $t('ui.widgets.document'), + // }, { handler: () => { router.push('/profile'); @@ -146,7 +146,7 @@ watch( :avatar :menus :text="userStore.userInfo?.realName" - :description="userStore.userInfo?.roles[0]" + :description="userStore.userInfo?.roleName" tag-text="Pro" @logout="handleLogout" /> diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index 2160ba05..db3637c4 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -116,6 +116,7 @@ export const useAuthStore = defineStore('auth', () => { roles, userId: user.userId, username: user.userName, + roleName:user.roles[0]?.roleName, } userStore.setUserInfo(userInfo) diff --git a/packages/stores/src/modules/user.ts b/packages/stores/src/modules/user.ts index 56810b4f..9a426040 100644 --- a/packages/stores/src/modules/user.ts +++ b/packages/stores/src/modules/user.ts @@ -18,6 +18,8 @@ interface BasicUserInfo { * 用户角色 */ roles: string[]; + + roleName: string; /** * 用户id */ From ef72d3a38e15211a0edf1ad50011c99ac8c80ace Mon Sep 17 00:00:00 2001 From: FLL <2162874245@qq.com> Date: Tue, 9 Sep 2025 17:50:56 +0800 Subject: [PATCH 2/4] feat --- apps/web-antd/src/api/analytics/index.ts | 4 + .../src/views/dashboard/analytics/index.vue | 2 + .../workforceManagement/arrangement-modal.vue | 4 +- .../workforceManagement/data.ts | 6 +- .../workforceManagement/unit-person-modal.vue | 2 +- .../workforce-day-detail.vue | 2 +- .../workforceManagement/workforce-detail.vue | 6 +- .../workOrderPending/data.ts | 4 - .../workOrderProcessed/data.ts | 5 - .../businessManagement/workOrders/data.ts | 5 - .../screen/property/analytics-trends.vue | 141 +++++++++++ .../src/views/screen/property/index.vue | 225 ++++++++++++++---- apps/web-antd/src/views/system/role/data.tsx | 8 +- 13 files changed, 335 insertions(+), 79 deletions(-) create mode 100644 apps/web-antd/src/views/screen/property/analytics-trends.vue diff --git a/apps/web-antd/src/api/analytics/index.ts b/apps/web-antd/src/api/analytics/index.ts index 38754d53..9dafc61e 100644 --- a/apps/web-antd/src/api/analytics/index.ts +++ b/apps/web-antd/src/api/analytics/index.ts @@ -17,6 +17,10 @@ export function getStatisticsCurrDay() { export function getStatistics() { return requestClient.get('/sis/alarmEvents/query/statistics'); } +// 工单 +export function getworkOrder() { + return requestClient.get('/property/screen/typeWorkOrderHistogram'); +} // /** // * 导出资产管理列表 // * @param params diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index a0c9d5ab..826e7d35 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -218,6 +218,8 @@ onMounted(() => { /> + +
diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/arrangement-modal.vue b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/arrangement-modal.vue index c497417f..06e315b7 100644 --- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/arrangement-modal.vue +++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/arrangement-modal.vue @@ -127,7 +127,7 @@ const columns = [ }, style: 'margin-right: 4px;', }, - () => user.userName, + () => user.nickName, ), ), }, @@ -299,7 +299,7 @@ async function handleConfirm() { deptId: item.dept.deptId, //部门ID deptName: item.dept.deptName, //部门名称 employeeId: user.userId, //员工ID - employeeName: user.userName, //员工姓名 + employeeName: user.nickName, //员工姓名 }); } } diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts index 0383df0f..22c504d3 100644 --- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts +++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/data.ts @@ -59,7 +59,7 @@ export const querySchema: FormSchemaGetter = () => [ export const unitQuerySchema: FormSchemaGetter = () => [ { component: 'Input', - fieldName: 'userName', + fieldName: 'nickName', label: '姓名', }, { @@ -83,7 +83,7 @@ export const columns: VxeGridProps['columns'] = [ }, { title: '人员', - field: 'remoteUserVo.userName', + field: 'remoteUserVo.nickName', width: 120, // width: 'auto', }, @@ -196,7 +196,7 @@ export const unitColumns: VxeGridProps['columns'] = [ }, { title: '姓名', - field: 'userName', + field: 'nickName', minWidth: 120, }, { diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/unit-person-modal.vue b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/unit-person-modal.vue index d8d7ae92..e5268899 100644 --- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/unit-person-modal.vue +++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/unit-person-modal.vue @@ -240,7 +240,7 @@ watch(selectedDeptIds, (newVal) => { :key="user.userId" style="margin-right: 8px" > - {{ user.userName }} + {{ user.nickName }}
diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-day-detail.vue b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-day-detail.vue index 696610df..1a00fdaf 100644 --- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-day-detail.vue +++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-day-detail.vue @@ -87,7 +87,7 @@ async function handleClosed() { :key="item.id" class="wrap-cell" > - {{ item.remoteUserVo.userName }} + {{ item.remoteUserVo.nickName }} diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-detail.vue b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-detail.vue index de9b4d0e..d7caf72e 100644 --- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-detail.vue +++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/workforce-detail.vue @@ -85,7 +85,7 @@ const columns = [ }, style: 'margin-right: 4px;', }, - () => user.userName, + () => user.nickName, ), ), }, @@ -196,7 +196,7 @@ const [BasicModal, modalApi] = useVbenModal({ } deptMap.get(deptId).users.push({ userId: item.remoteUserVo.userId, - userName: item.remoteUserVo.userName, + nickName: item.remoteUserVo.nickName, }); } // 转换为 tableData 格式 @@ -254,7 +254,7 @@ async function handleConfirm() { deptId: item.dept.deptId, deptName: item.dept.deptName, employeeId: user.userId, - employeeName: user.userName, + employeeName: user.nickName, })), ); await arrangementUpdate(data); diff --git a/apps/web-antd/src/views/property/businessManagement/workOrderPending/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrderPending/data.ts index 3cdf6882..0a81a416 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrderPending/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrderPending/data.ts @@ -20,10 +20,6 @@ export const columns: VxeGridProps['columns'] = [ title: '工单编号', field: 'orderNo', }, - { - title: '工单名称', - field: 'orderName', - }, { title: '工单类型', field: 'typeName', diff --git a/apps/web-antd/src/views/property/businessManagement/workOrderProcessed/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrderProcessed/data.ts index d88cc3c0..2ddeee48 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrderProcessed/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrderProcessed/data.ts @@ -23,11 +23,6 @@ export const columns: VxeGridProps['columns'] = [ field: 'orderNo', width: 200, }, - { - title: '工单名称', - field: 'orderName', - minWidth: 180, - }, { title: '工单类型', field: 'typeName', diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts index 3e5d020d..f8b0c660 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts @@ -39,11 +39,6 @@ export const columns: VxeGridProps['columns'] = [ field: 'orderNo', width: 180, }, - { - title: '工单名称', - field: 'orderName', - minWidth: 180, - }, { title: '工单类型', field: 'typeName', diff --git a/apps/web-antd/src/views/screen/property/analytics-trends.vue b/apps/web-antd/src/views/screen/property/analytics-trends.vue new file mode 100644 index 00000000..c12e3044 --- /dev/null +++ b/apps/web-antd/src/views/screen/property/analytics-trends.vue @@ -0,0 +1,141 @@ + + + diff --git a/apps/web-antd/src/views/screen/property/index.vue b/apps/web-antd/src/views/screen/property/index.vue index 2ea12f21..a02edb61 100644 --- a/apps/web-antd/src/views/screen/property/index.vue +++ b/apps/web-antd/src/views/screen/property/index.vue @@ -53,7 +53,7 @@
@@ -72,14 +72,11 @@
-
- 645 -
-
采购部
-
-
-
729 +
645
+
采购部
+
+
729
研发部
@@ -99,32 +96,51 @@
-
+ +
+
+ + 电量 + + +
+
+ +
+
-
- -
132
-
-
- -
862
-
-
- -
272
-
-
- -
272
+
+ +
{{item.total}}
-
+ +
+
会议室总数
+
557
+
+
+
当日预约会议室总数
+
669
+
@@ -133,17 +149,77 @@