var myTable = null;
layui.use(['table', 'laydate'], function () {
var table = layui.table, laydate = layui.laydate;
//第一个实例
myTable = table.render({
elem: '#DataView',
height: 510,
url: '/AqCeshi/GetList', //数据接口
page: true, //开启分页
cols: [
[
//表头
{ field: 'Id', title: '序号', type: 'numbers', width: '5%', sort: true, fixed: 'left' },
{
field: 'Ceshi1',
title: 'A企业',
width: '15%',
templet: function (d) {
return '<a onclick=openIframe("/AqCeshi/Detail/' + d.Id + '","当前位置:信息详情") class="layui-table-link">' + d.Ceshi1 + '</a>';
}
},
{
field: 'Ceshi2',
title: 'B企业',
width: '15%',
templet: function (d) {
return '<a onclick=openIframe("/AquacultureFlow/Detail/' + d.Id + '","当前位置:信息详情") class="layui-table-link">' + d.Ceshi2 + '</a>';
}
},
{ field: 'YxCeshi', title: '允许进出口', width: '10%' },
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载