@@ -287,11 +287,16 @@ | |||
if (params.endTime) { | |||
params.endTime = moment(params.endTime).format("YYYYMMDD"); | |||
} | |||
exportFn('/managew/query/cardblackstatisticpage', params, '渠道黑名单统计数据') | |||
if (!searchFormList.agencyName) { | |||
ElMessage.error("渠道名称不能为空"); | |||
crudRef.value.tableLoding = false; | |||
return; | |||
} | |||
exportFn('/managew/query/cardblackdowanload', params, '渠道黑名单统计数据') | |||
} | |||
// 下载 | |||
function dowloadOne(row: any) { | |||
BaseService.post('/managew/query/cardblackstatisticpage', { | |||
BaseService.post('/managew/query/cardblackdowanload', { | |||
id: row.id, | |||
}).then((res: any) => { | |||
if (res && res.statusCode === 0) { |
@@ -306,6 +306,11 @@ | |||
crudRef.value.tableLoding = false; | |||
return; | |||
} | |||
if (!searchFormList.agencyName) { | |||
ElMessage.error("渠道名称不能为空"); | |||
crudRef.value.tableLoding = false; | |||
return; | |||
} | |||
for (let key in searchFormList) { | |||
if (searchFormList[key]) { | |||
params[key] = searchFormList[key]; |
@@ -3,7 +3,7 @@ import BaseService from "@/utils/baseService"; | |||
import moment from "moment"; | |||
// 导出 | |||
export const exportFn = (api, params, fileName: string = "") => { | |||
BaseService.postN(api, params).then((res: any) => { | |||
BaseService.post(api, params).then((res: any) => { | |||
if (res && res.code === 0) { | |||
let bizContent = res.data | |||
console.log(bizContent,'bizContent') |