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>
<script>
import { kchz, downloadhz } from '@/api/kucun/kucun'
import { kchz } from '@/api/kucun/kucun'
export default {
name: 'KucunKcxxcxIndex',
// components: { },
@ -122,20 +122,20 @@ export default {
},
doDownloadHz() {
window.open(this.hzFilePath, '_blank')
// downloadhz({ filepath: this.hzFilePath })
// .then(res => {
// console.log('xxx', res)
// const blob = new Blob([res.data])
// const url = window.URL.createObjectURL(blob) // url blob
// const a = document.createElement('a')
// a.href = url
// a.download = '.xlsx'
// a.click()
// window.URL.revokeObjectURL(url) // ur
// })
// .catch(e => {
// console.log(e)
// })
// downloadhz({ filepath: this.hzFilePath })
// .then(res => {
// console.log('xxx', res)
// const blob = new Blob([res.data])
// const url = window.URL.createObjectURL(blob) // url blob
// const a = document.createElement('a')
// a.href = url
// a.download = '.xlsx'
// a.click()
// window.URL.revokeObjectURL(url) // ur
// })
// .catch(e => {
// console.log(e)
// })
}
}
}

Loading…
Cancel
Save