Files
fe_service_ebtp_frontend/src/pages/MainPage/ProjectManager/managerSubAdmin.js

73 lines
3.8 KiB
JavaScript
Raw Normal View History

2022-03-10 14:24:13 +08:00
import React, { PureComponent } from 'react';
2025-07-07 16:40:14 +08:00
import { history } from '@umijs/max';
2022-03-10 14:24:13 +08:00
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message } from 'antd';
import { connect } from 'dva';
import './index.less';
2023-01-31 15:22:52 +08:00
import talkPng from '@/images/talk/talk.png';
2022-03-10 14:24:13 +08:00
import { RightOutlined } from '@ant-design/icons';
import moment from 'moment';
2022-10-11 09:07:08 +08:00
import { getRA } from '@/utils/session';
2022-03-10 14:24:13 +08:00
import { getURLInformation } from '@/utils/CommonUtils';
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
@connect(({ dashboard, loading }) => ({
...dashboard,
}))
class manager extends PureComponent {
state = {
detailId: '1', // 公告id
noticeDetail: false, // 公告弹窗
}
componentDidMount() {
this.props.dispatch({
type: "dashboard/fetchtlist",
payload: { limit: 7 }
})
2022-10-11 09:07:08 +08:00
// NTKF_PARAM = {
// siteid: "bl_1000",                    //企业ID,为固定值
// settingid: "bl_1000_1492484340268",           //接待组ID为固定值必填
// uid: getSessionUserData()?.userId,
// uname: getSessionUserData()?.deptName + "-" + getSessionUserData()?.fullName,            //用户名未登录可以为空但是不能给nulluname赋予的值显示到小能客户端
// isvip: "0",                              //是否为vip用户0代表非会员1代表会员取值显示到小能客户端
// userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端
// erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成
// }
2022-03-10 14:24:13 +08:00
}
lookInfo = (id) => { // 公告查看
this.setState({
detailId: id,
noticeDetail: true
})
}
noticeModel = () => { // 公告关闭消息弹窗
this.setState({
noticeDetail: false
})
}
2022-10-11 09:07:08 +08:00
2022-03-10 14:24:13 +08:00
render() {
const { tlist, trelist } = this.props;
2022-10-11 09:07:08 +08:00
const { detailId, noticeDetail, } = this.state;
2022-03-10 14:24:13 +08:00
return (
<>
2022-07-08 18:29:39 +08:00
{/* <a className={isFlash && !isModalVisible ? "talk text-effect":"talk"} onClick={() => this.initChatUI()}>咨询服务︵<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span>︶<img src={talkPng} /></a> */}
2025-07-07 16:40:14 +08:00
<div className="dashboard" style={{ height: '100%', overflow: "hidden" }}>
2022-03-10 14:24:13 +08:00
<Row className="topt">
<Col span={24}><Card title="系统公告" bordered={false} className="cardtre" extra={<div className="moret" onClick={() => history.push('/notice/noticeList')}>更多<RightOutlined /></div>}>
{tlist != [] && tlist.map((item, index) => {
return (
<div className="messagetre" onClick={() => { this.lookInfo(item.id) }} key={item.id}>
2022-10-11 09:07:08 +08:00
<div className="round">{index + 1}</div>
2022-03-10 14:24:13 +08:00
<div className="txt" title={item.noticeTitle}>{item.noticeTitle}</div>
<div className="time">{item.updateDate}</div>
</div>
)
})}</Card>
</Col>
</Row>
</div>
{noticeDetail && <NoticeDetail detailId={detailId} onCancel={() => { this.noticeModel() }} modalVisible={noticeDetail} />}
</>
)
}
}
export default manager;