1) 修复时间空白
This commit is contained in:
parent
91607146ad
commit
a93a67e3be
|
@ -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) {
|
||||
|
|
|
@ -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 });
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue