wjx пре 2 година
родитељ
комит
2e7d18f0b7

+ 1 - 0
src/pages/adMonitor/adMonitorList/config.ts

@@ -200,6 +200,7 @@ const guanggao = [
             { title: '投放计划名称/ID', dataIndex: 'campaignName/campaignId', label: '设置信息', default: 3 },
             { title: '创意名称/ID', dataIndex: 'creativeName/creativeId', label: '设置信息', default: 4 },
             { title: '创意预览', dataIndex: 'creativePreview', label: '设置信息', default: 5, width: 80 },
+            { title: '广告账户', dataIndex: 'accountId', label: '设置信息', width: 70 },
             { title: '投手', dataIndex: 'putUserName', label: '设置信息', default: 6 },
             { title: '创建日期', dataIndex: 'adCreateTime', label: '设置信息' },
             { title: '广告状态', dataIndex: 'adStatus', label: '设置信息', default: 7, width: 75 },

+ 4 - 5
src/pages/adMonitor/adMonitorList/monitor.tsx

@@ -207,18 +207,17 @@ function Monitor(props: { onChange: () => void }) {
         let ajax: any = null
         let params: any = {}
         let { totalTimeUnit, planTimeUnit, timeUnit, sysUserId, accountId, adgroup, pageNum, pageSize, ...newQueryForm } = queryForm
-        let newPitcherIds = sysUserId?.join()
         switch (mode) {
             case 'total':
-                params = { ...newQueryForm, sysUserId: newPitcherIds, accountId: accountId?.join() }
+                params = { ...newQueryForm, sysUserId, accountId, adgroup }
                 ajax = downLoadUpAdApi
                 break;
             case 'detail':
-                params = { ...newQueryForm, adgroup, sysUserId: newPitcherIds, accountId: accountId?.join() }
+                params = { ...newQueryForm, adgroup, sysUserId, accountId }
                 ajax = downLoadDetailApi
                 break;
             case 'minute':
-                params = { ...newQueryForm, adgroup, sysUserId: newPitcherIds, accountId: accountId?.join() }
+                params = { ...newQueryForm, adgroup, sysUserId, accountId }
                 ajax = downLoadDetailMinuteApi
                 break;
         }
@@ -390,7 +389,7 @@ function Monitor(props: { onChange: () => void }) {
                     </Space>
                 }
                 fixed={{ left: 0, right: 2 }}
-                total={mode === 'total' ? getPlanList?.data?.data?.total : 0}
+                total={mode === 'total' ? getPlanList?.data?.data?.total : mode === 'detail' ? getPlanDetailList?.data?.data?.total : getMinuteList?.data?.data?.total}
                 onChange={mode === 'total' ? (props: any) => {
                     let { sortData, pagination } = props
                     let { current, pageSize } = pagination

+ 7 - 0
src/pages/adMonitor/adMonitorList/tablePlanListConfig.tsx

@@ -66,6 +66,13 @@ function columnsMonitor(details: (id: number) => void) {
                     return <Box b={b} />
                 }
             },
+            {
+                title: '广告账户',
+                dataIndex: 'accountId',
+                key: 'accountId',
+                width: 70,
+                align: 'center'
+            },
             {
                 title: '投手',
                 dataIndex: 'putUserName',

+ 8 - 8
src/services/adMonitor/adMonitor.ts

@@ -145,8 +145,8 @@ export async function getBookListAllApi() {
 /** 下载起量广告总表 */
 export async function downLoadUpAdApi(params: ListType) {
     return request(`${api}/tencentMonitor/adExcel/up/ad/list`, {
-        method: 'GET',
-        params,
+        method: 'POST',
+        data: params,
         responseType: 'blob'
     })
 }
@@ -154,8 +154,8 @@ export async function downLoadUpAdApi(params: ListType) {
 /** 下载单个广告明细表(小时) */
 export async function downLoadDetailApi(params: ListType) {
     return request(`${api}/tencentMonitor/adExcel/up/ad/detail/list`, {
-        method: 'GET',
-        params,
+        method: 'POST',
+        data: params,
         responseType: 'blob'
     })
 }
@@ -163,8 +163,8 @@ export async function downLoadDetailApi(params: ListType) {
 /** 下载单个广告明细表(5分钟) */
 export async function downLoadDetailMinuteApi(params: ListType) {
     return request(`${api}/tencentMonitor/adExcel/up/ad/detail/list/minute`, {
-        method: 'GET',
-        params,
+        method: 'POST',
+        data: params,
         responseType: 'blob'
     })
 }
@@ -172,8 +172,8 @@ export async function downLoadDetailMinuteApi(params: ListType) {
 /** 下载消耗速度详情(弹窗) */
 export async function downLoadSpeedApi(params: ListType) {
     return request(`${api}/tencentMonitor/adExcel/cost/speed/info`, {
-        method: 'GET',
-        params,
+        method: 'POST',
+        data: params,
         responseType: 'blob'
     })
 }