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); + }) } } })