Commit 0ad17b7f by 夏超

[fix] 玖姿项目导出数据

parent 0f6a80d2
......@@ -191,7 +191,6 @@
},
// 列表 时间过滤
datePickerChange(e) {
console.log(e);
if (!e) {
this.datePickerValue = ['', '']
}
......@@ -204,7 +203,7 @@
},
// 获取列表数据
getDataList() {
// this.loading = true;
this.loading = true;
let parameter = {
limit: 10, //每页数量 非必填
page: this.currentPageNo, //当前页码
......@@ -230,12 +229,12 @@
});
}
this.loading = false;
}).catch(err=>{
}).catch(err => {
console.log(err);
this.$message({
type: "error",
message: "接口报错,获取列表数据失败",
});
type: "error",
message: "接口报错,获取列表数据失败",
});
})
},
// 删除
......@@ -276,6 +275,9 @@
this.loading = true;
let formData = new FormData();
let _config = { responseType: 'blob' }
if (!this.datePickerValue) {
this.datePickerValue = ['', '']
}
formData.append("start_date", this.datePickerValue[0]);
formData.append("end_date", this.datePickerValue[1]);
formData.append("type_str", this.select_value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment