综合查询

This commit is contained in:
cwchen 2025-03-31 18:45:02 +08:00
parent 98b9d52d05
commit 644aba6fa9
4 changed files with 73 additions and 35 deletions

View File

@ -19,5 +19,5 @@ public class QueryParamDto {
/**用户id*/
private long userId;
private int pageNum = 1;
private int pageSize = 10;
private int pageSize = 15;
}

View File

@ -37,7 +37,7 @@ spring.http.multipart.maxRequestSize=10000Mb
token.expire.seconds=7200
#\u6587\u4EF6\u4E0A\u4F20
spring.servlet.multipart.enabled=true
zhly.aq.enable=false
zhly.aq.enable=true
#\u6587\u4EF6\u8FC7\u6EE4
zhly.aq.file.suffix=woff,js,css,html,woff2,lang,map,png,jpg
#\u9759\u6001\u8D44\u6E90 \u4E0D\u62E6\u622A

View File

@ -126,9 +126,11 @@ body {
height: 15%;
justify-content: space-between;
}
.imgData2 > p {
margin: 0 10px;
}
.imgData2 > p:nth-child(1) {
color: #999;
}
@ -138,9 +140,11 @@ body {
height: 15%;
justify-content: start;
}
.imgData3 > p {
margin: 0 10px;
}
.imgData3 > p:nth-child(1) {
color: #666;
font-weight: bold;
@ -176,6 +180,23 @@ body {
padding: 2px 10px;
}
.hidden-actions {
width: auto;
height: 250px;
display: none;
position: relative;
top: -250px;
background: rgba(14, 14, 14, 0.3);
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.hidden-btn {
width: 100%;
height: 100%;
justify-content: space-evenly;
}
.layui-input:hover,
.layui-select:hover,
.layui-textarea:hover {

View File

@ -5,6 +5,11 @@ layui.use(["form", 'laydate', 'flow'], function () {
form = layui.form;
laydate = layui.laydate;
flow = layui.flow;
dataFlow();
});
/**数据流加载*/
function dataFlow() {
flow.load({
elem: '#ID-flow-demo', // 流加载容器
scrollElem: '#ID-flow-demo', // 滚动条所在元素,一般不用填,此处只是演示需要。
@ -18,12 +23,16 @@ layui.use(["form", 'laydate', 'flow'], function () {
if (returnData != null) {
lis = initImgData(returnData.data.list)
next(lis.join(''), page < returnData.data.total / 15);
$('.img-info').on('mouseenter', function () {
this.querySelector('.hidden-actions').style.display = 'block';
});
$('.img-info').on('mouseleave', function () {
this.querySelector('.hidden-actions').style.display = 'none';
});
}
}
});
});
}
/*切换查询类型*/
@ -43,21 +52,7 @@ function changeType(type, that) {
$(that).prev().removeClass("checkedElement").addClass("noCheckedElement");
}
$('#ID-flow-demo').empty();
flow.load({
elem: '#ID-flow-demo', // 流加载容器
scrollElem: '#ID-flow-demo', // 滚动条所在元素,一般不用填,此处只是演示需要。
end: '数据加载完毕',
direction:'bottom',
done: function (page, next) { // 执行下一页的回调
console.error(page);
let lis = [];
let returnData = loadData();
if (returnData != null) {
lis = initImgData(returnData.data.list)
next(lis.join(''), page < returnData.data.total/15);
}
}
});
dataFlow();
}
/**加载图片数据*/
@ -103,8 +98,30 @@ function initImgData(list) {
" <p>" + item.sourceTypeName + "</p>" +
" <p>" + item.id.substr(0, 10) + "</p>" +
" </div>" +
" <div class='hidden-actions'><div class='hidden-btn layout'>" +
" <button class='btn-edit' onclick='viewImg("+JSON.stringify(item)+")'>放大</button>" +
" <button class='btn-delete' onclick='imgDownLoad("+JSON.stringify(item)+")'>原图下载</button>" +
" <button class='btn-delete' onclick='waterImgDownLoad("+JSON.stringify(item)+")'>水印下载</button>" +
(item.collectStatus === '0' ? "<button class='btn-delete' onclick='collectImg("+JSON.stringify(item)+",1)'>收藏</button>":"<button class='btn-delete' onclick='collectImg("+JSON.stringify(item)+",2)'>取消收藏</button>") +
" </div></div>" +
" </div>");
})
}
return htmlArr;
}
function viewImg(item) {
}
function imgDownLoad(item) {
}
function waterImgDownLoad(item) {
}
function collectImg(item,type) {
}