diff --git a/module-article/src/main/resources/templates/content/list-category.html b/module-article/src/main/resources/templates/content/list-category.html index b93c4eb5..84dc8f06 100644 --- a/module-article/src/main/resources/templates/content/list-category.html +++ b/module-article/src/main/resources/templates/content/list-category.html @@ -74,14 +74,14 @@ var laydate = layui.laydate; var common = layui.common; var resizeTimeout = null; - var tableUrl = 'api/content/listpage'; + var tableUrl = 'api/content/listpage?categoryId={categoryId}'; // 初始化表格 function initTable() { table.render({ elem: '#dataTable', id: 'dataTable', - url: top.restAjax.path(tableUrl, []), + url: top.restAjax.path(tableUrl, [$('#categoryId').val()]), width: admin.screen() > 1 ? '100%' : '', height: $win.height() - 90, limit: 20, @@ -155,12 +155,11 @@ // 重载表格 function reloadTable(currentPage) { table.reload('dataTable', { - url: top.restAjax.path(tableUrl, []), + url: top.restAjax.path(tableUrl, [$('#categoryId').val()]), where: { keywords: $('#keywords').val(), startTime: $('#startTime').val(), endTime: $('#endTime').val(), - categoryId: $('#categoryId').val(), isPublish: $('#isPublish').val() }, page: {