修改页面,完成单页模式新增首页返回上一页按钮

This commit is contained in:
2026-08-31 14:48:32 +08:00
parent aaed0584b1
commit 15b301b358
363 changed files with 10895 additions and 213 deletions
+1
View File
@@ -0,0 +1 @@
layui.define(["table"],function(b){var l=layui.jquery,g={render:function(t){var i=l(t.elem).next().children(".layui-table-box"),s=l(i.children(".layui-table-body").children("table").children("tbody").children("tr").toArray().reverse()),h=l(i.children(".layui-table-fixed-l").children(".layui-table-body").children("table").children("tbody").children("tr").toArray().reverse()),y=l(i.children(".layui-table-fixed-r").children(".layui-table-body").children("table").children("tbody").children("tr").toArray().reverse()),f=t.cols[0],a={};for(let e=0;e<f.length;e++){var n=f[e],v=n.field;if(n.merge){var c=[v];n.merge!==!0&&(typeof n.merge=="string"?c=[n.merge]:c=n.merge),a[e]={mergeField:c,rowspan:1}}}s.each(function(e){for(var r in a)e==s.length-1||p(e,r)?(l(this).children('[data-key$="-'+r+'"]').attr("rowspan",a[r].rowspan).css("position","static"),h.eq(e).children('[data-key$="-'+r+'"]').attr("rowspan",a[r].rowspan).css("position","static"),y.eq(e).children('[data-key$="-'+r+'"]').attr("rowspan",a[r].rowspan).css("position","static"),a[r].rowspan=1):(l(this).children('[data-key$="-'+r+'"]').remove(),h.eq(e).children('[data-key$="-'+r+'"]').remove(),y.eq(e).children('[data-key$="-'+r+'"]').remove(),a[r].rowspan+=1)});function p(e,r){for(var o=a[r].mergeField,u=layui.table.cache[t.id].length,d=0;d<o.length;d++)if(layui.table.cache[t.id][u-2-e][o[d]]!==layui.table.cache[t.id][u-1-e][o[d]])return!0;return!1}}};b("tableMerge",g)});