From 8418eb2979096d4a92c964669593e41415293705 Mon Sep 17 00:00:00 2001 From: wujj <1027418825@qq.com> Date: Tue, 6 Apr 2021 10:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/manager/cms/category/form.ftl | 6 ++++-- .../WEB-INF/manager/cms/content/form.ftl | 6 ++++-- .../WEB-INF/manager/cms/generate/index.ftl | 19 ++++++++++++------- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index 14e0af67..58164266 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -589,7 +589,8 @@ }); }else { this.$notify({ - title: response.msg, + title: '失败', + message: response.msg, type: 'warning' }); } @@ -598,7 +599,8 @@ //上传超过限制 categoryImghandleExceed: function (files, fileList) { this.$notify({ - title: '当前最多上传1个文件', + title: '失败', + message: '当前最多上传1个文件', type: 'warning' }); }, diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl index d53b962e..6e6a16e5 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -595,7 +595,8 @@ }); }else { this.$notify({ - title: response.msg, + title: '失败', + message: response.msg, type: 'warning' }); } @@ -614,7 +615,8 @@ //上传超过限制 contentImghandleExceed: function (files, fileList) { this.$notify({ - title: '当前最多上传1个文件', + title: '失败', + message: '当前最多上传1个文件', type: 'warning' }); }, diff --git a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl index 333eec4b..d1829973 100644 --- a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl @@ -166,7 +166,8 @@ var that = this; if (!that.position || that.position == '') { this.$notify({ - title: '请输入主页位置!', + title: '失败', + message: '请输入主页位置!', type: 'warning' }); return; @@ -178,13 +179,14 @@ }).then(function (data) { if (data.result) { that.$notify({ - title: '更新成功!', + title: '成功', + message: '更新成功!', type: 'success' }); } else { that.$notify({ - title: '更新失败!', - message: "错误", + title: '失败', + message: "更新失败!", type: 'error' }); } @@ -203,7 +205,8 @@ viewIndex: function () { if (!this.position || this.position == '') { this.$notify({ - title: '请输入主页位置!', + title: '失败', + message: '请输入主页位置!', type: 'warning' }); return; @@ -217,7 +220,8 @@ ms.http.get(ms.manager + '/cms/generate/' + (that.section ? that.section : 0) + '/genernateColumn.do').then(function (data) { if (data.result) { that.$notify({ - title: '更新成功!', + title: '成功', + message: '更新成功!', type: 'success' }); }else { @@ -247,7 +251,8 @@ }).then(function (data) { if (data.result) { that.$notify({ - title: '更新成功!', + title: '成功', + message:'更新成功!', type: 'success' }); }else {