diff --git a/src/main/resources/download/杆塔管理-2000国家大地坐标系导入模版.xlsx b/src/main/resources/download/杆塔管理-2000国家大地坐标系导入模版.xlsx index 60bcf56..b820969 100644 Binary files a/src/main/resources/download/杆塔管理-2000国家大地坐标系导入模版.xlsx and b/src/main/resources/download/杆塔管理-2000国家大地坐标系导入模版.xlsx differ diff --git a/src/main/resources/download/杆塔管理-WGS-84地心坐标系导入模版.xlsx b/src/main/resources/download/杆塔管理-WGS-84地心坐标系导入模版.xlsx index 2348e14..23520ee 100644 Binary files a/src/main/resources/download/杆塔管理-WGS-84地心坐标系导入模版.xlsx and b/src/main/resources/download/杆塔管理-WGS-84地心坐标系导入模版.xlsx differ diff --git a/src/main/resources/static/js/basic/lineManagement/child/importTower.js b/src/main/resources/static/js/basic/lineManagement/child/importTower.js index a9917db..2d491cb 100644 --- a/src/main/resources/static/js/basic/lineManagement/child/importTower.js +++ b/src/main/resources/static/js/basic/lineManagement/child/importTower.js @@ -3,6 +3,17 @@ let arr = ['background', 'web', 'mobile', 'wx']; let background, web, mobile, wx; let selectedFile = null; // 用于存储选中的文件 +// 重置文件选择状态 +function resetFileSelection() { + selectedFile = null; + // 重置WGS-84 + $('#wgs84FileName').text(''); + $('#wgs84FileBox').hide(); + // 重置2000 + $('#2000FileName').text(''); + $('#2000FileBox').hide(); +} + function setParams(params) { console.log(params) idParam = JSON.parse(params).id; @@ -28,6 +39,9 @@ function setParams(params) { }); document.getElementById(system + '-template').classList.add('active'); document.getElementById(system + '-upload').classList.add('active'); + + // 重置文件选择状态 + resetFileSelection(); }); }); @@ -134,14 +148,21 @@ function setParams(params) { layer.close(loadingMsg); if (res.code === 200) { layer.msg(res.data, {icon: 1}); - closePage(1); // 关闭页面并刷新父页面 + setTimeout(function() { + closePage(1); + },3000) + // 关闭页面并刷新父页面 } else { layer.msg(res.data || '上传失败', {icon: 2}); + // 上传失败时重置 + resetFileSelection(); } }, error: function() { layer.close(loadingMsg); layer.msg('上传出错', {icon: 2}); + // 上传错误时重置 + resetFileSelection(); } }); });