模板导出成功

This commit is contained in:
qianhao.xu
2024-01-20 14:37:32 +08:00
parent 7af284924d
commit 9b6e30f9a8
16 changed files with 963 additions and 17 deletions

View File

@@ -64,7 +64,8 @@ namespace ZR.Admin.WebApi.Controllers
var stream = Io.File.OpenRead(path); //创建文件流
Response.Headers.Add("Access-Control-Expose-Headers", "Content-Disposition");
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", HttpUtility.UrlEncode(fileName));
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", HttpUtility.UrlEncode(fileName));
// return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fileName);
}
#region