|
|
@@ -14,7 +14,7 @@ export const roadpricingEnum = {
|
|
|
GS: 4 // 大司空概算
|
|
|
}
|
|
|
|
|
|
-const CloudTable = ({ columnStateType }) => {
|
|
|
+export const CloudTable = ({ columnStateType }) => {
|
|
|
const dispatch = useDispatch()
|
|
|
const { cloud } = useSelector(state => ({
|
|
|
cloud: state.cloud,
|
|
|
@@ -109,8 +109,8 @@ const CloudTable = ({ columnStateType }) => {
|
|
|
},
|
|
|
{
|
|
|
title: '截至上一次登录时长',
|
|
|
- dataIndex: 'all_online_times',
|
|
|
- key: 'all_online_times',
|
|
|
+ dataIndex: 'onlineTimes',
|
|
|
+ key: 'onlineTimes',
|
|
|
valueType: 'select',
|
|
|
width: 70,
|
|
|
valueEnum: {
|
|
|
@@ -120,7 +120,7 @@ const CloudTable = ({ columnStateType }) => {
|
|
|
4: { text: '超过3小时' }
|
|
|
},
|
|
|
renderText: (t, record) => {
|
|
|
- if (t && record.online_list?.length) {
|
|
|
+ if (record.all_online_times && record.online_list?.length) {
|
|
|
return (
|
|
|
<Tooltip
|
|
|
title={
|
|
|
@@ -138,7 +138,7 @@ const CloudTable = ({ columnStateType }) => {
|
|
|
</div>
|
|
|
}
|
|
|
>
|
|
|
- {t}
|
|
|
+ {record.all_online_times}
|
|
|
</Tooltip>
|
|
|
)
|
|
|
}
|