李志伟 3 年之前
父節點
當前提交
a5bf626de6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/hotel/components/HouseManage/houseManage.jsx

+ 2
- 1
src/hotel/components/HouseManage/houseManage.jsx 查看文件

@@ -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
     }