// 渲染表格
var tableResult = table.render({
elem: '#' + Policyfile.tableId,
url: Feng.ctxPath + '/policyfile/list',
page: false,
height: "full-158",
cellMinWidth: 100,
cols: Policyfile.initColumn(),
//在表格加载完毕后执行的方法
done: function (res, curr, count) {
table.render({
elem: '#' + Policyfile.tableId,
url: Feng.ctxPath + '/policyfile/list',
page: false,
height: "full-158",
cellMinWidth: 100,
cols: Policyfile.initColumn(),
where : {
//sql中始终加上该条件
policyId : $('#policyId').val()
}
});
}
});
layui完全初始化表格之后再带条件查询
最新推荐文章于 2025-04-02 16:31:45 发布