You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
|
7 years ago
|
<!-- 修改密码 -->
|
||
|
|
<div id="reset-password" class="reset-password">
|
||
|
|
<el-dialog title="修改密码" :visible.sync="isShow">
|
||
|
|
<el-form :model="resetPasswordForm" label-width='80px'>
|
||
|
|
<el-form-item label="账号">
|
||
|
|
<el-input v-model="resetPasswordForm.managerName" autocomplete="off" readonly disabled></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
<el-form-item label="旧密码">
|
||
|
|
<el-input v-model="resetPasswordForm.oldManagerPassword" autocomplete="off"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
<el-form-item label="新密码">
|
||
|
|
<el-input v-model="resetPasswordForm.newManagerPassword" autocomplete="off"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
</el-form>
|
||
|
|
<div slot="footer" class="dialog-footer">
|
||
|
|
<el-button @click="isShow = false">取 消</el-button>
|
||
|
|
<el-button type="primary" @click="update">更新密码</el-button>
|
||
|
|
</div>
|
||
|
|
</el-dialog>
|
||
|
|
</div>
|
||
|
|
<script>
|
||
|
|
var resetPasswordVue = new Vue({
|
||
|
|
el: '#reset-password',
|
||
|
|
data: {
|
||
|
|
// 模态框的显示
|
||
|
|
isShow: false,
|
||
|
|
resetPasswordForm: {
|
||
|
|
managerName: '',
|
||
|
|
oldManagerPassword: '',
|
||
|
|
newManagerPassword: "",
|
||
|
|
}
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
// 更新密码
|
||
|
|
update: function () {
|
||
|
|
isShow = false
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|