From 7c2a11eaab53fc325a7882fac15b1a4ccdfb4621 Mon Sep 17 00:00:00 2001 From: lyd <1419499670@qq.com> Date: Mon, 21 Nov 2022 09:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=AF=86=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mes/qd/src/views/system/user/index.vue | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/mes/qd/src/views/system/user/index.vue b/mes/qd/src/views/system/user/index.vue index a2765b5d..76636a29 100644 --- a/mes/qd/src/views/system/user/index.vue +++ b/mes/qd/src/views/system/user/index.vue @@ -516,26 +516,10 @@ export default { return row.id !== this.user.id }, resetPassword(row) { - row.password = null - this.$prompt('', '重置密码', { - confirmButtonText: '确定', - cancelButtonText: '取消', - inputPlaceholder: '请输入新的密码', - inputPattern: /^[A-Z|a-z|0-9|(._~!@#$^&*)]{6,20}$/, - inputErrorMessage: '密码格式不正确,只能是6-20位密码', - closeOnClickModal: false - }).then(({ value }) => { - row.password = value - crudUser.edit(row).then(res => { - console.log(res) - this.crud.toQuery() - this.crud.notify('密码重置成功', CRUD.NOTIFICATION_TYPE.SUCCESS) - }) - }).catch(() => { - this.$message({ - type: 'info', - message: '取消输入' - }) + row.password = '123456' + crudUser.edit(row).then(res => { + this.crud.toQuery() + this.crud.notify('密码重置成功,密码:123456', CRUD.NOTIFICATION_TYPE.SUCCESS) }) } }