wjx 1 год назад
Родитель
Сommit
604e40c996
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/pages/adMonitor/adMonitorList/monitor1.tsx

+ 2 - 2
src/pages/adMonitor/adMonitorList/monitor1.tsx

@@ -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) => {