From cfe12e4d4cb4060e92f6e78b42098cea73cf2006 Mon Sep 17 00:00:00 2001 From: zhangds Date: Sun, 3 Mar 2024 17:19:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95=20=E5=8C=85=E7=A0=81=E7=BB=93=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/add/step2.js | 3 +++ src/pages/plan/key/UseKeyAddEdit.jsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 34eeacf1..47113806 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -932,6 +932,9 @@ export default class acclist extends React.Component { let data = { excel: req.path } + if (sessionStorage.getItem("plan_id")) { + data.plan_id = sessionStorage.getItem("plan_id") + } this.setState({ mobile_excel: req.path }) getAccessVerification(data).then((res) => { this.setState({ file_loading: false }) diff --git a/src/pages/plan/key/UseKeyAddEdit.jsx b/src/pages/plan/key/UseKeyAddEdit.jsx index d8f3410c..f23d3e30 100644 --- a/src/pages/plan/key/UseKeyAddEdit.jsx +++ b/src/pages/plan/key/UseKeyAddEdit.jsx @@ -404,7 +404,8 @@ const UseKeyAddEdit = () => { res, (req, msg) => { let data = { - excel: req.path + excel: req.path, + plan_id: state.plan_id } setModel({ mobile_excel: req.path }) getAccessVerification(data).then((res) => {