forked from mirror/MrDoc
修复后台管理用户管理无法搜索用户的问题
This commit is contained in:
parent
8045394eb7
commit
7d0c9e78f3
@ -6,6 +6,7 @@
|
||||
- [新增]站点搜索中文档搜索支持「全文搜索」和「匹配搜索」功能和切换开关;
|
||||
- [修复]vditor编辑器粘贴多图片文本时图片只有一张图的问题;
|
||||
- [修复]找回密码邮件发送失败的问题;
|
||||
- [修复]后台管理用户管理用户无法搜索的问题;
|
||||
- [优化]个人中心我协作的文集页面及功能;
|
||||
- [优化]后台邮件服务器配置逻辑和页面展示;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" id="username" required lay-verify="required" placeholder="输入用户名" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<button class="pear-btn pear-btn-sm" onclick="getUserInfo()"><i class="layui-icon layui-icon-search"></i>搜索</button>
|
||||
<button class="pear-btn pear-btn-sm" id="search"><i class="layui-icon layui-icon-search"></i>搜索</button>
|
||||
<button class="pear-btn pear-btn-primary pear-btn-sm" onclick="createUser()" type="button"><i class="layui-icon layui-icon-addition"></i>新增用户</button>
|
||||
<button class="pear-btn pear-btn-primary pear-btn-sm" onclick="createSuperUser()" type="button"><i class="layui-icon layui-icon-addition"></i>添加管理员</button>
|
||||
</div>
|
||||
@ -242,6 +242,14 @@
|
||||
},
|
||||
});
|
||||
};
|
||||
// 监听搜索按钮
|
||||
$("#search").click(function(){
|
||||
table.reload('user-list',{
|
||||
where:{
|
||||
'username':$("input[name=username]").val(),
|
||||
},
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user