项目分类统计详情
This commit is contained in:
parent
2a32e2ba57
commit
ddc2291b6e
|
|
@ -70,14 +70,10 @@ function loadData(queryParams) {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
if (queryType === 2) { // 图片
|
if (queryType === 2) { // 图片
|
||||||
url = dataUrl + "/backstage/synthesisQuery/getImgList";
|
url = dataUrl + "/backstage/synthesisQuery/getImgList";
|
||||||
obj = queryParams
|
obj = queryParams;
|
||||||
} else { // 列表
|
} else { // 列表
|
||||||
url = dataUrl + "/backstage/synthesisQuery/getImgList";
|
url = dataUrl + "/backstage/synthesisQuery/getImgList";
|
||||||
obj = {
|
obj = queryParams;
|
||||||
pageNum: pageNum2,
|
|
||||||
pageSize: pageSize2,
|
|
||||||
queryType: queryType
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
encryptedData: encryptCBC(JSON.stringify(obj))
|
encryptedData: encryptCBC(JSON.stringify(obj))
|
||||||
|
|
@ -158,7 +154,7 @@ function initImgData(list) {
|
||||||
|
|
||||||
/**1.图片 2.列表*/
|
/**1.图片 2.列表*/
|
||||||
function changeType(that, type) {
|
function changeType(that, type) {
|
||||||
if (type === 1) {
|
if (type === 2) {
|
||||||
$(that).attr('src', '../../img/synthesisQuery/photo_check.png');
|
$(that).attr('src', '../../img/synthesisQuery/photo_check.png');
|
||||||
$(that).next().attr('src', '../../img/synthesisQuery/list.png');
|
$(that).next().attr('src', '../../img/synthesisQuery/list.png');
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -166,10 +162,13 @@ function changeType(that, type) {
|
||||||
$(that).prev().attr('src', '../../img/synthesisQuery/photo.png');
|
$(that).prev().attr('src', '../../img/synthesisQuery/photo.png');
|
||||||
}
|
}
|
||||||
queryType = type;
|
queryType = type;
|
||||||
pageNum = 1;
|
resetData();
|
||||||
pageNum2 = 1;
|
searchData({
|
||||||
$('#ID-flow-demo').empty();
|
pageNum: pageNum,
|
||||||
dataFlow();
|
pageSize: pageSize,
|
||||||
|
queryType: queryType,
|
||||||
|
id:objParams.proId
|
||||||
|
});
|
||||||
}
|
}
|
||||||
/**渲染列表图片*/
|
/**渲染列表图片*/
|
||||||
function initListData(list) {
|
function initListData(list) {
|
||||||
|
|
@ -409,6 +408,7 @@ function searchData(queryParams) {
|
||||||
/**重置基本数据*/
|
/**重置基本数据*/
|
||||||
function resetData() {
|
function resetData() {
|
||||||
pageNum = 1;
|
pageNum = 1;
|
||||||
|
pageNum2 = 1;
|
||||||
$('.type-num').each(function () {
|
$('.type-num').each(function () {
|
||||||
$(this).removeClass('type-num-check');
|
$(this).removeClass('type-num-check');
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@
|
||||||
<p>高级筛选</p>
|
<p>高级筛选</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline layout" style="width: 100px;justify-content: space-evenly;">
|
<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/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,3)" src="../../img/synthesisQuery/list.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue