From 0e204406d26ac8c487e2670a4b58437a1e351b34 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Sat, 29 Nov 2025 18:51:14 +0800 Subject: [PATCH] 11 --- .../admin/sysUserStaffingTotal/index.vue | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/views/admin/sysUserStaffingTotal/index.vue b/src/views/admin/sysUserStaffingTotal/index.vue index e6ef366..dac84c7 100644 --- a/src/views/admin/sysUserStaffingTotal/index.vue +++ b/src/views/admin/sysUserStaffingTotal/index.vue @@ -14,10 +14,11 @@ - + @@ -40,9 +41,9 @@ {{ row.totalPerson }}人 - + @@ -141,7 +142,7 @@ const selectionChangHandle = (objs: { id: string }[]) => { const getSummaries = (param: any) => { const { columns, data } = param - const totalColumns = ["payUserCount", "timeCount", "payCount", "totalPrice", "payUserCountByTable"] + const totalColumns = ["deptTotalPerson", "staffingPerson", "noneStaffingPerson", "totalPerson", "fillInPerson"] const totalRow = Array.from({ length: columns.length }) totalRow[0] = "合计" columns.forEach((i: any, index: number) => { @@ -150,13 +151,7 @@ const getSummaries = (param: any) => { .filter((v: any) => v[i.property] != null) .map((v: any) => Number(v[i.property])) .reduce((pren: number, next: number) => pren + next, 0) - if (i.property.includes("Price")) { - totalRow[index] = displayPrice(total) - } else if (i.property == 'payUserCountByTable') { - totalRow[index] = ""; - } else { - totalRow[index] = total - } + totalRow[index] = `${total}人` } }) return totalRow