Browse Source

kucun

master
lzh 2 years ago
parent
commit
373bdf7e14
  1. 30
      base-ui/src/views/kucun/kcxxcx/index.vue

30
base-ui/src/views/kucun/kcxxcx/index.vue

@ -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)
// }) // })
} }
} }
} }

Loading…
Cancel
Save