if (params.endTime) { | if (params.endTime) { | ||||
params.endTime = moment(params.endTime).format("YYYYMMDD"); | 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) { | function dowloadOne(row: any) { | ||||
BaseService.post('/managew/query/cardblackstatisticpage', { | |||||
BaseService.post('/managew/query/cardblackdowanload', { | |||||
id: row.id, | id: row.id, | ||||
}).then((res: any) => { | }).then((res: any) => { | ||||
if (res && res.statusCode === 0) { | if (res && res.statusCode === 0) { |
crudRef.value.tableLoding = false; | crudRef.value.tableLoding = false; | ||||
return; | return; | ||||
} | } | ||||
if (!searchFormList.agencyName) { | |||||
ElMessage.error("渠道名称不能为空"); | |||||
crudRef.value.tableLoding = false; | |||||
return; | |||||
} | |||||
for (let key in searchFormList) { | for (let key in searchFormList) { | ||||
if (searchFormList[key]) { | if (searchFormList[key]) { | ||||
params[key] = searchFormList[key]; | params[key] = searchFormList[key]; |
import moment from "moment"; | import moment from "moment"; | ||||
// 导出 | // 导出 | ||||
export const exportFn = (api, params, fileName: string = "") => { | 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) { | if (res && res.code === 0) { | ||||
let bizContent = res.data | let bizContent = res.data | ||||
console.log(bizContent,'bizContent') | console.log(bizContent,'bizContent') |