|
|
@@ -13,7 +13,6 @@ import B1look from './B1look'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
|
import { B_APIgetServe } from '@/store/action/Breserve'
|
|
|
import dayjs from 'dayjs'
|
|
|
-import { start } from 'repl'
|
|
|
|
|
|
// import { exportExcelFile } from '@/utils/xlsxExport'
|
|
|
|
|
|
@@ -37,8 +36,12 @@ function B1reserve1() {
|
|
|
const [serverOptions, setServerOptions] = useState<{ label: string; value: number }[]>([])
|
|
|
|
|
|
const getListFu = useCallback(
|
|
|
- (name?: string) => {
|
|
|
- dispatch(B_APIgetList({ ...pageData, name: name || '', type: 1, ...queryData }))
|
|
|
+ (name?: string, pageNum?: number) => {
|
|
|
+ const obj = { ...pageData, name: name || '', type: 1, ...queryData }
|
|
|
+
|
|
|
+ if (pageNum) obj.pageNum = 1
|
|
|
+
|
|
|
+ dispatch(B_APIgetList(obj))
|
|
|
},
|
|
|
[dispatch, pageData, queryData]
|
|
|
)
|
|
|
@@ -158,7 +161,7 @@ function B1reserve1() {
|
|
|
onChange={e => setName(e.target.value)}
|
|
|
value={name}
|
|
|
/>
|
|
|
- <Button type='primary' onClick={() => getListFu(name)}>
|
|
|
+ <Button type='primary' onClick={() => getListFu(name, 1)}>
|
|
|
搜索
|
|
|
</Button>
|
|
|
<Button
|