소스 검색

@
debug: indexAction 入口 + PageContent then/catch 加日志
@

alphaH 7 시간 전
부모
커밋
c4c640f444
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      frontend/src/components/CURD/PageContent.vue
  2. 1 0
      frontend/src/views/module_payment/rule/index.vue

+ 3 - 1
frontend/src/components/CURD/PageContent.vue

@@ -928,18 +928,20 @@ function fetchPageData(formData: IObject = {}, isRestart = false) {
         : formData
     )
     .then((data) => {
+      console.log('[PageContent] indexAction resolved, data:', JSON.stringify(data));
       if (showPagination) {
         if (props.contentConfig.parseData) {
           data = props.contentConfig.parseData(data);
         }
         pagination.total = data.total;
         pageData.value = data.list;
+        console.log('[PageContent] pageData set, count:', pageData.value.length);
       } else {
         pageData.value = data;
       }
     })
     .catch((err: unknown) => {
-      console.error(err);
+      console.error('[PageContent] indexAction error:', err);
       ElMessage.error(getIndexActionErrorMessage(err));
     })
     .finally(() => {

+ 1 - 0
frontend/src/views/module_payment/rule/index.vue

@@ -266,6 +266,7 @@ 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,