|
@ -40,7 +40,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { kchz, downloadhz } from '@/api/kucun/kucun' |
|
|
import { kchz } from '@/api/kucun/kucun' |
|
|
export default { |
|
|
export default { |
|
|
name: 'KucunKcxxcxIndex', |
|
|
name: 'KucunKcxxcxIndex', |
|
|
// components: { }, |
|
|
// components: { }, |
|
@ -122,20 +122,20 @@ export default { |
|
|
}, |
|
|
}, |
|
|
doDownloadHz() { |
|
|
doDownloadHz() { |
|
|
window.open(this.hzFilePath, '_blank') |
|
|
window.open(this.hzFilePath, '_blank') |
|
|
// downloadhz({ filepath: this.hzFilePath }) |
|
|
// downloadhz({ filepath: this.hzFilePath }) |
|
|
// .then(res => { |
|
|
// .then(res => { |
|
|
// console.log('xxx', res) |
|
|
// console.log('xxx', res) |
|
|
// const blob = new Blob([res.data]) |
|
|
// const blob = new Blob([res.data]) |
|
|
// const url = window.URL.createObjectURL(blob) // 创建 url 并指向 blob |
|
|
// const url = window.URL.createObjectURL(blob) // 创建 url 并指向 blob |
|
|
// const a = document.createElement('a') |
|
|
// const a = document.createElement('a') |
|
|
// a.href = url |
|
|
// a.href = url |
|
|
// a.download = '导出数据.xlsx' |
|
|
// a.download = '导出数据.xlsx' |
|
|
// a.click() |
|
|
// a.click() |
|
|
// window.URL.revokeObjectURL(url) // 释放该 ur |
|
|
// window.URL.revokeObjectURL(url) // 释放该 ur |
|
|
// }) |
|
|
// }) |
|
|
// .catch(e => { |
|
|
// .catch(e => { |
|
|
// console.log(e) |
|
|
// console.log(e) |
|
|
// }) |
|
|
// }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|