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

Loading…
Cancel
Save