Questions about layui sort sort only the current page

done : function(res, curr, count) {
                    currentPage = curr;
                    var count = 0;
                    $(".layui-unselect").unbind('click');
                    $(".layui-unselect").find("span").eq(0).css('cursor','default');
                    $("._showTunnel").on('click',function(){
                        console.log($(this).is(":visible")); 
                        if(count % 2 == 0){
                            $("._xl").show();
                        }else{
                            $("._xl").hide();
                        }
                        count ++;
                    })
                }

 

 

  $ ( "layui-the Table-the Sort-desc.") CSS ( "border-Top-Color", "# 000");. 
// listen for sorting event table.on ( 'sort (test)' , function (obj) {// NOTE: sort event name is the toolbar, Test lay-filter table is a property of the original container = "a value corresponding to" table.reload ( 'listTable', { initSort: // obj initial ordering records, if it does not , will not mark the state table sorting head. , WHERE: {// request parameters (Note: this parameter can be arbitrarily defined which is not a fixed format below) field: obj.field // sort field , order: obj.type // Sort } }); }); });

Secondly, it is to change the background of sql statement

<choose>
                <when  test="field!=null and order == 'asc'.toString()">
                   order by a.HANDLE_STATUS ASC,a.ALARM_TIME DESC,a.HANDLE_TIME DESC
                </when>
                <otherwise>
                   order by a.HANDLE_STATUS DESC,a.HANDLE_TIME DESC,a.ALARM_TIME DESC
                </otherwise>
         </choose>

Guess you like

Origin www.cnblogs.com/a973692898/p/12105685.html