From c56800c37c42cf9beaefdaac6437f707de92eb3b Mon Sep 17 00:00:00 2001 From: wanggeng888 <450292408@qq.com> Date: Mon, 19 Apr 2021 12:25:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E7=B1=BB=E5=9E=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=BB=98=E8=AE=A4=E5=85=A8=E9=83=A8=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/content/list-category.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: {