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) => {