优化一些小细节

This commit is contained in:
RuoYi
2021-08-31 18:38:21 +08:00
parent 50d200d5c8
commit 1878b10daa
10 changed files with 16 additions and 36 deletions

View File

@ -388,8 +388,7 @@ var table = {
},
// 下载模板
importTemplate: function() {
table.set();
$.get(table.options.importTemplateUrl, function(result) {
$.get(activeWindow().table.options.importTemplateUrl, function(result) {
if (result.code == web_status.SUCCESS) {
window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true;
} else if (result.code == web_status.WARNING) {