From cc259fdce29f9f8323edb37c635eceba241c0c82 Mon Sep 17 00:00:00 2001 From: qzc Date: Thu, 14 Nov 2024 15:17:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=AA=E6=B0=B4=E9=A2=84=E6=8A=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/setupProxy.js | 3 ++- src/views/fxzb/hsybjs/form.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index 5fa5980f9..7227330e4 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -5,9 +5,10 @@ module.exports = function (app) { app.use( '/gunshiApp', createProxyMiddleware({ - target: 'http://local.gunshiiot.com:18083/',//测试 + // target: 'http://local.gunshiiot.com:18083/',//测试 // target: 'http://192.168.66.199:24105/',//正式 // target: 'http://36.139.207.50:18083/',//移动云 + target: 'http://192.168.66.49:24105/',//移动云 changeOrigin: true, }) ); diff --git a/src/views/fxzb/hsybjs/form.js b/src/views/fxzb/hsybjs/form.js index 63178cdaf..4831b7a53 100644 --- a/src/views/fxzb/hsybjs/form.js +++ b/src/views/fxzb/hsybjs/form.js @@ -14,6 +14,9 @@ const ModalForm = ({ mode, record,onEdit,onSave,close }) => { const [checked, setChecked] = useState(true) const onFinish = async(values) => { + const userId = localStorage.getItem("userId"); + const userName = localStorage.getItem("userName"); + const params = { ...values, forecastTm: record.tms.forecastTime, @@ -24,6 +27,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,close }) => { forecastWarm: record.tms.forecastWarm, type: record.tms.type, voList:record.data, + userId:userId+'_'+userName } if (mode === 'save') {