From 0e7160203f477fe1e85de3bd0884a5d5f1fab6d9 Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 20 Dec 2022 10:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E7=9B=91=E6=8E=A7=EF=BC=8C?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/layout/actions/global.js | 2 ++ web/client/src/layout/reducers/global.js | 6 +++++- web/client/src/sections/facility/containers/monitor.jsx | 5 +++-- .../src/sections/service/containers/reportManagement.jsx | 9 +++++---- web/config.js | 8 ++++++++ web/package.json | 2 +- web/routes/attachment/index.js | 4 +++- 7 files changed, 27 insertions(+), 9 deletions(-) diff --git a/web/client/src/layout/actions/global.js b/web/client/src/layout/actions/global.js index 015d0c5..cf8082d 100644 --- a/web/client/src/layout/actions/global.js +++ b/web/client/src/layout/actions/global.js @@ -39,6 +39,8 @@ export function initApiRoot () { payload: { apiRoot: res.root, iotVcmpWeb:res.iotVcmpWeb, + pomsMonitor:res.pomsMonitor, + dcWeb:res.dcWeb, } }) }); diff --git a/web/client/src/layout/reducers/global.js b/web/client/src/layout/reducers/global.js index 2590521..2b16eef 100644 --- a/web/client/src/layout/reducers/global.js +++ b/web/client/src/layout/reducers/global.js @@ -12,6 +12,8 @@ function global (state = { clientWidth: 1024, apiRoot: '', iotVcmpWeb: '', + pomsMonitor:'', + dcWeb:'', }, action) { const payload = action.payload; switch (action.type) { @@ -31,7 +33,9 @@ function global (state = { case INIT_API_ROOT: return Immutable.fromJS(state).merge({ apiRoot: payload.apiRoot, - iotVcmpWeb: payload.iotVcmpWeb + iotVcmpWeb: payload.iotVcmpWeb, + pomsMonitor:payload.pomsMonitor, + dcWeb:payload.dcWeb, }).toJS(); case PEPPROJECTID: return Immutable.fromJS(state).merge({ diff --git a/web/client/src/sections/facility/containers/monitor.jsx b/web/client/src/sections/facility/containers/monitor.jsx index 8173c65..6dfa6cf 100644 --- a/web/client/src/sections/facility/containers/monitor.jsx +++ b/web/client/src/sections/facility/containers/monitor.jsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; const Server = (props) => { - const { dispatch, actions, user, loading, socket } = props + const { dispatch, actions, user, loading, socket,pomsMonitor } = props useEffect(() => { @@ -16,7 +16,7 @@ const Server = (props) => {
{/* */} {/*