layui实现点击按钮添加一行的方法


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

table.render({

        elem: '#organ-manage-list'

        ,data:organData

        ,method:'POST'

        ,cols: [[

         {field: 'orgCode', width: 100, title: '组织编码', sort: true}

        ,{field: 'orgName', title: '组织名称', width: 200}

        ,{field: 'pOrgCode', title: '上级行政组织', width: 100}

        ,{field: 'orgModal', title: '组织形态', width: 100}

        ,{field: 'isSelfOrg', title: '是否核算组织', width: 100}

        ,{field: 'status', title: '启/停用', width: 100}

        ,{field: 'updTime', title: '更新时间', width: 200}

        ,{title: '操作',align:'center', fixed: 'right', toolbar: '#table-organ-operator'}

        ]]

        ,page: true

        ,limit: 10

        ,height: 'full-220'

        ,done: function(res, curr, count){

              //如果是异步请求数据方式,res即为你接口返回的信息。

              //如果是直接赋值的方式,res即为:{data: [], count: 99} data为当前页数据、count为数据总长度

                sessionStorage.setItem("countTemp",count);

              }

        ,text: '对不起,加载出现异常!'

  });

更多layui知识请关注PHP中文网layui教程栏目

以上就是layui实现点击按钮添加一行的方法的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

layui表格怎么把表头固定

layui.laypage怎么用

layui组件有哪些

layui关联表单的方法

layui弹窗怎么用

layui好用吗

layui中怎么设置select项

layui数据表格删除当前行的实现方法

怎么用layui实现图片上传

如何使用layui实现网页轮播图

更多相关阅读请进入《layui》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...