fix(table): 统一筛选交互并补齐移动视口覆盖
This commit is contained in:
@@ -73,10 +73,20 @@ async function exercise(
|
||||
seqRef: { current: 0 },
|
||||
orgRef: { current: 77 },
|
||||
fetchSeqRef: { current: 0 },
|
||||
request: { current: 0 },
|
||||
searchKeyword: 'pagination-fixture',
|
||||
appliedKeyword: 'pagination-fixture',
|
||||
appliedOrderId: 42,
|
||||
appliedUserId: 7,
|
||||
appliedStatus: '',
|
||||
appliedPaymentMethod: '',
|
||||
appliedDateRange: [],
|
||||
appliedFilters: {
|
||||
planTypes: [],
|
||||
tiers: [],
|
||||
statuses: [],
|
||||
endDateRange: null,
|
||||
},
|
||||
statusFilter: '',
|
||||
paymentMethodFilter: '',
|
||||
dateRange: [],
|
||||
@@ -184,6 +194,7 @@ for (const cfg of [
|
||||
file: 'src/pages/AdminInvoice/index.jsx',
|
||||
fn: 'fetchInvoices',
|
||||
expectedPath: '/api/invoice/list',
|
||||
args: [new AbortController().signal],
|
||||
},
|
||||
{
|
||||
file: 'src/pages/UserCenter/Invoice.jsx',
|
||||
@@ -326,12 +337,11 @@ for (const cfg of [
|
||||
{
|
||||
file: 'src/pages/Organization/datasecurity/OrgDsHitLogs.jsx',
|
||||
fn: 'fetchLogs',
|
||||
args: [3, false],
|
||||
args: [new AbortController().signal],
|
||||
expectedPath: '/api/org/data-security/logs',
|
||||
pageKey: 'page',
|
||||
values: {
|
||||
logsSeqRef: { current: 0 },
|
||||
lastAttemptedPageRef: { current: 1 },
|
||||
query: { page: 3, sensitiveOnly: false },
|
||||
headers: {},
|
||||
},
|
||||
},
|
||||
@@ -537,10 +547,13 @@ test('Multi-key read pagination preserves existing POST action and response fiel
|
||||
channel: { id: 7 },
|
||||
currentPage: 3,
|
||||
pageSize: 50,
|
||||
statusFilter: 1,
|
||||
AbortController,
|
||||
appliedStatus: { current: 1 },
|
||||
activeRequest: { current: null },
|
||||
cancelQuery: () => {},
|
||||
API: {
|
||||
post: async (path, data) => {
|
||||
calls.push({ path, data });
|
||||
post: async (path, data, options) => {
|
||||
calls.push({ path, data, options });
|
||||
return {
|
||||
data: {
|
||||
success: true,
|
||||
@@ -580,6 +593,7 @@ test('Multi-key read pagination preserves existing POST action and response fiel
|
||||
assert.equal(calls[0].data.action, 'get_key_status');
|
||||
assert.equal(calls[0].data.page, 3);
|
||||
assert.equal(calls[0].data.page_size, 50);
|
||||
assert.ok(calls[0].options.signal instanceof AbortSignal);
|
||||
assert.equal(states.total, 156);
|
||||
assert.equal(states.rows[0], sentinel);
|
||||
assert.equal(states.loading, false);
|
||||
|
||||
Reference in New Issue
Block a user