From 32ea147e3820cf95390368eb508bc0374f005e60 Mon Sep 17 00:00:00 2001 From: ssyang1993 <1017795527@qq.com> Date: Wed, 16 Jun 2021 18:22:07 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=95=86=E6=88=B7=E7=B3=BB=E7=BB=9F=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=93=8D=E4=BD=9C=E5=91=98=EF=BC=8C=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E8=B6=85=E7=BA=A7=E7=AE=A1=E7=90=86=E5=91=98=E9=80=89?= =?UTF-8?q?=E9=A1=B9=EF=BC=8C=20=E6=8A=BD=E5=B1=89=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=A4=E5=88=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/sysuser/AddOrEdit.vue | 13 +- .../src/views/sysuser/AddOrEdit.vue | 148 ++++++++++-------- 2 files changed, 95 insertions(+), 66 deletions(-) diff --git a/jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue b/jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue index d8d67ea..fa472d0 100644 --- a/jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue +++ b/jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue @@ -205,12 +205,14 @@ export default { that.$message.success('修改成功') that.isShow = false that.callbackFunc() // 刷新列表 - that.resetIsShow = false // 取消展示 - that.sysPassword.resetPass = false + this.resetIsShow = false // 取消重置密码板块展示 + this.sysPassword.resetPass = false // 是否使用默认密码不展示 + this.sysPassword.defaultPass = true // 是否使用默认密码默认为true }).catch(res => { that.confirmLoading = false - that.resetIsShow = false // 取消展示 - that.sysPassword.resetPass = false + this.resetIsShow = false // 取消重置密码板块展示 + this.sysPassword.resetPass = false // 是否使用默认密码不展示 + this.sysPassword.defaultPass = true // 是否使用默认密码默认为true }) } } @@ -220,7 +222,8 @@ export default { onClose () { this.isShow = false this.resetIsShow = false // 取消重置密码板块展示 - this.sysPassword.resetPass = false + this.sysPassword.resetPass = false // 是否使用默认密码不展示 + this.sysPassword.defaultPass = true // 是否使用默认密码默认为true }, // 使用默认密码重置是否为true isResetPass () { diff --git a/jeepay-ui-merchant/src/views/sysuser/AddOrEdit.vue b/jeepay-ui-merchant/src/views/sysuser/AddOrEdit.vue index 4022218..50209ec 100644 --- a/jeepay-ui-merchant/src/views/sysuser/AddOrEdit.vue +++ b/jeepay-ui-merchant/src/views/sysuser/AddOrEdit.vue @@ -13,77 +13,94 @@ + :rules="rules" + style="padding-bottom:50px" + layout="vertical" + > + + + + + + - - - + + + + + - - - + + + + + - - - + + + + + - - - - - - - - - - - - - - - - - - - - - 启用 - 停用 - - + + + + + + + + + + + + 启用 + 停用 + + + + 账户安全 - - - -
- - - -
- -
- - +
+ + + + 重置密码: - - - + + + + 恢复默认密码: -
+ + +
+ +
+
+ + + + + + + + + + + +
@@ -93,7 +110,6 @@
- @@ -186,7 +202,6 @@ this.isAdd = !recordId // 数据恢复为默认数据 this.saveObject = { - isAdmin: 1, state: 1, sex: 1 } @@ -238,10 +253,14 @@ that.callbackFunc() // 刷新列表 that.resetIsShow = false // 取消展示 that.sysPassword.resetPass = false + that.sysPassword.defaultPass = true // 是否使用默认密码默认为true + that.resetPassEmpty(that) // 清空密码 }).catch(res => { that.confirmLoading = false that.resetIsShow = false // 取消展示 that.sysPassword.resetPass = false + that.sysPassword.defaultPass = true // 是否使用默认密码默认为true + that.resetPassEmpty(that) // 清空密码 }) } } @@ -251,7 +270,9 @@ onClose () { this.isShow = false this.resetIsShow = false // 取消重置密码板块展示 - this.sysPassword.resetPass = false + this.resetPassEmpty(this) // 清空密码 + this.sysPassword.resetPass = false // 关闭密码输入 + this.sysPassword.defaultPass = true // 是否使用默认密码默认为true }, // 使用默认密码重置是否为true isResetPass () { @@ -259,6 +280,11 @@ this.sysPassword.newPwd = '' this.sysPassword.confirmPwd = '' } + }, + // 保存后清空密码 + resetPassEmpty (that) { + that.sysPassword.newPwd = '' + that.sysPassword.confirmPwd = '' } } } -- GitLab