|
@@ -79,6 +79,7 @@ export default React.forwardRef((props, ref) => {
|
79
|
79
|
useEffect(() => {
|
80
|
80
|
//首次加载页面时
|
81
|
81
|
if (!mounted.current && hotel.hotelId) {
|
|
82
|
+
|
82
|
83
|
getRoomList({ hotelId: hotel.hotelId }).then((res) => {
|
83
|
84
|
setDetail(res.records || [])
|
84
|
85
|
mounted.current = true
|
|
@@ -89,7 +90,7 @@ export default React.forwardRef((props, ref) => {
|
89
|
90
|
//当前页面切换到前台时
|
90
|
91
|
useDidShow(() => {
|
91
|
92
|
if (mounted.current) {
|
92
|
|
- getRoomList({ hotelId: hotel.hotelId }).then((res) => {
|
|
93
|
+ getRoomList({ hotelId: hotel.hotelId,roomName: search,pageSize:'500' }).then((res) => {
|
93
|
94
|
setDetail(res.records || [])
|
94
|
95
|
})
|
95
|
96
|
}
|