|
@@ -86,7 +86,7 @@ import { IP } from '@/utils/request'
|
|
|
import { client } from '@/utils/index'
|
|
|
import { getCallRecord } from '@/api/hotline'
|
|
|
import { parseTime } from '@/utils/index'
|
|
|
-import { getFileAudio } from '@/api/xjWorkSiteCheckApi'
|
|
|
+import { getFileAudio2 } from '@/api/xjWorkSiteCheckApi'
|
|
|
export default {
|
|
|
components: { TableItem },
|
|
|
data() {
|
|
@@ -309,24 +309,7 @@ export default {
|
|
|
this.$message.info('暂无音频')
|
|
|
return
|
|
|
}
|
|
|
- // getFileAudio(
|
|
|
- // this.$store.state.user.token,
|
|
|
- // this.multipleSelection[0].recordFile).then(src => {
|
|
|
- // console.log('路径:' + src)
|
|
|
- // var reader = new FileReader()
|
|
|
- // reader.readAsDataURL(src)
|
|
|
- // reader.onload = (e) => {
|
|
|
- // const a = document.createElement('a')
|
|
|
- // a.download = '录音文件'
|
|
|
- // // 后端设置的文件名称在res.headers的 "content-disposition": "form-data; name=\"attachment\"; filename=\"20181211191944.zip\"",
|
|
|
- // a.href = e.target.result
|
|
|
- // console.log(a.href,'href')
|
|
|
- // document.body.appendChild(a)
|
|
|
- // a.click()
|
|
|
- // document.body.removeChild(a)
|
|
|
- // }
|
|
|
- // })
|
|
|
- getFileAudio(
|
|
|
+ getFileAudio2(
|
|
|
this.$store.state.user.token,
|
|
|
this.multipleSelection[0].recordFile).then(src => {
|
|
|
console.log(src,'src')
|