|
@@ -309,10 +309,16 @@ export default {
|
|
|
type: "warning"
|
|
|
}).then(async () => {
|
|
|
try {
|
|
|
- let obj = {
|
|
|
+ const { citys, ...more } = this.searchForm
|
|
|
+ const obj = {
|
|
|
tempDirectorTrainingCampId: this.$route.query.id,
|
|
|
- ...this.searchForm
|
|
|
- };
|
|
|
+ ...more
|
|
|
+ }
|
|
|
+ if(citys && citys.length > 0) {
|
|
|
+ obj.provinceCode = citys[0]
|
|
|
+ obj.cityCode = citys[1]
|
|
|
+ obj.regionCode = citys[2]
|
|
|
+ }
|
|
|
const { data } = await api_tempDirectorTrainingDetailCampExport(obj)
|
|
|
let link = document.createElement("a");
|
|
|
let fname = data.fileName || "导出文件.xls"; //下载文件的名字
|