Commit 0ad17b7f by 夏超

[fix] 玖姿项目导出数据

parent 0f6a80d2
...@@ -191,7 +191,6 @@ ...@@ -191,7 +191,6 @@
}, },
// 列表 时间过滤 // 列表 时间过滤
datePickerChange(e) { datePickerChange(e) {
console.log(e);
if (!e) { if (!e) {
this.datePickerValue = ['', ''] this.datePickerValue = ['', '']
} }
...@@ -204,7 +203,7 @@ ...@@ -204,7 +203,7 @@
}, },
// 获取列表数据 // 获取列表数据
getDataList() { getDataList() {
// this.loading = true; this.loading = true;
let parameter = { let parameter = {
limit: 10, //每页数量 非必填 limit: 10, //每页数量 非必填
page: this.currentPageNo, //当前页码 page: this.currentPageNo, //当前页码
...@@ -230,7 +229,7 @@ ...@@ -230,7 +229,7 @@
}); });
} }
this.loading = false; this.loading = false;
}).catch(err=>{ }).catch(err => {
console.log(err); console.log(err);
this.$message({ this.$message({
type: "error", type: "error",
...@@ -276,6 +275,9 @@ ...@@ -276,6 +275,9 @@
this.loading = true; this.loading = true;
let formData = new FormData(); let formData = new FormData();
let _config = { responseType: 'blob' } let _config = { responseType: 'blob' }
if (!this.datePickerValue) {
this.datePickerValue = ['', '']
}
formData.append("start_date", this.datePickerValue[0]); formData.append("start_date", this.datePickerValue[0]);
formData.append("end_date", this.datePickerValue[1]); formData.append("end_date", this.datePickerValue[1]);
formData.append("type_str", this.select_value); 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