<script>
$("#dataTable").bootstrapTable(
{
method: 'get',
url: '/Admin/SysInventory/GetList',
sidePagination: 'server',
//search: !0,
pagination: !0,
//showRefresh: !0,
//showToggle: !0,
pageList: [10, 30, 50, 100],
pageSize: 10,
pageNumber: 1,
showColumns: false,
iconSize: "outline",
//toolbar: "#operateToolbar",
queryParams: function (params) {
return {
offset: params.offset, // SQL语句偏移量
limit: params.limit, // 每页显示数量
JonDate: $("#startdate").val(),
BranchName: $("#CityName").text(),
CustomerName: $("#CustomerType").text()
};
},
columns: [{
field: 'JobDate',
title: "@L("JobDate")",
valign: 'middle',
sortable: true
}, {
field: 'CustomerName',
title: "@L("ProATMCustomerName")",
valign: 'middle',
sortable: true
}, {
field: 'ProjectName',
title: "@L("CCT")",
valign: 'middle',
sortable: true
}, {
field: 'TotalAmount',
title: "@L("TaskAmount")",
valign: 'middle',
sortable: true
}, {
field: 'Id',
title: "@L("Operation")",
width: '200',
formatter: EditeOpt
}],
icons: {
refresh: "glyphicon-repeat",
toggle: "glyphicon-list-alt",
columns: "glyphicon-list"
}
});
$(function () {
})
</script>
为什么$("#dataTable").bootstrapTable() 写在外面 页面就可以显示
放到
$(function () {
})
中就报No matching records found
我也遇到这个问题了 , 请问你最后解决了么