Sfoglia il codice sorgente

Merge branch 'Paging' into Paging_Enhancement

master
Anna Ho 1 anno fa
parent
commit
959909939e
2 ha cambiato i file con 9 aggiunte e 3 eliminazioni
  1. +7
    -1
      src/pages/Setting/SystemSetting/index.js
  2. +2
    -2
      src/pages/User/ManagePage_OrgPublic/index.js

+ 7
- 1
src/pages/Setting/SystemSetting/index.js Vedi File

@@ -34,6 +34,7 @@ const BackgroundHead = {
const SystemSetting = () => {
const [searchCriteria, setSearchCriteria] = React.useState({});
const [selectedItem, setSelectedItem] = React.useState({});
const [reloadTime, setReloadTime] = React.useState(new Date())

React.useEffect(()=>{
setSearchCriteria({})
@@ -43,6 +44,11 @@ const SystemSetting = () => {
setSelectedItem(param.row);
}

React.useEffect(() => {
searchCriteria.reloadTime = reloadTime;
setSearchCriteria(searchCriteria);
}, [reloadTime]);

const onSave = (param) => {
HttpUtils.post({
url: GET_SYS_PARAMS + "/update",
@@ -52,7 +58,7 @@ const SystemSetting = () => {
},
onSuccess: () => {
notifyActionSuccess();
loadList();
setReloadTime(new Date());
}
});
}


+ 2
- 2
src/pages/User/ManagePage_OrgPublic/index.js Vedi File

@@ -69,7 +69,7 @@ const ManageOrgUserPage = () => {
HttpUtils.get({
url: GET_USER_UNLOCK + "/" + params.row.id,
onSuccess: () => {
setReloadTime(new Date);
setReloadTime(new Date());
}
});
}
@@ -109,7 +109,7 @@ const ManageOrgUserPage = () => {
{
url: (!selectUser.row.primaryUser ? GET_SET_PRIMARY_USER : GET_SET_UN_PRIMARY_USER) + "/" + selectUser.row.id,
onSuccess: function () {
setReloadTime(new Date);
setReloadTime(new Date());
}
}
);


Caricamento…
Annulla
Salva