From ddc2291b6efe0ea4103e851bd972ed4b1d0aa043 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 3 Apr 2025 18:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=86=E7=B1=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../proClassifyStatisticsDetail.js | 22 +++++++++---------- .../proClassifyStatisticsDetail.html | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js b/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js index 3886e22..db641c1 100644 --- a/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js +++ b/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js @@ -70,14 +70,10 @@ function loadData(queryParams) { let obj = {} if (queryType === 2) { // 图片 url = dataUrl + "/backstage/synthesisQuery/getImgList"; - obj = queryParams + obj = queryParams; } else { // 列表 url = dataUrl + "/backstage/synthesisQuery/getImgList"; - obj = { - pageNum: pageNum2, - pageSize: pageSize2, - queryType: queryType - } + obj = queryParams; } let params = { encryptedData: encryptCBC(JSON.stringify(obj)) @@ -158,7 +154,7 @@ function initImgData(list) { /**1.图片 2.列表*/ function changeType(that, type) { - if (type === 1) { + if (type === 2) { $(that).attr('src', '../../img/synthesisQuery/photo_check.png'); $(that).next().attr('src', '../../img/synthesisQuery/list.png'); } else { @@ -166,10 +162,13 @@ function changeType(that, type) { $(that).prev().attr('src', '../../img/synthesisQuery/photo.png'); } queryType = type; - pageNum = 1; - pageNum2 = 1; - $('#ID-flow-demo').empty(); - dataFlow(); + resetData(); + searchData({ + pageNum: pageNum, + pageSize: pageSize, + queryType: queryType, + id:objParams.proId + }); } /**渲染列表图片*/ function initListData(list) { @@ -409,6 +408,7 @@ function searchData(queryParams) { /**重置基本数据*/ function resetData() { pageNum = 1; + pageNum2 = 1; $('.type-num').each(function () { $(this).removeClass('type-num-check'); }) diff --git a/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html b/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html index 89d75cd..aee14a8 100644 --- a/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html +++ b/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html @@ -32,8 +32,8 @@
高级筛选
-
+
+