feat(watch): 部门数据统计表格新增关爱人员期初未佩戴人数列
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+52
-10
@@ -160,7 +160,7 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '未分配设备数',
|
title: '未分配设备数',
|
||||||
dataIndex: 'unassignedDeviceNums',
|
dataIndex: 'undistributedDeviceNums',
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
const total = record.totalAssignedDeviceNums ?? 0;
|
const total = record.totalAssignedDeviceNums ?? 0;
|
||||||
const assigned = record.assignedDeviceNums ?? 0;
|
const assigned = record.assignedDeviceNums ?? 0;
|
||||||
@@ -177,21 +177,13 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '未绑定设备数',
|
title: '未绑定设备数',
|
||||||
dataIndex: 'unassignedDeviceNums',
|
dataIndex: 'undistributedDeviceNums',
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
const total = record.totalAssignedDeviceNums ?? 0;
|
const total = record.totalAssignedDeviceNums ?? 0;
|
||||||
const assigned = record.assignedDeviceNums ?? 0;
|
const assigned = record.assignedDeviceNums ?? 0;
|
||||||
return Math.max(0, total - assigned);
|
return Math.max(0, total - assigned);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '非关爱人员数量',
|
|
||||||
dataIndex: ['nonCareNums'],
|
|
||||||
customRender: ({ text }) => {
|
|
||||||
if (!text) return 0;
|
|
||||||
return text;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '佩戴人员数',
|
title: '佩戴人员数',
|
||||||
dataIndex: ['assignedUserNums'],
|
dataIndex: ['assignedUserNums'],
|
||||||
@@ -200,6 +192,15 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员佩戴人数',
|
||||||
|
dataIndex: ['careWearNums'],
|
||||||
|
width: 150,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '未佩戴人员数',
|
title: '未佩戴人员数',
|
||||||
dataIndex: ['undistributedUserNums'],
|
dataIndex: ['undistributedUserNums'],
|
||||||
@@ -208,6 +209,47 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员未佩戴人数',
|
||||||
|
dataIndex: ['careUnwearNums'],
|
||||||
|
width: 160,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员未佩戴人数\n(仅计入统计日期起期已绑定的人数)',
|
||||||
|
dataIndex: ['careUnwearAtStartNums'],
|
||||||
|
width: 180,
|
||||||
|
customHeaderCell: () => {
|
||||||
|
return {
|
||||||
|
style: {
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '非关爱人员数量',
|
||||||
|
dataIndex: ['nonCareNums'],
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员数量',
|
||||||
|
dataIndex: ['careNums'],
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '心率异常人数',
|
title: '心率异常人数',
|
||||||
dataIndex: ['heartRateNums'],
|
dataIndex: ['heartRateNums'],
|
||||||
|
|||||||
Reference in New Issue
Block a user