| | |
| | | /** 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'; |
| | |
| | | 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> |
| | |
| | | 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> |