From cb0a06de99bd629c2021e3d9b32fe8eae8c54879 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 24 Jun 2020 17:36:39 +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