Browse Source

映射关系-添加项目后再次添加时页面展示被添加过的PEP项目,刷新后恢复

dev
巴林闲侠 3 years ago
parent
commit
a97d420203
  1. 11
      web/client/src/sections/install/containers/system.jsx

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

@ -46,13 +46,17 @@ const Example = (props) => {
const [tableData, setTableData] = useState([]) // const [tableData, setTableData] = useState([]) //
const getPepProject = ()=>{
dispatch(install.getProjectPmanage(query)).then((res) => {//PEP
setPeplist(res.payload.data)
})
}
useEffect(() => { useEffect(() => {
dispatch(install.getProjectAnxincloud(query)).then((res) => {// dispatch(install.getProjectAnxincloud(query)).then((res) => {//
setAnxincloudList(res.payload.data) setAnxincloudList(res.payload.data)
}) })
dispatch(install.getProjectPmanage(query)).then((res) => {//PEP getPepProject()
setPeplist(res.payload.data)
})
dispatch(install.getProjectAppList(query)).then((res) => {// dispatch(install.getProjectAppList(query)).then((res) => {//
setAppList(res.payload.data) setAppList(res.payload.data)
}) })
@ -437,6 +441,7 @@ const Example = (props) => {
close={() => { close={() => {
setSystemModal(false); setSystemModal(false);
getProjectPomsList() getProjectPomsList()
getPepProject()
}} > }} >
</SystemModal> : '' </SystemModal> : ''
} }

Loading…
Cancel
Save