Layui 数据表格 单元格的点击事件


        cols: [
                [
                    { field: 'title' , title: '旅行社' ,width: 250,event: 'viewReport',  style: ' cursor:pointer'},
                ]
            ],
            page: true,
            limit: 10 //每页默认显示的数量
        });
        table.on('tool(admTable)', function(obj) {
            var data = obj.data;
            if (obj.event === 'viewReport') {
                xadmin.open('详情','{:url('travelShow')}'+'?id='+ data.id,800,640);
            }
        });


最新回复 (0)
发新帖