Commit 3c452480 by liuyongshuai

增加修改用户状态时加载条;修改用户查询的一个bug

parent e2209f40
......@@ -557,10 +557,10 @@
<if test="username !=null"> and USERNAME like '%'||#{username}||'%'</if>
<if test="trueName !=null"> and true_name like '%'||#{trueName}||'%'</if>
<if test="identitycard !=null"> and IDENTITYCARD like '%'||#{identitycard}||'%'</if>
<if test="policemanid !=null"> and policemanid =#{policemanid}</if>
<if test="policemanid !=null"> and policemanid like '%'||#{policemanid}||'%'</if>
<if test="unitcode !=null"> and unitcode like '%'||#{unitcode}||'%'</if>
<if test="sex !=null"> and sex = #sex#</if>
<if test="openFlag !=null"> and OPEN_FLAG = #openFlag#</if>
<if test="openFlag !=null"> and OPEN_FLAG =#{openFlag,jdbcType=VARCHAR}</if>
</select>
<!--批量添加用户角色信息-->
......
......@@ -301,6 +301,9 @@
var form = layui.form, layer = layui.layer;
form.render('select');
form.on('switch', function(data){
var index = layer.load(3, {shade:[0.8,'#fff'],content:'正在更新用户状态,请稍等!',time: 30*1000,success: function(layero){
layero.find('.layui-layer-content').css({'padding':'3px 0 0 60px','width':'300px','marger-left':'-200px'});
}});
var elem = $(data.elem);
var trelem = elem.parents("tr");
var id=trelem.find(".laytable-cell-1-id").html();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment