增加参数questionType

This commit is contained in:
unknown
2022-05-13 11:02:56 +08:00
parent baec521f7c
commit 42b9e51aeb
3 changed files with 14 additions and 10 deletions

View File

@ -42,6 +42,7 @@ class manager extends PureComponent {
staffId: '', //智慧客服'
staffName:'', //智慧客服
kfType:0,//智慧客服
questionType:0,//智慧客服
// NTKF_PARAM: {
// siteid: "bl_1000", //企业ID,为固定值
// settingid: "bl_1000_1492484340268", //接待组ID为固定值必填
@ -173,7 +174,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, kfType,} = this.state;
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail, isModalVisible, isCloseWs, optionsModal, projectModal, supplierNumber, staffId, staffName, kfType, questionType,} = this.state;
return (
<>
{
@ -321,8 +322,9 @@ class manager extends PureComponent {
this.setState({kfType: 2})
this.setState({projectModal: true})
}}
openWin={(index)=>{
this.setState({kfType: index})
openWin={(kfType, questionType)=>{
this.setState({questionType: questionType})
this.setState({kfType: kfType})
this.setState({optionsModal: false})
this.setState({isModalVisible: true})
this.setState({isCloseWs: false})
@ -330,6 +332,7 @@ class manager extends PureComponent {
}}
closeWin={()=>{
this.setState({kfType: 0})
this.setState({questionType: 0})
this.setState({optionsModal: false})
this.setState({isModalVisible: false})
this.setState({isCloseWs: true})
@ -338,8 +341,8 @@ class manager extends PureComponent {
optionsModal={optionsModal}
projectModal={projectModal}
isModalVisible={isModalVisible}
//supplierNo='EMPTY'
kfType={kfType}
questionType={questionType}
staffId={staffId}
staffName={staffName}
supplierNumber={supplierNumber}