|
|
@@ -433,20 +433,25 @@ export default {
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- const queryParams = this.queryParams;
|
|
|
+ const params = { ...this.queryParams };
|
|
|
+ // 处理日期范围
|
|
|
+ if (this.dateRange && this.dateRange.length === 2) {
|
|
|
+ params.createTimeBegin = this.dateRange[0];
|
|
|
+ params.createTimeEnd = this.dateRange[1];
|
|
|
+ }
|
|
|
this.$confirm('是否确认导出所有售后记录数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
this.exportLoading = true;
|
|
|
- return exportLiveAfterSales(queryParams);
|
|
|
+ return exportLiveAfterSales(params);
|
|
|
}).then(response => {
|
|
|
this.download(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
}).catch(() => {
|
|
|
- this.exportLoading = false;
|
|
|
- });
|
|
|
+ this.exportLoading = false;
|
|
|
+ });
|
|
|
},
|
|
|
getTreeselect() {
|
|
|
var param={companyId:this.companyId}
|