调整参数

This commit is contained in:
unknown
2022-05-09 17:42:02 +08:00
parent eab1cb819c
commit 99a9d63d72
3 changed files with 17 additions and 11 deletions

View File

@ -41,6 +41,7 @@ class manager extends PureComponent {
supplierNumber: '', //智慧客服
staffId: '', //智慧客服'
staffName:'', //智慧客服
kfType:0,//智慧客服
// NTKF_PARAM: {
// siteid: "bl_1000", //企业ID,为固定值
// settingid: "bl_1000_1492484340268", //接待组ID为固定值必填
@ -82,10 +83,9 @@ class manager extends PureComponent {
}
//智慧客服,获取供应商编码
let userData = getSessionUserData()
console.log(userData)
this.setState({staffId: userData.userId})
this.setState({staffName: userData.fullName})
this.setState({supplierNumber: userData? userData.organizationId: 'EMPTY'})
this.setState({supplierNumber: userData.organizationId})
this.approvalDetail()
}
onChange = (date, dateString) => {
@ -173,7 +173,7 @@ class manager extends PureComponent {
};
render() {
const { downlist, projectlist, staloading, tlist, trelist, idList, dateNum } = this.props;
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail, isModalVisible, isCloseWs, optionsModal, projectModal, supplierNumber, staffId, staffName, } = this.state;
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail, isModalVisible, isCloseWs, optionsModal, projectModal, supplierNumber, staffId, staffName, kfType,} = this.state;
return (
<>
{
@ -318,15 +318,18 @@ class manager extends PureComponent {
{/*智慧客服*/}
<ChatUI
openProjectWin={()=>{
this.setState({kfType: 2})
this.setState({projectModal: true})
}}
openWin={()=>{
this.setState({kfType: 1})
this.setState({optionsModal: false})
this.setState({isModalVisible: true})
this.setState({isCloseWs: false})
this.setState({isFlash :false})
}}
closeWin={()=>{
this.setState({kfType: 0})
this.setState({optionsModal: false})
this.setState({isModalVisible: false})
this.setState({isCloseWs: true})
@ -336,6 +339,7 @@ class manager extends PureComponent {
projectModal={projectModal}
isModalVisible={isModalVisible}
//supplierNo='EMPTY'
kfType={kfType}
staffId={staffId}
staffName={staffName}
supplierNumber={supplierNumber}