Commit 38ef2b3a by jack

1111

1 parent 856727e9
...@@ -179,10 +179,16 @@ export default { ...@@ -179,10 +179,16 @@ export default {
}); });
}, },
btnClick(type, scope) { btnClick(type, scope) {
let oParams = deepClone(this.searchDataForm);
if (oParams.date && oParams.date.length > 0) {
oParams.year = oParams.date.split("-")[0];
oParams.month = oParams.date.split("-")[0];
delete oParams.date;
}
this.$Common.exportExcel({ this.$Common.exportExcel({
url: `${store.state.baseURL}${REPORT_API.REPORT_EXPORT}`, url: `${store.state.baseURL}${REPORT_API.REPORT_EXPORT}`,
method: "GET", method: "GET",
data: this.searchDataForm, data: oParams,
fileName: "有效试驾统计报表", fileName: "有效试驾统计报表",
}); });
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!