From 503e8ed03f8adc90d66bcbc284adeb1ae07d9ee0 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 11 Jul 2022 16:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E4=BE=9B=E8=B4=A7=E5=95=86?= =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.UAT.ts | 4 +- config/config.dev.ts | 4 +- config/config.prod.ts | 4 +- config/config.sim.ts | 4 +- src/components/Promenu/index.tsx | 21 +++ src/pages/Tender/ProjectsInvolved/index.tsx | 27 +++- .../LookingForBusinessOpportunitiesList.tsx | 135 ++++++++++++++++++ 7 files changed, 185 insertions(+), 14 deletions(-) diff --git a/config/config.UAT.ts b/config/config.UAT.ts index bca21d4..6c4715d 100644 --- a/config/config.UAT.ts +++ b/config/config.UAT.ts @@ -29,10 +29,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服文档中心查看图片地址 // REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/', diff --git a/config/config.dev.ts b/config/config.dev.ts index dede5a4..2b07069 100644 --- a/config/config.dev.ts +++ b/config/config.dev.ts @@ -26,10 +26,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服ws地址 // REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.37.148:18022/api/api/biz-customer-service', diff --git a/config/config.prod.ts b/config/config.prod.ts index bbf3343..f45c8e0 100644 --- a/config/config.prod.ts +++ b/config/config.prod.ts @@ -25,10 +25,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服ws地址 // REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://uscm.unicom.local:18022/api/api/biz-customer-service', diff --git a/config/config.sim.ts b/config/config.sim.ts index 436155e..2538565 100644 --- a/config/config.sim.ts +++ b/config/config.sim.ts @@ -25,10 +25,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服ws地址 // REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.54:18022/api/api/biz-customer-service', diff --git a/src/components/Promenu/index.tsx b/src/components/Promenu/index.tsx index 0615e2c..dd03d98 100644 --- a/src/components/Promenu/index.tsx +++ b/src/components/Promenu/index.tsx @@ -194,6 +194,24 @@ const Promenu: React.FC<{}> = () => { const handlePopoverClose = () => { setAnchorEl(null); }; + const initChatUI = () => { //智慧客服 + var pathname = window.location.pathname + var consultType = pathname.substring(pathname.lastIndexOf('/')+1) + var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement + if(tempForm){ + var hideInput = document.getElementById('tempInput_CustomerService') as HTMLInputElement + if(hideInput){ + hideInput.value= consultType + }else{ + hideInput = document.createElement("input") + hideInput.id = 'tempInput_CustomerService' + hideInput.type="hidden" + hideInput.name= 'consultType' + tempForm.appendChild(hideInput) + } + tempForm.submit(); + } + } return (
@@ -212,6 +230,9 @@ 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, (randerRole == 'ebtp-supplier' && MethodDict != "procurement_mode_7") diff --git a/src/pages/Tender/ProjectsInvolved/index.tsx b/src/pages/Tender/ProjectsInvolved/index.tsx index 791834c..28450dd 100644 --- a/src/pages/Tender/ProjectsInvolved/index.tsx +++ b/src/pages/Tender/ProjectsInvolved/index.tsx @@ -11,6 +11,7 @@ import { getDictName, getProjectTypeCode, getURLInformation, getUrlParam, getUrl import { btnAuthority } from '@/utils/authority'; import ProList from '@ant-design/pro-list'; import { MessageOutlined } from '@ant-design/icons'; +import CreateForm from '@/pages/ListTableList/components/CreateForm'; const { TabPane } = Tabs; const { TextArea } = Input; @@ -127,7 +128,7 @@ const Index: React.FC<{}> = () => { title: '我要咨询', dataIndex: 'consult', render: (text: any, record: any) => ( -