洪水预报禅道修改
parent
217da0c127
commit
af042278e7
|
|
@ -57,6 +57,8 @@ const Page = () => {
|
||||||
const params = {
|
const params = {
|
||||||
search: {
|
search: {
|
||||||
...searchVal,
|
...searchVal,
|
||||||
|
'orderField':'id',
|
||||||
|
'isAsc':true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
search(params)
|
search(params)
|
||||||
|
|
@ -77,7 +79,7 @@ const Page = () => {
|
||||||
ref={refModal}
|
ref={refModal}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm}
|
component={ModalForm}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
|
||||||
/>
|
/>
|
||||||
<BasicCrudModal
|
<BasicCrudModal
|
||||||
width={1000}
|
width={1000}
|
||||||
|
|
@ -85,7 +87,7 @@ const Page = () => {
|
||||||
ref={refModal2}
|
ref={refModal2}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm2}
|
component={ModalForm2}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
|
||||||
/>
|
/>
|
||||||
<BasicCrudModal
|
<BasicCrudModal
|
||||||
width={1500}
|
width={1500}
|
||||||
|
|
@ -93,7 +95,7 @@ const Page = () => {
|
||||||
ref={refModal3}
|
ref={refModal3}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm3}
|
component={ModalForm3}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ const Page = () => {
|
||||||
const params = {
|
const params = {
|
||||||
search: {
|
search: {
|
||||||
...searchVal,
|
...searchVal,
|
||||||
|
"orderField":"chtm",
|
||||||
|
"isAsc":false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
search(params)
|
search(params)
|
||||||
|
|
@ -82,7 +84,7 @@ const Page = () => {
|
||||||
message.error('修改失败')
|
message.error('修改失败')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
refresh()
|
refresh({search:{'orderField':'chtm','isAsc':false}})
|
||||||
message.success('修改成功')
|
message.success('修改成功')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -108,7 +110,7 @@ const Page = () => {
|
||||||
ref={refModal}
|
ref={refModal}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm}
|
component={ModalForm}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'chtm','isAsc':false}})}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import drpOption from './drpOption';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import './index.less'
|
import './index.less'
|
||||||
import ModalForm1 from './table1'
|
import ModalForm1 from './table1'
|
||||||
import { httppost2 } from '../../../../utils/request';
|
import { httpget2, httppost2 } from '../../../../utils/request';
|
||||||
import apiurl from '../../../../service/apiurl';
|
import apiurl from '../../../../service/apiurl';
|
||||||
|
|
||||||
const Page = ({projectId,onCancel}) => {
|
const Page = ({projectId,onCancel}) => {
|
||||||
|
|
@ -31,7 +31,7 @@ const Page = ({projectId,onCancel}) => {
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
(async()=>{
|
(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){
|
if(code!==200){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -46,7 +46,7 @@ const Page = ({projectId,onCancel}) => {
|
||||||
ycMaxSwH:data.ycMaxSwH,
|
ycMaxSwH:data.ycMaxSwH,
|
||||||
ycMaxRkQ:data.ycMaxRkQ,
|
ycMaxRkQ:data.ycMaxRkQ,
|
||||||
ycMaxCkQ:data.ycMaxCkQ,
|
ycMaxCkQ:data.ycMaxCkQ,
|
||||||
ycSumFlood:data.ycSumFlood,
|
ycSumFlood:data.ycSumFlood,
|
||||||
}})
|
}})
|
||||||
})()
|
})()
|
||||||
},[])
|
},[])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue