diff --git a/src/components/Promenu/index.tsx b/src/components/Promenu/index.tsx index 199d7c1..df22467 100644 --- a/src/components/Promenu/index.tsx +++ b/src/components/Promenu/index.tsx @@ -196,24 +196,24 @@ const Promenu: React.FC<{}> = () => { setAnchorEl(null); }; const initChatUI = () => { //智慧客服 - if(MethodDict!='procurement_mode_6' && MethodDict!='procurement_mode_7' && window.location.pathname.indexOf('BidEvaluation')!=-1){ + if (MethodDict != 'procurement_mode_6' && MethodDict != 'procurement_mode_7' && window.location.pathname.indexOf('BidEvaluation') != -1) { message.warn('非谈判类项目【评标】阶段禁止沟通') - }else{ + } else { var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement - if(tempForm){ + if (tempForm) { var hideInput = document.getElementById('tempInput_CustomerService') as HTMLInputElement - if(hideInput){ - hideInput.value= window.location.pathname - }else{ + if (hideInput) { + hideInput.value = window.location.pathname + } else { hideInput = document.createElement("input") hideInput.id = 'tempInput_CustomerService' - hideInput.type="hidden" - hideInput.name= 'sceneUrl' - hideInput.value= window.location.pathname + hideInput.type = "hidden" + hideInput.name = 'sceneUrl' + hideInput.value = window.location.pathname tempForm.appendChild(hideInput) } tempForm.submit(); - }else{ + } else { message.warn('请先选择跟进的项目') } } @@ -236,11 +236,11 @@ const Promenu: React.FC<{}> = () => { history.push("/ProjectLayout/Archive/projectArchive") setButtonValue(stepButtonClick(data?.[data?.length - 1])) }}>项目归档 : null, - , ((randerRole == 'ebtp-agency-project-manager' || randerRole == 'ebtp-purchase' || randerRole == 'ebtp-supervision') && MethodDict != "procurement_mode_7") - ? : null, + ? : null, (randerRole == 'ebtp-supplier' && MethodDict != "procurement_mode_7") ? : null,