@@ -88,7 +88,7 @@ | |||||
</div> | </div> | ||||
</el-tooltip> | </el-tooltip> | ||||
<!-- 暂时注释下一版本开发上线 --> | <!-- 暂时注释下一版本开发上线 --> | ||||
<el-popover placement="bottom" trigger="hover" width="350"> | |||||
<!-- <el-popover placement="bottom" trigger="hover" width="350"> | |||||
<el-table :data="gridData" @row-click="msgTap"> | <el-table :data="gridData" @row-click="msgTap"> | ||||
<el-table-column | <el-table-column | ||||
width="324" | width="324" | ||||
@@ -104,7 +104,7 @@ | |||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
<i slot="reference" class="el-icon-bell" style="font-size: 18px;color: #fff;"></i> | <i slot="reference" class="el-icon-bell" style="font-size: 18px;color: #fff;"></i> | ||||
</el-popover> | |||||
</el-popover> --> | |||||
<el-tooltip | <el-tooltip | ||||
v-if="showTheme" | v-if="showTheme" | ||||
@@ -1805,12 +1805,31 @@ export default { | |||||
//下载 | //下载 | ||||
download() { | download() { | ||||
console.log(this.recordPath); | console.log(this.recordPath); | ||||
// window.href = this.recordPath | |||||
// this.$api.api.filedownload({videoSrc:this.recordPath}).then((res) => { | // this.$api.api.filedownload({videoSrc:this.recordPath}).then((res) => { | ||||
// console.log(res); | // console.log(res); | ||||
// }) | // }) | ||||
// window.location.href =this.recordPath | |||||
this.exportMethodPost("/autoSR/zk/file/filedownload", "接待详情", { | |||||
videoSrc: this.recordPath, | |||||
// window.location.href = `https://zanyong.hfju.com/autoSR/zk/file/filedownload?videoSrc=${this.recordPath}` | |||||
// this.exportMethodPost("/autoSR/zk/file/filedownload", "接待详情", { | |||||
// videoSrc: this.recordPath, | |||||
// }); | |||||
this.downloadMp3(this.recordPath) | |||||
}, | |||||
downloadMp3(filePath) { | |||||
fetch(filePath).then(res => res.blob()).then(blob => { | |||||
const a = document.createElement('a'); | |||||
document.body.appendChild(a) | |||||
a.style.display = 'none' | |||||
// 使用获取到的blob对象创建的url | |||||
const url = window.URL.createObjectURL(blob); | |||||
a.href = url; | |||||
// 指定下载的文件名,就‘’写默认的下载名字。不指定他就根据上传名直接下载了宝。 | |||||
a.download = ''; | |||||
a.click(); | |||||
document.body.removeChild(a) | |||||
// 移除blob对象的url | |||||
window.URL.revokeObjectURL(url); | |||||
}); | }); | ||||
}, | }, | ||||
exportMethodPost(url, name, data = {}) { | exportMethodPost(url, name, data = {}) { | ||||
@@ -1821,6 +1840,7 @@ export default { | |||||
responseType: "blob", | responseType: "blob", | ||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
console.log(res, 'adasdjslakd') | |||||
let blob = new Blob([res], { type: "audio/*" }); | let blob = new Blob([res], { type: "audio/*" }); | ||||
let date = new Date(); | let date = new Date(); | ||||
let time = date.toLocaleDateString(); | let time = date.toLocaleDateString(); | ||||
@@ -10,8 +10,8 @@ | |||||
// const url = 'http://62.234.122.43:9999' //正式 | // const url = 'http://62.234.122.43:9999' //正式 | ||||
// const url = 'http://81.70.55.170:9999' // 新测试服务器IP | // const url = 'http://81.70.55.170:9999' // 新测试服务器IP | ||||
// const url = 'http://192.168.31.89:9999' //sh | // const url = 'http://192.168.31.89:9999' //sh | ||||
const url = 'https://zanyong.hfju.com' // 正式域名 | |||||
// const url = 'http://81.70.55.170:9999' // 新测试 | |||||
// const url = 'https://zanyong.hfju.com' // 正式域名 | |||||
const url = 'http://81.70.55.170:9999' // 新测试 | |||||
// const url = 'http://82.156.35.22:9999' // 新正式ip | // const url = 'http://82.156.35.22:9999' // 新正式ip | ||||
const CompressionWebpackPlugin = require('compression-webpack-plugin') | const CompressionWebpackPlugin = require('compression-webpack-plugin') | ||||
const productionGzipExtensions = ['js', 'css'] | const productionGzipExtensions = ['js', 'css'] | ||||