Browse Source

搜索翻页修改

dev
wenlele 2 years ago
parent
commit
bd5aa397a8
  1. 9
      web/client/src/sections/install/containers/system.jsx

9
web/client/src/sections/install/containers/system.jsx

@ -67,8 +67,9 @@ const Example = (props) => {
getProjectPomsList(); getProjectPomsList();
}, [query]); }, [query]);
function getProjectPomsList () { function getProjectPomsList (item) {
dispatch(install.getProjectPoms({ ...query, keyword })).then((res) => {// let data = item || query
dispatch(install.getProjectPoms({ ...data, keyword })).then((res) => {//
if (res.success) { if (res.success) {
let mytableData = JSON.parse(JSON.stringify(res.payload.data.rows)); let mytableData = JSON.parse(JSON.stringify(res.payload.data.rows));
let mytableKey = [] let mytableKey = []
@ -356,7 +357,6 @@ const Example = (props) => {
<div style={{ display: 'flex', justifyContent: 'space-between' }}> <div style={{ display: 'flex', justifyContent: 'space-between' }}>
<div> <div>
<Input placeholder="请输入PEP项企项目名称或安心云项目名称关键字" style={{ width: 340 }} onChange={v => { <Input placeholder="请输入PEP项企项目名称或安心云项目名称关键字" style={{ width: 340 }} onChange={v => {
console.log(v);
setKeyword(v) setKeyword(v)
}} /> }} />
<Button <Button
@ -369,7 +369,8 @@ const Example = (props) => {
marginLeft: 10 marginLeft: 10
}} }}
onClick={() => { onClick={() => {
getProjectPomsList () setQuery({ limit: 10, page: 0 })
getProjectPomsList({ limit: 10, page: 0 })
}} }}
> >
搜索 搜索

Loading…
Cancel
Save