Commit 995fa068 authored by cellee's avatar cellee

预约加刷新,默认state变成1

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent c4eb4bab
...@@ -86,15 +86,15 @@ export default { ...@@ -86,15 +86,15 @@ export default {
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
// '/tos/': {
// target: 'http://47.74.233.180:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/tos/': { '/tos/': {
target: 'http://192.168.1.28:8651', target: 'http://47.74.233.180:8651',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
// '/tos/': {
// target: 'http://192.168.1.28:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
}, },
}; };
...@@ -18,7 +18,7 @@ export default { ...@@ -18,7 +18,7 @@ export default {
sourceData: null, sourceData: null,
curString: { curString: {
subscribeDate: null, subscribeDate: null,
status: null, status: 0,
communityNameList: null, communityNameList: null,
tab:1, tab:1,
curPage: 1, curPage: 1,
......
...@@ -313,6 +313,18 @@ const FacilityBookings = (props: any) => { ...@@ -313,6 +313,18 @@ const FacilityBookings = (props: any) => {
} }
} }
// 预约刷新
const onReset = () => {
RA(9, {
userToken: token,
pageNum: curString.pageNum,
subscribeDate: curString.subscribeDate,
status: curString.status,
communityNameList: CommunityList,
globalMark: curString.globalMark,
});
};
return ( return (
<> <>
<div className="base"> <div className="base">
...@@ -389,7 +401,7 @@ const FacilityBookings = (props: any) => { ...@@ -389,7 +401,7 @@ const FacilityBookings = (props: any) => {
density: false, density: false,
fullScreen: false, fullScreen: false,
reload: () => { reload: () => {
// onReset(); onReset();
}, },
setting: false, setting: false,
}} }}
...@@ -435,9 +447,7 @@ const FacilityBookings = (props: any) => { ...@@ -435,9 +447,7 @@ const FacilityBookings = (props: any) => {
options={{ options={{
density: false, density: false,
fullScreen: false, fullScreen: false,
reload: () => { reload: false,
// onReset();
},
setting: false, setting: false,
}} }}
// headerTitle="Facilities List" // headerTitle="Facilities List"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment