Feature/0723/zr #9
@@ -132,7 +132,10 @@ export function useBannerModel() {
|
||||
// ===== 方法 =====
|
||||
|
||||
/** 查询 */
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
/** 重置 */
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
|
||||
@@ -96,7 +96,10 @@ export function useEventListModel() {
|
||||
);
|
||||
});
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
const handleReset = async () => {
|
||||
Object.assign(filterForm, FILTER_DEFAULTS);
|
||||
|
||||
@@ -120,7 +120,10 @@ export function useLogModel() {
|
||||
);
|
||||
});
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
const handleReset = async () => {
|
||||
filterForm.dateRange = null;
|
||||
|
||||
@@ -199,7 +199,10 @@ export function useOrderModel() {
|
||||
},
|
||||
];
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
const handleReset = async () => {
|
||||
Object.assign(filterForm, FILTER_DEFAULTS);
|
||||
|
||||
@@ -89,7 +89,10 @@ export function useUserModel() {
|
||||
});
|
||||
|
||||
// ===== 事件处理 =====
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
const handleReset = async () => {
|
||||
filterForm.nickname = '';
|
||||
|
||||
@@ -126,7 +126,10 @@ export function usePaymentsModel() {
|
||||
|
||||
// ===== 方法 =====
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
filterForm.timeRange = null;
|
||||
|
||||
@@ -159,7 +159,10 @@ export function useWalletModel() {
|
||||
|
||||
// ===== 方法 =====
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
filterForm.nickname = '';
|
||||
|
||||
@@ -179,7 +179,10 @@ export function useWithdrawModel() {
|
||||
|
||||
// ===== 方法 =====
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
/** 重置(重置后自动查询) */
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
|
||||
@@ -122,7 +122,10 @@ export function useLogModel() {
|
||||
|
||||
// ===== 方法 =====
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
/** 重置(重置后自动查询) */
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
|
||||
@@ -93,7 +93,10 @@ export function useRoleModel() {
|
||||
|
||||
// ===== 方法 =====
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
/** 重置(重置后自动查询) */
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
|
||||
@@ -133,7 +133,10 @@ export function useUserModel() {
|
||||
|
||||
// ===== 方法 =====
|
||||
|
||||
const handleSearch = () => fetchList();
|
||||
const handleSearch = () => {
|
||||
pagination.reset();
|
||||
fetchList();
|
||||
};
|
||||
|
||||
/** 重置(节流 500ms,重置后自动查询) */
|
||||
const handleReset = useThrottleFn(async () => {
|
||||
|
||||
Reference in New Issue
Block a user