Commit 8cf2c053 by cwq0219

导出

1 parent 2179a654
...@@ -367,7 +367,12 @@ export default { ...@@ -367,7 +367,12 @@ export default {
}) })
}, },
handleImgDown(src) { handleImgDown(src) {
window.open(src) // window.open(src)
var a = document.createElement('a')
a.setAttribute('href', src)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
}, },
// 图片删除 // 图片删除
handleImgDelete(attrName, subIndex) { handleImgDelete(attrName, subIndex) {
......
...@@ -648,7 +648,12 @@ export default { ...@@ -648,7 +648,12 @@ export default {
handleExport(row) { handleExport(row) {
var params = this.getParams() var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => { this.$apis.orderManage.orderExportApi(params).then(res => {
window.open(res) // window.open(res)
var a = document.createElement('a')
a.setAttribute('href', res)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!