Commit 14bb5bf431ccc670d61d841bc803ed1e240e1b7f
1 parent
5d26824e
导出文件 年月日时分秒 命名
Showing
1 changed file
with
1 additions
and
1 deletions
web/WebMvc/wwwroot/js/system.js
... | ... | @@ -1142,7 +1142,7 @@ layui.define(importFileName, function (exports) { |
1142 | 1142 | var resultDatas = [], //第一行是列头,第2行是列对应的数据 |
1143 | 1143 | dataKey = ["head", "body", "footer"], |
1144 | 1144 | curMenu = JSON.parse(sessionStorage.getItem("curmenu")), |
1145 | - newTime = new Date().format("yyyymmddhhMMss"), | |
1145 | + newTime = new Date().format("yyyy-MM-dd hh-mm-ss"), | |
1146 | 1146 | fileName = curMenu == null ? newTime : curMenu.title + newTime; |
1147 | 1147 | if (typeof parameter.excelCols == "undefined" || parameter.excelCols == null) { |
1148 | 1148 | layer.alert("导出配置参数exportOptions【excelCols】必须是head,body,footer,请核实配置参数!", { icon: i.config.iconoError, shadeClose: true, title: i.config.errorTitle }); |
... | ... |