wenlele 2 years ago
parent
commit
d95ae5c6bc
  1. 12
      web/client/src/sections/install/containers/system.jsx

12
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)
}) })
@ -279,6 +283,7 @@ const Example = (props) => {
position="topRight" position="topRight"
onConfirm={() => { onConfirm={() => {
dispatch(install.deleteProjectBind({ bindId: row?.id, msg: '删除安心云、项目管理项目绑定关系' })).then(() => { dispatch(install.deleteProjectBind({ bindId: row?.id, msg: '删除安心云、项目管理项目绑定关系' })).then(() => {
getPepProject()
if (page.current > 0 && mylimits.current < 2) { if (page.current > 0 && mylimits.current < 2) {
setQuery({ limit: 10, page: page.current - 1 }) setQuery({ limit: 10, page: page.current - 1 })
} else { } else {
@ -437,6 +442,7 @@ const Example = (props) => {
close={() => { close={() => {
setSystemModal(false); setSystemModal(false);
getProjectPomsList() getProjectPomsList()
getPepProject()
}} > }} >
</SystemModal> : '' </SystemModal> : ''
} }

Loading…
Cancel
Save