Merge branch 'clickCopyv1.4' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend into clickCopyv1.4

This commit is contained in:
wangsongsole 2022-08-15 15:14:12 +08:00
commit 727e5d3c9f
2 changed files with 1 additions and 21 deletions

View File

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

View File

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