From fa9020e2ab1381a23b2f055d2b1e4e8d82c1ed52 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 28 Jan 2019 16:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/manager/index.ftl | 11 +++++++---- src/main/webapp/WEB-INF/manager/login.ftl | 16 ++++++++-------- .../webapp/WEB-INF/manager/reset-password.ftl | 16 ++++++++++++---- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/WEB-INF/manager/index.ftl b/src/main/webapp/WEB-INF/manager/index.ftl index bffcf4ad..af60e3ce 100644 --- a/src/main/webapp/WEB-INF/manager/index.ftl +++ b/src/main/webapp/WEB-INF/manager/index.ftl @@ -2,12 +2,14 @@ - - + <#include "/include/head-file.ftl"/> + <#include "/reset-password.ftl"/> + <#include "/exit-system.ftl"/> + - + @@ -174,7 +176,7 @@ // 菜单列表 list:function(){ var that = this; - ms.http.get(ms.manager + "/model/list.do") + ms.http.post(ms.manager + "/model/list.do") .then((data)=>{ that.menuList = data.rows }, (err) => { @@ -242,6 +244,7 @@ ms.http.get(ms.manager + "/basic/manager/get.do") .then((data)=>{ that.peopleInfo = data + resetPasswordVue.resetPasswordForm.managerName = that.peopleInfo.managerName }, (err) => { that.$message.error(err); }) diff --git a/src/main/webapp/WEB-INF/manager/login.ftl b/src/main/webapp/WEB-INF/manager/login.ftl index 83af8897..9f08f962 100644 --- a/src/main/webapp/WEB-INF/manager/login.ftl +++ b/src/main/webapp/WEB-INF/manager/login.ftl @@ -3,15 +3,15 @@ - - + <#include "/include/head-file.ftl"/> + - + -
+ @@ -27,13 +27,21 @@ resetPasswordForm: { managerName: '', oldManagerPassword: '', - newManagerPassword: "", + newManagerPassword: '', } }, methods: { // 更新密码 - update: function () { - isShow = false + updatePassword: function () { + var that = this; + ms.http.post(ms.manager + "/updatePassword.do",that.resetPasswordForm) + .then((data)=>{ + that.resetPasswordForm.oldManagerPassword = ''; + that.resetPasswordForm.newManagerPassword = ''; + that.isShow = false; + }, (err) => { + that.$message.error(err); + }) } } })