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 }); };