Commit c5daf6fd authored by 张伯涛's avatar 张伯涛

修改

parent 000f5e34
......@@ -568,6 +568,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const nowDate = this.dateFor(new Date().getTime())
const queryParams = {
rejectCode: this.queryParams.rejectCode,
rejectDescription: this.queryParams.rejectDescription
......@@ -583,7 +584,7 @@ export default {
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '不良定义信息' + '.xls' // 下载后文件名
downloadElement.download = '不良定义信息' + nowDate + '.xls' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment