增加用户职位搜索

master
zengwh 4 years ago
parent 239e02e35c
commit 912e84596b

@ -112,10 +112,10 @@
<label for="searchName">姓名:</label> <label for="searchName">姓名:</label>
<input type="text" class="form-control input-sm" id="searchName" maxlength="16"/> <input type="text" class="form-control input-sm" id="searchName" maxlength="16"/>
</div> </div>
<%-- <div class="form-group"> <div class="form-group">
<label for="user_email">邮箱地址:</label> <label for="user_position">用户职位:</label>
<input type="text" class="form-control input-sm" id="user_email" maxlength="25"/> <input type="text" class="form-control input-sm" id="user_position" maxlength="25"/>
</div>--%> </div>
<div class="form-group"> <div class="form-group">
<label>所属角色:</label> <label>所属角色:</label>
<div class=" form-group form-inline"> <div class=" form-group form-inline">
@ -302,7 +302,7 @@
</script> </script>
<script src="${path}/static/zTree_v3-master/js/jquery.ztree.core.js"></script> <script src="${path}/static/zTree_v3-master/js/jquery.ztree.core.js"></script>
<script src="${path}/static/zTree_v3-master/js/jquery.ztree.excheck.js"></script> <script src="${path}/static/zTree_v3-master/js/jquery.ztree.excheck.js"></script>
<script src="${path}/static/js/user.js?t=2021-08-20"></script> <script src="${path}/static/js/user.js?t=2021-11-04"></script>
<%@ include file="/WEB-INF/jspf/importExcelJsp.jspf" %> <%@ include file="/WEB-INF/jspf/importExcelJsp.jspf" %>
</body> </body>
</html> </html>

@ -25,7 +25,7 @@ var form = '';
offset : params.offset, // SQL语句起始索引 offset : params.offset, // SQL语句起始索引
page : (params.offset / params.limit) + 1, //当前页码 page : (params.offset / params.limit) + 1, //当前页码
userName:$("#user_name").val(), userName:$("#user_name").val(),
userEmail:$("#user_email").val(), userPosition:$("#user_position").val(),
name:$("#searchName").val(), name:$("#searchName").val(),
searchRoleId:$("#roleId").val(), searchRoleId:$("#roleId").val(),
deptId : $("#dept_id option:selected").val(), deptId : $("#dept_id option:selected").val(),
@ -77,10 +77,10 @@ var form = '';
title:'移动电话', title:'移动电话',
field:'userTel', field:'userTel',
}, },
{ /*{
title:'邮箱地址', title:'邮箱地址',
field:'userEmail', field:'userEmail',
}, },*/
{ {
title:'用户职位', title:'用户职位',
field:'userPosition', field:'userPosition',
@ -388,7 +388,6 @@ function clearForm(){
} }
//提交更改 //提交更改
$('#btn_submit').click(function () { $('#btn_submit').click(function () {
debugger
var reUserTel = $("#re_userTel").val(); var reUserTel = $("#re_userTel").val();
if(reUserTel != ''){ if(reUserTel != ''){
if(!reUserTel.match(/^1[34578]\d{9}$/)){ if(!reUserTel.match(/^1[34578]\d{9}$/)){
@ -533,7 +532,7 @@ function exportExcel(){
message: "没有选中,您确定要按搜索栏条件导出?", message: "没有选中,您确定要按搜索栏条件导出?",
operate: function (reselt) { operate: function (reselt) {
if (reselt) { if (reselt) {
var url = path+"/user/export?userName="+$("#user_name").val()+"&searchRoleId="+$("#roleId").val()+"&deptId="+$("#dept_id").val()+"&effective="+$("#effective").val()+"&name="+$("#searchName").val(); var url = path+"/user/export?userName="+$("#user_name").val()+"&searchRoleId="+$("#roleId").val()+"&deptId="+$("#dept_id").val()+"&effective="+$("#effective").val()+"&name="+$("#searchName").val()+"&userPosition="+$("#user_position").val();
window.location.href = url; window.location.href = url;
} }
} }

@ -323,6 +323,9 @@
<if test="userEmail!=null and userEmail!=''"> <if test="userEmail!=null and userEmail!=''">
and power_user.user_email LIKE '%${userEmail}%' and power_user.user_email LIKE '%${userEmail}%'
</if> </if>
<if test="userPosition!=null and userPosition!=''">
and power_user.user_position LIKE '%${userPosition}%'
</if>
<if test="effective!=null"> <if test="effective!=null">
and power_user.effective=${effective} and power_user.effective=${effective}
</if> </if>
@ -378,6 +381,9 @@
<if test="userEmail!=null and userEmail!=''"> <if test="userEmail!=null and userEmail!=''">
and power_user.user_email LIKE '%${userEmail}%' and power_user.user_email LIKE '%${userEmail}%'
</if> </if>
<if test="userPosition!=null and userPosition!=''">
and power_user.user_position LIKE '%${userPosition}%'
</if>
<if test="effective!=null"> <if test="effective!=null">
and power_user.effective=${effective} and power_user.effective=${effective}
</if> </if>

Loading…
Cancel
Save