|
@@ -29,7 +29,7 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
|
|
}
|
|
}
|
|
let dt = moment()
|
|
let dt = moment()
|
|
let day = dt.diff(date1, 'day');
|
|
let day = dt.diff(date1, 'day');
|
|
- if (index <= day) {
|
|
|
|
|
|
+ if (index <= day && b?.[field]) {
|
|
let [count1, count2, count3, count4, count5, count6, count7] = b?.[field]?.split('/')
|
|
let [count1, count2, count3, count4, count5, count6, count7] = b?.[field]?.split('/')
|
|
return <div className={style.dbox}>
|
|
return <div className={style.dbox}>
|
|
<span style={{ color: '#52c41a', fontWeight: 600 }}>活跃人数:<span>{count1}</span></span>
|
|
<span style={{ color: '#52c41a', fontWeight: 600 }}>活跃人数:<span>{count1}</span></span>
|
|
@@ -69,7 +69,7 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
|
|
}
|
|
}
|
|
let dt = moment()
|
|
let dt = moment()
|
|
let day = dt.diff(date1, 'day');
|
|
let day = dt.diff(date1, 'day');
|
|
- if (index <= day) {
|
|
|
|
|
|
+ if (index <= day && b?.[field]) {
|
|
let [count1, count2, count3, count4, count5, count6, count7] = b?.[field]?.split('/')
|
|
let [count1, count2, count3, count4, count5, count6, count7] = b?.[field]?.split('/')
|
|
return <div className={style.dbox}>
|
|
return <div className={style.dbox}>
|
|
<span style={{ color: '#52c41a', fontWeight: 600 }}>活跃人数:<span>{count1}</span></span>
|
|
<span style={{ color: '#52c41a', fontWeight: 600 }}>活跃人数:<span>{count1}</span></span>
|
|
@@ -98,7 +98,7 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '服务开始时间', dataIndex: 'dt', label: '基本信息', align: 'center', width: 90, default: 2,
|
|
title: '服务开始时间', dataIndex: 'dt', label: '基本信息', align: 'center', width: 90, default: 2,
|
|
- render: (a: string) => (<WidthEllipsis value={`${a}`} />)
|
|
|
|
|
|
+ render: (a: string) => (<WidthEllipsis value={`${a || '--'}`} />)
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '至今服务天数', dataIndex: 'dtDiff', label: '基本信息', align: 'center', width: 45, default: 3,
|
|
title: '至今服务天数', dataIndex: 'dtDiff', label: '基本信息', align: 'center', width: 45, default: 3,
|