From ae5a5ff4d42c4926c6f305dc729b0c9c240fa7f2 Mon Sep 17 00:00:00 2001 From: wangbing Date: Mon, 6 May 2019 23:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/screen/home.ftl | 62 +++++++++++++++++-- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/src/main/resources/modules/SpringBoot/resources/templates/screen/home.ftl b/src/main/resources/modules/SpringBoot/resources/templates/screen/home.ftl index 28856120..23878e73 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/screen/home.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/screen/home.ftl @@ -539,6 +539,11 @@ + + 消息 + @@ -980,11 +985,60 @@ nav.i("编辑"); }, + showMessage: function () { + setTimeout(function(){ + this.$message('这是一条消息提示'); + }.bind(this),100) + + setTimeout(function(){ + this.$message({ + message: '恭喜你,这是一条成功消息', + type: 'success' + }); + }.bind(this),200) + + setTimeout(function(){ + this.$message({ + message: '警告哦,这是一条警告消息', + type: 'warning' + }); + }.bind(this),300) + + setTimeout(function(){ + + this.$message.error('错了哦,这是一条错误消息'); + }.bind(this),400) + }, showNotify: function () { - this.$notify.info({ - title: '消息', - message: '这是一条消息的提示消息' - }); + setTimeout(function(){ + this.$notify({ + title: '成功', + message: '这是一条消息的提示消息', + type: 'success' + }); + }.bind(this),100) + + setTimeout(function(){ + this.$notify({ + title: '警告', + message: '这是一条警告的提示消息', + type: 'warning' + }); + }.bind(this),200) + + setTimeout(function(){ + this.$notify.info({ + title: '消息', + message: '这是一条消息的提示消息' + }); + }.bind(this),300) + + setTimeout(function(){ + this.$notify.error({ + title: '错误', + message: '这是一条错误的提示消息' + }); + }.bind(this),400) }, showMessageBox: function () { this.$alert('这是一段内容', '标题名称', {