|
|
@@ -266,7 +266,6 @@ const contentConfig = reactive<IContentConfig<RulePageQuery>>({
|
|
|
institution_id: institutionIdFromUrl.value,
|
|
|
})) as Record<string, unknown>,
|
|
|
indexAction: async (params) => {
|
|
|
- console.log('[rule] indexAction called, params:', JSON.stringify(params));
|
|
|
const query: RulePageQuery = {
|
|
|
page_no: params.page_no,
|
|
|
page_size: params.page_size,
|
|
|
@@ -274,12 +273,10 @@ const contentConfig = reactive<IContentConfig<RulePageQuery>>({
|
|
|
if (params.institution_id) query.institution_id = params.institution_id;
|
|
|
if (params.name) query.name = params.name;
|
|
|
const res = await RuleAPI.listRule(query);
|
|
|
- console.log('[rule] raw res.data:', JSON.stringify(res.data));
|
|
|
- console.log('[rule] res.data.data:', JSON.stringify(res.data.data));
|
|
|
- const list = res.data.data?.items || res.data.data?.list || [];
|
|
|
- const total = res.data.data?.total || 0;
|
|
|
- console.log('[rule] extracted list:', list.length, 'total:', total);
|
|
|
- return { list, total };
|
|
|
+ return {
|
|
|
+ list: res.data.data?.items || res.data.data?.list || [],
|
|
|
+ total: res.data.data?.total || 0,
|
|
|
+ };
|
|
|
},
|
|
|
});
|
|
|
|