|
@@ -143,8 +143,8 @@ function Monitor(props: { onChange: () => void }) {
|
|
|
/** 获取折线图 */
|
|
|
const getTootalCostList = useCallback(async () => {
|
|
|
let { totalTimeUnit, planTimeUnit, pageNum, pageSize, adgroup, sysUserId, accountId, ...newQueryForm } = queryForm
|
|
|
- let params = adgroup ? { ...newQueryForm, adgroupId: adgroup } : newQueryForm
|
|
|
- let res = await getCostTrendList.run({ ...params, timeUnit: planTimeUnit, sysUserIds: sysUserId, accountId: accountId?.join(), trendColumns })
|
|
|
+ let params = adgroup ? { ...newQueryForm, adgroupIdStr: adgroup } : newQueryForm
|
|
|
+ let res = await getCostTrendList.run({ ...params, timeUnit: planTimeUnit, sysUserIds: sysUserId, accountIdStr: accountId?.join(), trendColumns })
|
|
|
let data = trendColumns.map((field) => {
|
|
|
let value: any = {}
|
|
|
res?.data?.forEach((item: any, index: number) => {
|