Commit 14b4eefd authored by ms-dev's avatar ms-dev

Merge branch '4.7.0' of https://gitee.com/tianbinjie/MCMS into 4.7.0

# Conflicts:
#	src/main/webapp/WEB-INF/manager/login.ftl
parents 42fb675a fa9020e2
This diff is collapsed.
This diff is collapsed.
<!-- 修改密码 --> <!-- 修改密码 -->
<div id="reset-password" class="reset-password"> <div id="reset-password" class="reset-password">
<el-dialog title="修改密码" :visible.sync="isShow"> <el-dialog title="修改密码" :visible.sync="isShow">
<el-form :model="resetPasswordForm" label-width='80px'> <el-form :model="resetPasswordForm" label-width='80px'>
<el-form-item label="账号"> <el-form-item label="账号">
<el-input v-model="resetPasswordForm.managerName" autocomplete="off" readonly disabled></el-input> <el-input v-model="resetPasswordForm.managerName" autocomplete="off" readonly disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="旧密码"> <el-form-item label="旧密码">
<el-input v-model="resetPasswordForm.oldManagerPassword" autocomplete="off"></el-input> <el-input v-model="resetPasswordForm.oldManagerPassword" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="新密码"> <el-form-item label="新密码">
<el-input v-model="resetPasswordForm.newManagerPassword" autocomplete="off"></el-input> <el-input v-model="resetPasswordForm.newManagerPassword" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="isShow = false">取 消</el-button> <el-button @click="isShow = false">取 消</el-button>
<el-button type="primary" @click="update">更新密码</el-button> <el-button type="primary" @click="updatePassword">更新密码</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
<script> <script>
var resetPasswordVue = new Vue({ var resetPasswordVue = new Vue({
el: '#reset-password', el: '#reset-password',
data: { data: {
// 模态框的显示 // 模态框的显示
isShow: false, isShow: false,
resetPasswordForm: { resetPasswordForm: {
managerName: '', managerName: '',
oldManagerPassword: '', oldManagerPassword: '',
newManagerPassword: "", newManagerPassword: '',
} }
}, },
methods: { methods: {
// 更新密码 // 更新密码
update: function () { updatePassword: function () {
isShow = false 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);
})
}
}
})
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment