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