From 2ea56ed08b58386f0612635101b1acd51cd4a44c Mon Sep 17 00:00:00 2001 From: Mr Ke <kelq@hugeinfo.com.cn> Date: Wed, 29 Apr 2020 18:06:45 +0800 Subject: [PATCH] 浏览日志,操作日志;用户中心(个人信息);用户管理(用户中心) --- src/components/common/FindAlreadyReadOrNotView/index.jsx | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/common/FindAlreadyReadOrNotView/index.jsx b/src/components/common/FindAlreadyReadOrNotView/index.jsx index 50a371d..693c0f7 100644 --- a/src/components/common/FindAlreadyReadOrNotView/index.jsx +++ b/src/components/common/FindAlreadyReadOrNotView/index.jsx @@ -7,7 +7,7 @@ /** Happy Coding */ import React, { ReactNode, ReactEventHandler, Component, useEffect, useState } from 'react'; // import { Link } from 'react-router-dom'; -import { Icon, Tabs, Avatar, Spin } from 'antd'; +import { Icon, Tabs, Avatar, Spin, Empty } from 'antd'; import './index.scss'; const { TabPane } = Tabs; import fetch from '../../../api/request'; @@ -64,9 +64,11 @@ data1.map((a) => ( <div className="flex-box-row align-center space-between modal-list-item" key={a.id}> <span className="modal-label">{a.noticeUserName || '无'}</span> - <span className="modal-time">{a.createTime ? moment(a.createTime).format("YYYY-MM-DD HH:mm") : '无'}</span> </div> )) + } + { + data1.length == 0 && <Empty /> } </div> </Spin> @@ -78,10 +80,13 @@ data2.map((a) => ( <div className="flex-box-row align-center space-between modal-list-item" key={a.id}> <span className="modal-label">{a.noticeUserName || '无'}</span> - <span className="modal-time">{a.createTime ? moment(a.createTime).format("YYYY-MM-DD HH:mm") : '无'}</span> + <span className="modal-time">{a.updateTime ? moment(a.updateTime).format("YYYY-MM-DD HH:mm:ss") : '无'}</span> </div> )) } + { + data2.length == 0 && <Empty /> + } </div> </Spin> </TabPane> -- Gitblit v1.8.0