Merge branch 'master' of http://gitlab.tianti.tg.unicom.local/eshop/fe_service_ebtp_frontend into master_jnryy_customerservice
This commit is contained in:
@ -4,11 +4,11 @@ import { history } from 'umi';
|
||||
// import PageHeaderWrapper from '@/components/PageHeaderWrapper';
|
||||
import { connect } from 'dva';
|
||||
import './index.less';
|
||||
import talkPng from '@/images/talk/talk.png';
|
||||
// import talkPng from '@/images/talk/talk.png';
|
||||
import { routerRedux } from 'dva/router';
|
||||
import { RightOutlined } from '@ant-design/icons';
|
||||
import moment from 'moment';
|
||||
import { followUpAProjectSupplier, getSessionUserData, getRA } from '@/utils/session';
|
||||
import { followUpAProjectSupplier, getRA } from '@/utils/session';
|
||||
import { getDefId } from './service';
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
import MainDetail from '@/pages/SystemMessage/message/components/pageDetail'
|
||||
@ -73,15 +73,15 @@ class supplier extends PureComponent {
|
||||
type: "dashboard/fetchtClarify",
|
||||
payload: { authorizestate: '0', templatetype: '2', size: 6 }
|
||||
})
|
||||
NTKF_PARAM = {
|
||||
siteid: "bl_1000", //企业ID,,为固定值
|
||||
settingid: "bl_1000_1492484340268", //接待组ID,为固定值,必填
|
||||
uid: getSessionUserData()?.userId,
|
||||
uname: getSessionUserData()?.deptName + "-" + getSessionUserData()?.fullName, //用户名,未登录可以为空,但是不能给null,uname赋予的值显示到小能客户端
|
||||
isvip: "0", //是否为vip用户,0代表非会员,1代表会员,取值显示到小能客户端
|
||||
userlevel: "1", //网站自定义会员级别,1-N,可根据选择判断,取值显示到小能客户端
|
||||
erpparam: "abc" //erpparam为erp功能的扩展字段,可选,购买erp功能后用于erp功能集成
|
||||
}
|
||||
// NTKF_PARAM = {
|
||||
// siteid: "bl_1000", //企业ID,,为固定值
|
||||
// settingid: "bl_1000_1492484340268", //接待组ID,为固定值,必填
|
||||
// uid: getSessionUserData()?.userId,
|
||||
// uname: getSessionUserData()?.deptName + "-" + getSessionUserData()?.fullName, //用户名,未登录可以为空,但是不能给null,uname赋予的值显示到小能客户端
|
||||
// isvip: "0", //是否为vip用户,0代表非会员,1代表会员,取值显示到小能客户端
|
||||
// userlevel: "1", //网站自定义会员级别,1-N,可根据选择判断,取值显示到小能客户端
|
||||
// erpparam: "abc" //erpparam为erp功能的扩展字段,可选,购买erp功能后用于erp功能集成
|
||||
// }
|
||||
this.clarifyDetail()
|
||||
}
|
||||
onChange = (date, dateString) => {
|
||||
@ -117,7 +117,7 @@ class supplier extends PureComponent {
|
||||
}
|
||||
closeModel = () => { // 关闭消息弹窗
|
||||
this.setState({
|
||||
messageDetail: false,
|
||||
messageDetail: false,
|
||||
mainDetail: false
|
||||
})
|
||||
}
|
||||
@ -137,14 +137,14 @@ class supplier extends PureComponent {
|
||||
toParticipate = async (servicecode) => {//问卷调查弹窗
|
||||
const { questId } = JSON.parse(servicecode);
|
||||
await getQuestList({ id: questId }).then(res => {
|
||||
if (res?.code == 200 && res?.success) {
|
||||
this.setState({
|
||||
questData: res?.data,
|
||||
questVisible: true,
|
||||
})
|
||||
}
|
||||
if (res?.code == 200 && res?.success) {
|
||||
this.setState({
|
||||
questData: res?.data,
|
||||
questVisible: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
closeParticipate = () => { // 关闭问卷调查弹窗
|
||||
this.setState({
|
||||
questVisible: false
|
||||
@ -230,14 +230,14 @@ class supplier extends PureComponent {
|
||||
}
|
||||
render() {
|
||||
const { supplieruplist, supplierleftlist, supplierrightlist, staloading, tlist, trelist, idList, dateNum } = this.props;
|
||||
const { datevalue, messId, messageDetail, mainDetail, detailId, noticeDetail, joinData, joinDetail, invitationData, invitationDetail, questData, questVisible,} = this.state;
|
||||
const { datevalue, messId, messageDetail, mainDetail, detailId, noticeDetail, joinData, joinDetail, invitationData, invitationDetail, questData, questVisible, } = this.state;
|
||||
return (
|
||||
<>
|
||||
<a className="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>
|
||||
<div className="dashboard" style={{ height: innerHeight - 70, overflow: "hidden" }}>
|
||||
<Row className="topt">
|
||||
<Col span={8}><Card title="我的消息" bordered={false} className="cardtre" style={{ marginRight: "10px" }} extra={<div className="moret" onClick={() => history.push('/SystemMessage/message')}>更多<RightOutlined /></div>}>
|
||||
{trelist != [] && trelist.slice(0,6).map((item, index) => {
|
||||
{trelist != [] && trelist.slice(0, 6).map((item, index) => {
|
||||
return (
|
||||
<div className="messagetre" onClick={() => { item.templatetype == '3' ? this.toParticipate(item.servicecode) : this.lookDetail(item.msgId) }} key={item.id}>
|
||||
<div className="round">{index + 1}</div>
|
||||
@ -336,11 +336,11 @@ class supplier extends PureComponent {
|
||||
/></Card></Col>
|
||||
</Row>
|
||||
</div>
|
||||
{
|
||||
idList.length > 0 ? <MainDetail clarifyId={idList[0]} dateNum={dateNum} trelist={idList} onCancel={() => { this.closeModel(), this.props.dispatch({ type: "dashboard/fetchtClarify", payload: { authorizestate: '0', templatetype: '2', size: 6 }}) }} modalVisible={mainDetail} /> : null
|
||||
{
|
||||
idList.length > 0 ? <MainDetail clarifyId={idList[0]} dateNum={dateNum} trelist={idList} onCancel={() => { this.closeModel(), this.props.dispatch({ type: "dashboard/fetchtClarify", payload: { authorizestate: '0', templatetype: '2', size: 6 } }) }} modalVisible={mainDetail} /> : null
|
||||
}
|
||||
{messageDetail ? <MessageDetail messId={messId} onCancel={() => { this.closeModel(), this.props.dispatch({type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 }})}} modalVisible={messageDetail} /> : null }
|
||||
{questVisible ? <QuestDetail questData={questData} onCancel={() => { this.closeParticipate(), this.props.dispatch({type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 }}) }} modalVisible={questVisible} /> : null}
|
||||
{messageDetail ? <MessageDetail messId={messId} onCancel={() => { this.closeModel(), this.props.dispatch({ type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 } }) }} modalVisible={messageDetail} /> : null}
|
||||
{questVisible ? <QuestDetail questData={questData} onCancel={() => { this.closeParticipate(), this.props.dispatch({ type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 } }) }} modalVisible={questVisible} /> : null}
|
||||
{noticeDetail && <NoticeDetail detailId={detailId} onCancel={() => { this.noticeModel() }} modalVisible={noticeDetail} />}
|
||||
{joinData == '' ? null : <IParticipateIn projectData={joinData} setVisible={() => { this.noticeModel() }} visible={joinDetail} />}
|
||||
{invitationData == '' ? null : <InvitationLetter projectData={invitationData} setVisible={() => { this.noticeModel() }} visible={invitationDetail} />}
|
||||
|
Reference in New Issue
Block a user