|
@@ -314,7 +314,7 @@ export default {
|
|
//下载文件
|
|
//下载文件
|
|
async handleDownFile(url, fileName) {
|
|
async handleDownFile(url, fileName) {
|
|
this.showTotip = true;
|
|
this.showTotip = true;
|
|
- const execlUrl = process.env.VUE_APP_BASE_API + "/excel/" + url;
|
|
|
|
|
|
+ const execlUrl ="/excel/" + url;
|
|
const fileDownName = fileName + "_" + new Date().getTime();
|
|
const fileDownName = fileName + "_" + new Date().getTime();
|
|
console.log(execlUrl, fileDownName);
|
|
console.log(execlUrl, fileDownName);
|
|
const resUrl = await this.RecordFile(execlUrl, fileDownName);
|
|
const resUrl = await this.RecordFile(execlUrl, fileDownName);
|
|
@@ -327,13 +327,6 @@ export default {
|
|
data,
|
|
data,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //删除数据导出列表
|
|
|
|
- deleteExportData(id) {
|
|
|
|
- return request({
|
|
|
|
- url: `/export/delete/${id}`,
|
|
|
|
- method: "post",
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
RecordFile(Fileurl, fileName) {
|
|
RecordFile(Fileurl, fileName) {
|
|
//接口方法
|
|
//接口方法
|
|
return request({
|
|
return request({
|
|
@@ -371,6 +364,13 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //删除数据导出列表
|
|
|
|
+ deleteExportData(id) {
|
|
|
|
+ return request({
|
|
|
|
+ url: `/export/delete/${id}`,
|
|
|
|
+ method: "post",
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|