From e8739893e493eb7dcc5d372fe271588469591fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Fri, 21 Jul 2023 17:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/iframe.jsx | 7 + src/military/task/agreementList/index.jsx | 131 ++++++++---------- src/military/task/agreementList/index.scss | 3 + .../task/agreementManageNew/index.jsx | 36 +++-- .../task/agreementManageNew/index.scss | 3 + src/military/task/agreementSign/index.jsx | 40 +++--- src/military/task/api.js | 31 ++++- .../task/components/agreementModal/index.jsx | 19 ++- .../task/components/itemListPaper/index.jsx | 12 +- .../task/components/itemListPaper/index.scss | 2 +- src/military/task/static.js | 12 ++ src/military/task/taskDetail/index.jsx | 52 ++++++- src/military/task/taskEdit/index.jsx | 14 ++ 13 files changed, 245 insertions(+), 117 deletions(-) diff --git a/src/military/iframe.jsx b/src/military/iframe.jsx index f9feccb71..d7f04e9c2 100644 --- a/src/military/iframe.jsx +++ b/src/military/iframe.jsx @@ -10,9 +10,16 @@ const Iframe = (props) => { const history = props.history const location = history.location + if (!location.state.url) { + history.push("/404"); + } + function iframeLoad() { let myIframe = document.getElementById("iframe"); myIframe.height = `${document.documentElement.clientHeight - 300}px` + if (myIframe.contentWindow.location && myIframe.contentWindow.location.href) { + window.location.href = myIframe.contentWindow.location.href + } } return