Explorar el Código

fix:更新传参

cmy hace 1 semana
padre
commit
508219e589
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/views/marketing/apps/components/statistical.vue

+ 4 - 2
src/views/marketing/apps/components/statistical.vue

@@ -130,7 +130,7 @@ const getTimeRangeList = async () => {
 const openDialog = async (_row: any) => {
   await getTimeRangeList();
   visible.value = true;
-  state.queryForm.appId = _row.id;
+  state.queryForm.appId = _row.appId;
   getDataList();
 };
 
@@ -186,7 +186,9 @@ const loadChildData = async (parentRow) => {
     const res = await getStatSecondPage({
       ip: parentRow.ip,
       current: parentRow.childPagination.page,
-      size: parentRow.childPagination.size
+      size: parentRow.childPagination.size,
+      appId: state.queryForm.appId,
+      timeRange: state.queryForm.timeRange
     });
     const data = res.data;
     parentRow.childTableData = data.records;