增加获取角色功能
This commit is contained in:
@ -7,7 +7,7 @@ import talkPng from '@/images/talk/talk.png';
|
||||
import { routerRedux } from 'dva/router';
|
||||
import { RightOutlined } from '@ant-design/icons';
|
||||
import moment from 'moment';
|
||||
import { jurySaveInfo, getSessionUserData } from '@/utils/session';
|
||||
import { jurySaveInfo, getSessionUserData, getRA } from '@/utils/session';
|
||||
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
|
||||
import ExpertEnter from '@/pages/BidEvaluation/components/ExpertEnter';
|
||||
import ChatUI from '@/pages/customerservice/support/conversation' //智慧客服
|
||||
@ -35,6 +35,7 @@ class Jury extends PureComponent {
|
||||
staffName:'', //智慧客服
|
||||
kfType:0,//智慧客服
|
||||
questionType:0,//智慧客服
|
||||
roleIds:'',//智慧客服
|
||||
}
|
||||
componentDidMount() {
|
||||
this.props.dispatch({
|
||||
@ -60,6 +61,8 @@ class Jury extends PureComponent {
|
||||
}
|
||||
//智慧客服,获取供应商编码
|
||||
let userData = getSessionUserData()
|
||||
let roleAuthority = getRA()
|
||||
this.setState({roleIds: roleAuthority && roleAuthority.length>0? roleAuthority[0]: userData.roleIds})
|
||||
this.setState({staffId: userData.userId})
|
||||
this.setState({staffName: userData.fullName})
|
||||
this.setState({supplierNumber: userData.organizationId})
|
||||
@ -123,7 +126,7 @@ class Jury extends PureComponent {
|
||||
}
|
||||
}
|
||||
render() {
|
||||
const { datevalue, detailId, noticeDetail, recordData, enterVisible, isModalVisible, isCloseWs, optionsModal, projectModal, supplierNumber, staffId, staffName, kfType, questionType, isFlash} = this.state; //智慧客服state
|
||||
const { datevalue, detailId, noticeDetail, recordData, enterVisible, isModalVisible, isCloseWs, optionsModal, projectModal, supplierNumber, staffId, staffName, kfType, questionType, isFlash, roleIds} = this.state; //智慧客服state
|
||||
const { Juryuplist, Jurydownlist, staloading, tlist } = this.props;
|
||||
return (
|
||||
<>
|
||||
@ -231,6 +234,7 @@ class Jury extends PureComponent {
|
||||
staffName={staffName}
|
||||
supplierNumber={supplierNumber}
|
||||
isCloseWs={isCloseWs}
|
||||
roleIds={roleIds}
|
||||
hideWin={()=>{
|
||||
this.setState({optionsModal: false})
|
||||
this.setState({isModalVisible: false})
|
||||
|
Reference in New Issue
Block a user