From a93a67e3be3475a3c0665acf70513fb7f453b781 Mon Sep 17 00:00:00 2001 From: zhangds Date: Mon, 15 Aug 2022 14:33:05 +0800 Subject: [PATCH] =?UTF-8?q?1)=20=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/add/plan-copy.js | 1 + src/pages/plan/keyList/index.jsx | 21 --------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/pages/plan/add/plan-copy.js b/src/pages/plan/add/plan-copy.js index fff2945b..f1e8f16c 100644 --- a/src/pages/plan/add/plan-copy.js +++ b/src/pages/plan/add/plan-copy.js @@ -122,6 +122,7 @@ export default class add extends React.Component { req.info.title = `${req.info.title}_${ Number(copy_count_golod) + 1 }`; + sessionStorage.setItem("step1", JSON.stringify(req.info)); this.refs.step1.edit(req.info); } if (req.keys.length > 0 && this.state.disabled == false) { diff --git a/src/pages/plan/keyList/index.jsx b/src/pages/plan/keyList/index.jsx index e4bf119c..43a36e9a 100644 --- a/src/pages/plan/keyList/index.jsx +++ b/src/pages/plan/keyList/index.jsx @@ -198,24 +198,6 @@ const UseKeyList = (props, ref) => { const [bachUploadPop, setBachUploadPop] = useState({}); const key_query_el = useRef(null); const plan_list_el = useRef(null); - - const resParam = () => { - return new Promise((res, rej) => { - const { queryParams, limit, page } = state; - return { - ...queryParams, - limit, - page, - }; - }); - }; - - const tetxajax = () => { - resParam().then((res) => { - console.log("请求方法....", res); - }); - }; - /** * 获取table 数据 * data 兼容 react state 无同步问题!!!!!!!!!!! @@ -552,12 +534,9 @@ const UseKeyList = (props, ref) => { const onPageChange = (e) => { dispatch({ type: "setPages", payload: { page: e } }); getTable({ page: e, hash: state.hash }); - - tetxajax(); }; const onCountChange = (e) => { - console.log("2", e); dispatch({ type: "setPages", payload: { page: 1, limit: e } }); getTable({ page: 1, limit: e, hash: state.hash }); };