* @param $value int 排序值,1:顺序;2:倒序
* @param $table string 需要排序字段在当前sql语句中表的别名
* @return string 返回处理后的...table' value='{{$sort.param_table}}'/>");
}
$('th[data-sort=1]').attr('class','sortable...)中,新增一行:
$order = $this->assembleSort($this->in['sort'], $this->in['column'], $this->in['value'], $this...excel方法(通常是excel)中,做上述相同处理
view
在相关view中,修改需要排序的字段的th标签如下:
th width="180px" data-sort="{{$sort.create_time...{$sort.需要排序的字段名称|default=默认值1:当前为倒序,2:当前为顺序}}" data-column="需要排序的字段名称" data-table="如果当前列表需要通过join查询,此处为该字段所属的表别名