Merge branch '4.7.0' of https://gitee.com/mingSoft/MCMS.git into 4.7.0
commit
777ef491b5
4 changed files with 99 additions and 8 deletions
@ -0,0 +1,30 @@ |
|||||||
|
<!-- 退出系统 --> |
||||||
|
<div id="exit-system" class="exit-system"> |
||||||
|
<el-dialog title="退出提示" :visible.sync="isShow"> |
||||||
|
确认退出 |
||||||
|
<div slot="footer" class="dialog-footer"> |
||||||
|
<el-button @click="isShow = false">取 消</el-button> |
||||||
|
<el-button type="primary" @click="loginOut">确认退出</el-button> |
||||||
|
</div> |
||||||
|
</el-dialog> |
||||||
|
</div> |
||||||
|
<script> |
||||||
|
var exitSystemVue = new Vue({ |
||||||
|
el: '#exit-system', |
||||||
|
data: { |
||||||
|
isShow: false, // 模态框的显示 |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
loginOut: function () { |
||||||
|
var that = this; |
||||||
|
ms.http.get(ms.manager + "/loginOut.do") |
||||||
|
.then((data) => { |
||||||
|
isShow = false; |
||||||
|
location.href = ms.manager + "/login.do"; |
||||||
|
}, (err) => { |
||||||
|
that.$message.error(data.resultMsg); |
||||||
|
}) |
||||||
|
} |
||||||
|
} |
||||||
|
}) |
||||||
|
</script> |
||||||
@ -0,0 +1,40 @@ |
|||||||
|
<!-- 修改密码 --> |
||||||
|
<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> |
||||||
Loading…
Reference in new issue