|
|
@@ -215,10 +215,16 @@ export default {
|
|
|
* 还原默认
|
|
|
*/
|
|
|
restoreDefault () {
|
|
|
- this.password.newPassword = '123456'
|
|
|
- this.password.repeatPassword = '123456'
|
|
|
- this.restoreDefaultPassW = 'restoreDefault'
|
|
|
- this.saveData()
|
|
|
+ this.$confirm(`将重置用户密码为【123456】,是否确认操作?`, '提示', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.password.newPassword = '123456'
|
|
|
+ this.password.repeatPassword = '123456'
|
|
|
+ this.restoreDefaultPassW = 'restoreDefault'
|
|
|
+ this.saveData()
|
|
|
+ }).catch(() => {})
|
|
|
},
|
|
|
// 关闭当前窗口
|
|
|
closeDialog () {
|