From 5f5db5ddcccd858e45bf9e9b92f55646218d4643 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 07 十一月 2023 10:29:59 +0800
Subject: [PATCH] #

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

diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js
index 6fec9e3..9f6eac5 100644
--- a/src/main/webapp/static/js/plan/plan.js
+++ b/src/main/webapp/static/js/plan/plan.js
@@ -273,9 +273,15 @@
             });
         }
         ,done: function(res, index, upload){ //鎴愬姛鐨勫洖璋�
-            element.progress('progress-demo-'+ index, '100%'); //鎵ц杩涘害鏉°�俷 鍗充负杩斿洖鐨勮繘搴︾櫨鍒嗘瘮
-            layer.msg('涓婁紶鎴愬姛', {icon: 1});
-            $("#progress-id-" + index).html("宸插畬鎴�")
+            if (res.code == 200) {
+                element.progress('progress-demo-'+ index, '100%'); //鎵ц杩涘害鏉°�俷 鍗充负杩斿洖鐨勮繘搴︾櫨鍒嗘瘮
+                layer.msg('涓婁紶鎴愬姛', {icon: 1});
+                $("#progress-id-" + index).html("宸插畬鎴�")
+            }else {
+                element.progress('progress-demo-'+ index, '100%'); //鎵ц杩涘害鏉°�俷 鍗充负杩斿洖鐨勮繘搴︾櫨鍒嗘瘮
+                layer.msg('涓婁紶澶辫触', {icon: 2});
+                $("#progress-id-" + index).html("涓婁紶澶辫触")
+            }
             var that = this;
             //if(res.code == 0){ //涓婁紶鎴愬姛
             var tr = that.elemList.find('tr#upload-'+ index)

--
Gitblit v1.9.1