From 5117e94de4873aa4c2a725f74a43613124e56317 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 07 十一月 2023 15:54:19 +0800
Subject: [PATCH] #

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

diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js
index ccc691d..cbc6d4b 100644
--- a/src/main/webapp/static/js/plan/plan.js
+++ b/src/main/webapp/static/js/plan/plan.js
@@ -246,7 +246,7 @@
         var tr = $(['<tr id="upload-">'
             ,'<td id="upload-filename-id-'+ file.lastModified + '">' + file.name +'</td>'
             ,'<td>'+ (file.size/1014).toFixed(1) +'kb</td>'
-            ,'<td id="upload-file-id-' + file.lastModified + '">涓婁紶涓�</td>'
+            ,'<td id="upload-file-id-' + file.lastModified + '">鍑嗗涓婁紶</td>'
             ,'<td>'
             ,'<button class="layui-btn layui-btn-xs demo-reload layui-hide">閲嶄紶</button>'
             ,'<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>'
@@ -272,10 +272,17 @@
             return false;
         }
 
+        var index = layer.load(1, {
+            shadeClose: false,
+            title: '涓婁紶涓�..',
+            shade: [0.5,'#000']
+        });
+
         var file = _uploadFile
 
         var filename = dateToStr2(new Date()) + "_" + file.name
         $("#upload-filename-id-" + file.lastModified).html(filename)
+        $("#upload-file-id-" + file.lastModified).html("涓婁紶涓�")
 
         putObject(file, filename).then((result) => {
             layer.msg('涓婁紶鎴愬姛', {icon: 1});
@@ -292,6 +299,7 @@
                 method: 'POST',
                 success: function (res) {
                     if (res.code === 200){
+                        layer.close(index)
                         console.log(res)
                     } else if (res.code === 403){
                         top.location.href = baseUrl+"/";

--
Gitblit v1.9.1