|
@@ -1338,7 +1338,6 @@
|
|
|
|
|
|
//导出操作记录
|
|
|
exportRecords(){
|
|
|
- console.log(this.recordTime)
|
|
|
if(this.recordTime[0] == null || this.recordTime[1] == null){
|
|
|
this.$message({
|
|
|
message: "未输入时间",
|
|
@@ -1353,7 +1352,13 @@
|
|
|
},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
- console.log("进行下载,我文件呢???")
|
|
|
+ let aTag = document.createElement('a');
|
|
|
+ let blob = new Blob([res.data]);
|
|
|
+ var arr = res.data.split("/");
|
|
|
+ aTag.download = arr.pop();
|
|
|
+ aTag.href = URL.createObjectURL(blob);
|
|
|
+ aTag.click();
|
|
|
+ URL.revokeObjectURL(blob);
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|