| src/main/webapp/static/js/basMap/basMap.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/webapp/static/js/basMap/basMap.js
@@ -62,17 +62,26 @@ }); // 渲染 var loadIndex; upload.render({ elem: '.demo-class-accept', // 绑定多个元素 url: baseUrl + "/basMap/crn/upload", // 此处配置你自己的上传接口即可 accept: 'file', // 普通文件 before: function (obj) { loadIndex = layer.load(2); }, done: function (res) { layer.close(loadIndex); if (res.code == 200) { layer.msg('导入成功'); tableReload() }else { layer.msg(res.msg, {icon: 2}) } }, error: function () { layer.close(loadIndex); layer.msg('上传失败', {icon: 2}); } });