Browse Source

事件导出

wangqin
zhoule 8 months ago
parent
commit
f99c9a6887
  1. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

@ -238,7 +238,13 @@ export default {
background: "#00000052",
text: "文件正在下载...",
});
request.post(url, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, responseType: 'blob' })
// request.post(url, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, responseType: 'blob' })
request({
url: url,//
method: "post",
data: { ...this.searchData, warningState: 1 },
responseType: 'blob'
})
.then((res) => {
console.log(res);
const url = window.URL.createObjectURL(new Blob([res]));

Loading…
Cancel
Save