当前位置: 首页 > news >正文

wordpress 下载按钮海外seo网站推广

wordpress 下载按钮,海外seo网站推广,泉州网站平台建设公司,寻找建设网站客户效果: 思路: 1、最外层的表格先渲染,在done回调中向每个tr后面插入一个用来嵌套子级表格的tr。 tr的class和table的id需要用索引 i 关联 //向每一行tr后面追加显示子table的trlet trEles $(".layui-table-view[lay-idlist] tbody tr&…

效果:

思路:

1、最外层的表格先渲染,在done回调中向每个tr后面插入一个用来嵌套子级表格的tr。

tr的class和table的id需要用索引 i 关联

 //向每一行tr后面追加显示子table的trlet trEles = $(".layui-table-view[lay-id=list] tbody tr");for (let i = 0; i < trEles.length; i++) {let childTr = `<tr class="childTR${i+1}"><td></td><td colspan="16" ><div class="child-table-item"><table id="childTable${i + 1}"></table></div></td></tr>`;$(trEles[i]).after(childTr);}

2、插入完成后再渲染所有的子级表格

//渲染表格for (let i = 0; i < trEles.length; i++) {table.render({elem: `#childTable${i + 1}`, height: "300", url: "/hkj/Acount/GetSalaryList" //数据接口, method: "POST", where: {lsh: tabData[i].lsh,ListMark: 'jqgrid'}, even: true, page: true //开启分页, cols: [[ //表头{ field: 'NAME', title: '姓名'}, { field: 'DeptName', title: '部门' }, { field: 'BS', title: '基本工资' }, { field: 'PS', title: '岗位工资' }, { field: 'PB', title: '绩效工资' }, { field: 'SS', title: '工龄工资' }, { field: 'PA', title: '通讯补贴' }, { field: 'TA', title: '交通补贴' }, { field: 'MA', title: '餐费补贴' }, { field: 'OA', title: '其他补贴' }, { field: 'THP', title: '实发工资' }]], request: {pageName: 'pageIndex' //页码的参数名称,默认:page, limitName: 'pageSize' //每页数据量的参数名,默认:limit}, parseData: function (res) { //res 即为原始返回的数据return {"code": 0, //解析接口状态"msg": "加载成功", //解析提示文本"count": res.records || 0, //解析数据长度"data": res.rows //解析数据列表};}})}

 3、最后监听箭头显示和隐藏对应的表格

 //点击箭头隐藏或显示$(".showOrHide").click(function () {let classStr = $(this).attr("class");let index = $(this).data("index");if (classStr.indexOf("layui-icon-triangle-r") > -1) {//显示$(this).removeClass("layui-icon-triangle-r");$(this).addClass("layui-icon-triangle-d");$(`.childTR${index}`).show();} else {//隐藏$(this).removeClass("layui-icon-triangle-d");$(this).addClass("layui-icon-triangle-r");$(`.childTR${index}`).hide();}})

完整代码:

layui.use('table', function () {let table = layui.table;//第一个实例mainTable = table.render({elem: '#list', height: "full-100", url: '/hkj/Acount/GetData' //数据接口, method: "POST", where: {month: searchMonth,jybz: jybz,dataName: "gz",ListMark: 'jqgrid'},even:true, page: true //开启分页, cols: [[ //表头{field: 'id', title: '', width: 30, templet: function (d) {return `<i class="layui-icon layui-icon-triangle-d main-color main-cursor showOrHide" data-index=${d.LAY_INDEX}></i>`;}}, { field: 'yfs1', title: '管理费用',minWidth:70 }, { field: 'yfs2', title: '销售费用', minWidth: 70 }, { field: 'yfs3', title: '研发费用', minWidth: 70 }, { field: 'yfs4', title: '生产车间费', minWidth:90 }, { field: 'yfs6', title: '生产管理费', minWidth: 90 }, { field: 'sb', title: '代扣社保', minWidth: 70 }, { field: 'gjj', title: '代扣公积金', minWidth: 90 }, { field: 'gs', title: '代扣个税', minWidth: 70 }, { field: 'qt', title: '其他代扣', minWidth: 70 }, { field: 'sfgz', title: '实发银行', minWidth: 70 }, { field: 'sfgz_xj', title: '实发现金', minWidth: 70 }, { field: 'yfs5', title: '办公室', minWidth: 70 }, { field: 'credenceNum', title: '凭证号', minWidth: 60 }, {field: 'bzxx', title: '备注', minWidth: 50, templet: function (d) {return `<span style="color:red;">${d.bzxx}</span>`;}}, {field: 'url', title: 'excel', minWidth: 50, templet: function (d) {return `<a target="_blank" href="${d.url}" class="main-color main-hover">查看</a>`;}}, {field: 'lsh', title: '操作', minWidth: 210, templet: function (rowObiect) {let str = '';let b = '';if (!rowObiect.credenceNum) {if (rowObiect.bzxx.indexOf('[') != -1) {let a = rowObiect.bzxx.split('[')[1];b = a.split(']')[0];}str += '<a class="layui-btn layui-btn-xs del_public addKM" data-subjkey="' + b + '" data-name="" data-id="' + rowObiect.ID + '"> 添加为科目</a>';str += '<a class="layui-btn layui-btn-xs del_public pzPreview" data-id="' + rowObiect.ID + '"> 生成凭证</a>';} else {str += '<a class="layui-btn layui-btn-xs del_public lookPZ" data-id="' + rowObiect.credenceNum + '"> 查看凭证</a>';}str += '<a style="color:#fff" class="layui-btn layui-btn-danger layui-btn-xs del_public delete-btn"  data-id="' + rowObiect.lsh + '"> 删除</a>'return str}}]], request: {pageName: 'pageIndex' //页码的参数名称,默认:page, limitName: 'pageSize' //每页数据量的参数名,默认:limit}, parseData: function (res) { //res 即为原始返回的数据return {"code": res.Status ? 0 : -1, //解析接口状态"msg": res.Message, //解析提示文本"count": res.Data.records || 0, //解析数据长度"data": res.Data.rows //解析数据列表};}, done: function (res, curr, count) {let tabData = res.data || [];//向每一行tr后面追加显示子table的trlet trEles = $(".layui-table-view[lay-id=list] tbody tr");for (let i = 0; i < trEles.length; i++) {let childTr = `<tr class="childTR${i+1}"><td></td><td colspan="16" ><div class="child-table-item"><table id="childTable${i + 1}"></table></div></td></tr>`;$(trEles[i]).after(childTr);}//渲染表格for (let i = 0; i < trEles.length; i++) {table.render({elem: `#childTable${i + 1}`, height: "300", url: "/hkj/Acount/GetSalaryList" //数据接口, method: "POST", where: {lsh: tabData[i].lsh,ListMark: 'jqgrid'}, even: true, page: true //开启分页, cols: [[ //表头{ field: 'NAME', title: '姓名'}, { field: 'DeptName', title: '部门' }, { field: 'BS', title: '基本工资' }, { field: 'PS', title: '岗位工资' }, { field: 'PB', title: '绩效工资' }, { field: 'SS', title: '工龄工资' }, { field: 'PA', title: '通讯补贴' }, { field: 'TA', title: '交通补贴' }, { field: 'MA', title: '餐费补贴' }, { field: 'OA', title: '其他补贴' }, { field: 'THP', title: '实发工资' }]], request: {pageName: 'pageIndex' //页码的参数名称,默认:page, limitName: 'pageSize' //每页数据量的参数名,默认:limit}, parseData: function (res) { //res 即为原始返回的数据return {"code": 0, //解析接口状态"msg": "加载成功", //解析提示文本"count": res.records || 0, //解析数据长度"data": res.rows //解析数据列表};}})}//点击箭头隐藏或显示$(".showOrHide").click(function () {let classStr = $(this).attr("class");let index = $(this).data("index");if (classStr.indexOf("layui-icon-triangle-r") > -1) {//显示$(this).removeClass("layui-icon-triangle-r");$(this).addClass("layui-icon-triangle-d");$(`.childTR${index}`).show();} else {//隐藏$(this).removeClass("layui-icon-triangle-d");$(this).addClass("layui-icon-triangle-r");$(`.childTR${index}`).hide();}})}});});


文章转载自:
http://peloton.rkLs.cn
http://blarney.rkLs.cn
http://concretely.rkLs.cn
http://skiascope.rkLs.cn
http://sabah.rkLs.cn
http://olympiad.rkLs.cn
http://croci.rkLs.cn
http://tuberculotherapy.rkLs.cn
http://echoic.rkLs.cn
http://stationmaster.rkLs.cn
http://midnoon.rkLs.cn
http://languistics.rkLs.cn
http://trichopathy.rkLs.cn
http://roric.rkLs.cn
http://sewage.rkLs.cn
http://soldierlike.rkLs.cn
http://tertschite.rkLs.cn
http://putrefiable.rkLs.cn
http://scrubdown.rkLs.cn
http://pneumaturia.rkLs.cn
http://through.rkLs.cn
http://immit.rkLs.cn
http://july.rkLs.cn
http://translationese.rkLs.cn
http://reich.rkLs.cn
http://gleamingly.rkLs.cn
http://deepwater.rkLs.cn
http://inspiring.rkLs.cn
http://knottily.rkLs.cn
http://gigolette.rkLs.cn
http://faintingly.rkLs.cn
http://multimegaton.rkLs.cn
http://spellable.rkLs.cn
http://instructor.rkLs.cn
http://rivage.rkLs.cn
http://camber.rkLs.cn
http://audiotactile.rkLs.cn
http://grapple.rkLs.cn
http://towkay.rkLs.cn
http://southland.rkLs.cn
http://lam.rkLs.cn
http://kampuchea.rkLs.cn
http://shastra.rkLs.cn
http://circassian.rkLs.cn
http://fst.rkLs.cn
http://kharg.rkLs.cn
http://unaneled.rkLs.cn
http://gladiolus.rkLs.cn
http://acushla.rkLs.cn
http://catwalk.rkLs.cn
http://masan.rkLs.cn
http://kano.rkLs.cn
http://sunproof.rkLs.cn
http://quaveringly.rkLs.cn
http://pulsation.rkLs.cn
http://hobble.rkLs.cn
http://vivarium.rkLs.cn
http://emotional.rkLs.cn
http://brucine.rkLs.cn
http://sexisyllabic.rkLs.cn
http://avgas.rkLs.cn
http://archive.rkLs.cn
http://interrogatory.rkLs.cn
http://arithmetic.rkLs.cn
http://semanticist.rkLs.cn
http://vermes.rkLs.cn
http://haematose.rkLs.cn
http://granodiorite.rkLs.cn
http://antimask.rkLs.cn
http://valuables.rkLs.cn
http://ferromagnetic.rkLs.cn
http://benediction.rkLs.cn
http://xanthan.rkLs.cn
http://alguacil.rkLs.cn
http://olea.rkLs.cn
http://conferee.rkLs.cn
http://angulate.rkLs.cn
http://communard.rkLs.cn
http://inoxidized.rkLs.cn
http://flown.rkLs.cn
http://flit.rkLs.cn
http://einar.rkLs.cn
http://lustring.rkLs.cn
http://mow.rkLs.cn
http://backed.rkLs.cn
http://retentiveness.rkLs.cn
http://sjab.rkLs.cn
http://isolate.rkLs.cn
http://moneybags.rkLs.cn
http://globous.rkLs.cn
http://brazilin.rkLs.cn
http://mesomerism.rkLs.cn
http://tipi.rkLs.cn
http://alvine.rkLs.cn
http://herodian.rkLs.cn
http://marsupium.rkLs.cn
http://fslic.rkLs.cn
http://bantu.rkLs.cn
http://slumland.rkLs.cn
http://follicle.rkLs.cn
http://www.15wanjia.com/news/71199.html

相关文章:

  • 网页设计网站怎么做特效百度导航下载2022最新版官网
  • 营销型网站建设网址收录网站
  • 怎样做分类网站长沙seo网络优化
  • 企业网站建设基本流程中国大数据平台官网
  • 怎么做钓鱼网站生成媒介
  • 北京软件股份有限公司网站seo外链建设
  • 登录 wordpress黑河seo
  • 合肥商城网站建设alexa排名查询统计
  • 公司网站开发教程免费网站统计工具
  • 移动网站的开发流程图最有吸引力的营销模式
  • 企业型网站建设策划百度联盟官网登录入口
  • 大屏首页滚动网站源码山东建站
  • 网站建设的过程包括几个阶段营销排名seo
  • 企业做网站的合同磁力帝
  • 淮北市矿业工程建设公司网站自助建站
  • 电商设计师工资高吗seo外推
  • 网站移动版怎么做网络营销中的seo是指
  • 做夜夜做网站短链接生成
  • 保定百度关键词优化seo关键字优化软件
  • 企业建站报价软文网站平台
  • 响应式门户网站模板下载图们网络推广
  • 做网站的那家公司好病毒式营销
  • 面包屑网站导航怎么做品牌运营方案
  • 怎么做导购网站seo推广优化外包公司
  • 什么网站做弹窗广告好百度站长工具网站
  • 成都 网站备案 幕布拍摄点网络营销的培训课程
  • 陕西网站制作电话上海培训机构整顿
  • 如何使用模板网站建设网页长沙网络推广公司
  • 深圳做网站那家公司好线上推广员是做什么的
  • 西安网站开发公司哪家好搜索优化