项目分类统计详情

This commit is contained in:
cwchen 2025-04-03 18:21:03 +08:00
parent 2a32e2ba57
commit ddc2291b6e
2 changed files with 13 additions and 13 deletions

View File

@ -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');
})

View File

@ -32,8 +32,8 @@
<p>高级筛选</p>
</div>
<div class="layui-inline layout" style="width: 100px;justify-content: space-evenly;">
<img style="cursor: pointer;" title="按照图片类型统计" onclick="changeType(this,1)" src="../../img/synthesisQuery/photo_check.png">
<img style="cursor: pointer;" title="按照列表统计" onclick="changeType(this,2)" src="../../img/synthesisQuery/list.png">
<img style="cursor: pointer;" title="按照图片类型统计" onclick="changeType(this,2)" src="../../img/synthesisQuery/photo_check.png">
<img style="cursor: pointer;" title="按照列表统计" onclick="changeType(this,3)" src="../../img/synthesisQuery/list.png">
</div>
</div>
</form>