Authored by 鲁尚清

【无】重置密码弹框高度调小,文本框垂直居中

@@ -868,14 +868,15 @@ layui.define(['table', 'form', 'admin', 'layer', 'upload', 'common', 'sessions', @@ -868,14 +868,15 @@ layui.define(['table', 'form', 'admin', 'layer', 'upload', 'common', 'sessions',
868 //重置密码 868 //重置密码
869 function resetPassword(id, username) { 869 function resetPassword(id, username) {
870 //根据王凤要求,调整重置密码,不弹窗,直接后台设置为123456 870 //根据王凤要求,调整重置密码,不弹窗,直接后台设置为123456
  871 + //lsq 弹框高度调小,文本框垂直居中 2022-08-27
871 layer.open({ 872 layer.open({
872 title: "重置密码", 873 title: "重置密码",
873 - content: '<div>' + 874 + content: '<div style="height:100%;display: flex;align-items: center;justify-content: space-between;">' +
874 '<input id="userReSetPwd" style="float:left;width:80%;line-height:38px" type="password" placeholder="' + patternTips.replace('密码格式为:', '') + '">' + 875 '<input id="userReSetPwd" style="float:left;width:80%;line-height:38px" type="password" placeholder="' + patternTips.replace('密码格式为:', '') + '">' +
875 '<button style="float:right;height:40px;width: 15%;line-height:40px;background-color: #1e9fff;" class="layui-btn layui-btn-sm layui-btn-normal showPwd" >显示密码</button>' + 876 '<button style="float:right;height:40px;width: 15%;line-height:40px;background-color: #1e9fff;" class="layui-btn layui-btn-sm layui-btn-normal showPwd" >显示密码</button>' +
876 '</div>' + 877 '</div>' +
877 '<span class="deptTips" style="color: red"></span>', 878 '<span class="deptTips" style="color: red"></span>',
878 - area: ['30%', '350px'], 879 + area: ['30%', '220px'],
879 btns: ['确认', '取消'], 880 btns: ['确认', '取消'],
880 success: function (index) { 881 success: function (index) {
881 $('.showPwd').unbind().on('click', function () { 882 $('.showPwd').unbind().on('click', function () {