fix:修改 asset chart样式错乱的问题 以及 asset chart 导出 参数错乱的问题

This commit is contained in:
zhangyu
2021-05-18 10:12:47 +08:00
parent 5052aeb853
commit 74ee237ab0
2 changed files with 9 additions and 5 deletions

View File

@@ -248,7 +248,7 @@ export default {
return jsonData.map(v => filterVal.map(j => v[j]))
},
exportCur () {
const params = Object.assign({}, this.params)
const params = JSON.parse(JSON.stringify(this.params))
if (this.exportUrl.indexOf('panel') > -1) {
params.pageSize = -1
delete params.start_time
@@ -284,6 +284,10 @@ export default {
if (this.paramsType) {
params.type = this.paramsType
}
if (params.from == 'asset') {
delete params.type
delete params.from
}
axios.get(url, { responseType: 'blob', params: params }).then(res => {
if (window.navigator.msSaveOrOpenBlob) {
// 兼容ie11