From 69c2a492025f43cf1b94f118a39985ad87664c24 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期六, 10 一月 2026 13:21:02 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/basMap/basMap.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/basMap/basMap.js b/src/main/webapp/static/js/basMap/basMap.js
index 5967189..4843fed 100644
--- a/src/main/webapp/static/js/basMap/basMap.js
+++ b/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});
         }
     });
 

--
Gitblit v1.9.1