导出html和导出excel区别


一:导出html

接口

export function handleExportHtmlAllApiThree(query) {
    return process.env.VUE_APP_BASE_API + '/search/exportHtml?exportIds=' + query.exportIds + "&exportType=" + query.exportType + "&exportTimes=" + query.exportTimes
}

页面使用

window.open(handleExportHtmlAllApiThree(params))

二:导出excel

方法:

// 通用下载方法
export function download(fileName) {
    window.location.href = baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true;
}

调用:

this.download(response.msg);

目前这样使用的,有的话,继续补充