账号行展开时将 tk_pool.id 一并提交给图表接口,避免共享场景标签的账号无法命中各自统计数据。
@@ -178,6 +178,7 @@ tk_report_hourtrend
*/
export interface TkReportRecord {
id: number;
+ accountId?: number;
accountName: string;
report_date: Date;
isLeaf?: boolean;
@@ -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],
@@ -124,6 +124,7 @@ const fetchData = async (