洪水预报禅道修改

qzc-dev-demo
秦子超 2024-11-14 13:52:43 +08:00
parent 217da0c127
commit af042278e7
3 changed files with 12 additions and 8 deletions

View File

@ -57,6 +57,8 @@ const Page = () => {
const params = {
search: {
...searchVal,
'orderField':'id',
'isAsc':true
}
};
search(params)
@ -77,7 +79,7 @@ const Page = () => {
ref={refModal}
title=""
component={ModalForm}
onCrudSuccess={refresh}
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
/>
<BasicCrudModal
width={1000}
@ -85,7 +87,7 @@ const Page = () => {
ref={refModal2}
title=""
component={ModalForm2}
onCrudSuccess={refresh}
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
/>
<BasicCrudModal
width={1500}
@ -93,7 +95,7 @@ const Page = () => {
ref={refModal3}
title=""
component={ModalForm3}
onCrudSuccess={refresh}
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
/>
</div>
</>

View File

@ -66,6 +66,8 @@ const Page = () => {
const params = {
search: {
...searchVal,
"orderField":"chtm",
"isAsc":false
}
};
search(params)
@ -82,7 +84,7 @@ const Page = () => {
message.error('修改失败')
return
}
refresh()
refresh({search:{'orderField':'chtm','isAsc':false}})
message.success('修改成功')
}
@ -108,7 +110,7 @@ const Page = () => {
ref={refModal}
title=""
component={ModalForm}
onCrudSuccess={refresh}
onCrudSuccess={()=>refresh({search:{'orderField':'chtm','isAsc':false}})}
/>
</div>
</>

View File

@ -7,7 +7,7 @@ import drpOption from './drpOption';
import moment from 'moment';
import './index.less'
import ModalForm1 from './table1'
import { httppost2 } from '../../../../utils/request';
import { httpget2, httppost2 } from '../../../../utils/request';
import apiurl from '../../../../service/apiurl';
const Page = ({projectId,onCancel}) => {
@ -31,7 +31,7 @@ const Page = ({projectId,onCancel}) => {
useEffect(()=>{
(async()=>{
const {code , data} = await httppost2(apiurl.fxdd_xyt.hsyb.ybfagl.getData+'?projectId='+projectId)
const {code , data} = await httpget2(apiurl.fxdd_xyt.hsyb.ybfagl.getData+'?projectId='+projectId)
if(code!==200){
return
}