|
|
@ -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 }) |
|
|
|
}} |
|
|
|
> |
|
|
|
搜索 |
|
|
|