From 874b1f028e29ce9bee6397aa81bb8766d197936e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=E5=98=89=E9=98=B3?= Date: Tue, 1 May 2018 14:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=8E=E5=8F=B0=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=B6=88=E6=81=AF=E5=BC=B9=E6=A1=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/resources/static/js/admin.js | 12 ++++++++++++ src/main/resources/templates/home/admin.html | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 151d593..c9149bb 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.fjy spring - V2.9.7 + V2.9.8 jar spring diff --git a/src/main/resources/static/js/admin.js b/src/main/resources/static/js/admin.js index f351bc1..fb1fee7 100644 --- a/src/main/resources/static/js/admin.js +++ b/src/main/resources/static/js/admin.js @@ -77,6 +77,18 @@ var Main = { message: content }); }, + uploadSuccess (response, file, fileList) { + let that = this; + if (file.status==="success"){ + that.openNotiSuccess("成功", file.name+"上传成功!"); + }else{ + that.openNotiError("失败", file.name+"上传失败!"); + } + /* console.log('response', response); + console.log('file',file,fileList); + console.log('fileList',fileList); + console.log("信息"+file.status+"|"+file.name)*/ + }, openSuccess(content) { this.$message({ message: content, diff --git a/src/main/resources/templates/home/admin.html b/src/main/resources/templates/home/admin.html index e3f3a78..712267d 100644 --- a/src/main/resources/templates/home/admin.html +++ b/src/main/resources/templates/home/admin.html @@ -22,6 +22,8 @@ 上传模板文件