李志伟 3 年前
父节点
当前提交
4a61787561
共有 1 个文件被更改,包括 0 次插入13 次删除
  1. 0
    13
      src/hotel/components/HouseManage/houseManage.jsx

+ 0
- 13
src/hotel/components/HouseManage/houseManage.jsx 查看文件

@@ -23,16 +23,8 @@ export default React.forwardRef((props, ref) => {
23 23
   const { hotel, hotelList, onHotelChange } = props
24 24
   const [detail, setDetail] = useState([])
25 25
 
26
-<<<<<<< HEAD
27
-  // const fetchAPI = useMemo(() => hotel.hotelId ? () => getRoomList({ hotelId: hotel.hotelId }) : undefined, [hotel?.hotelId])
28
-  // const queryParams = useMemo(() => ({}), [])
29
-  const [queryParams, setQueryParams] = useState({ hotelId: hotel.hotelId, pageNum: 1, pageSize: 10})
30
-
31
-  const [loading, setLoading] = useState(false)
32
-=======
33 26
   const fetchAPI = useMemo(() => hotel.hotelId ? () => getRoomList({ hotelId: hotel.hotelId }) : undefined, [hotel?.hotelId])
34 27
   const queryParams = useMemo(() => ({ pageNum: 1, pageSize: 0, }), [])
35
->>>>>>> 91e477ef906774c0e2b33f2118e38d1b1544cb9c
36 28
 
37 29
   const shareDataRef = useRef()
38 30
 
@@ -138,12 +130,7 @@ export default React.forwardRef((props, ref) => {
138 130
       })
139 131
     }
140 132
   }
141
-<<<<<<< HEAD
142
-  const handelCopy = (e, val) => {
143
-    setLoading(true)
144
-=======
145 133
   const handelCopy = (e, val, index) => {
146
->>>>>>> 91e477ef906774c0e2b33f2118e38d1b1544cb9c
147 134
     //阻止冒泡不允许执行父元素的点击事件
148 135
     e.stopPropagation()
149 136
     saveRoom({ ...val, roomId: null, roomName: val.roomName + '复制', createDate: null }).then((res) => {