Explorar o código

fix(API调用报告): 传递账号 ID 查询明细

账号行展开时将 tk_pool.id 一并提交给图表接口,避免共享场景标签的账号无法命中各自统计数据。
dodo hold hai 2 meses
pai
achega
fae9294285

+ 1 - 0
src/api/taobao.ts

@@ -178,6 +178,7 @@ tk_report_hourtrend
 */
 export interface TkReportRecord {
     id: number;
+    accountId?: number;
     accountName: string;
     report_date: Date;
     isLeaf?: boolean;

+ 1 - 0
src/views/taobao/components/categories-percent.vue

@@ -130,6 +130,7 @@ const fetchData = async (
 
 const search = () => {
     fetchData({
+        accountId: props.record.accountId,
         accountName: props.record.accountName,
         isLeaf: props.record.isLeaf,
         query_date: [props.record.report_date],

+ 1 - 0
src/views/taobao/components/categories-percent2.vue

@@ -124,6 +124,7 @@ const fetchData = async (
 
 const search = () => {
     fetchData({
+        accountId: props.record.accountId,
         accountName: props.record.accountName,
         isLeaf: props.record.isLeaf,
         query_date: [props.record.report_date],