diff --git a/src/main/resources/templates/pages/depository/table-stock_mobile.html b/src/main/resources/templates/pages/depository/table-stock_mobile.html
index 93002d0f..9e1ee363 100644
--- a/src/main/resources/templates/pages/depository/table-stock_mobile.html
+++ b/src/main/resources/templates/pages/depository/table-stock_mobile.html
@@ -49,9 +49,11 @@
@@ -117,7 +119,7 @@
}
- function updateFlow(){
+ function updateFlow() {
}
@@ -146,6 +148,7 @@
$.get('/material/findInventory?page=' + page + '&size=' + size, function (res) {
result = res.data;
lis.push("");
+
for (let i = 0; i < result.length; i++) {
lis.push('
");
- for (let i = 0; i < result.length; i++) {
- lis.push('
');
- lis.push('
'
- + '
' + result[i].code + '
'
- + '
' + result[i].version + '
'
- + '
' + "品牌:" + result[i].brand + '
'
- + '
' + result[i].typeName + '
'
- + '
');
- }
- lis.push('
');
+ let result = [];
+ req.page = page;
+ req.size = size;
+ $.ajax({
+ url: "/material/findInventory",
+ type: "get",
+ data: req,
+ dataType: "json",
+ contentType: "application/json;charset=utf-8",
+ success: function (res) {
+ result = res.data;
+ lis.push("");
+ for (let i = 0; i < result.length; i++) {
+ lis.push('
');
+ lis.push('
'
+ + '
' + result[i].code + '
'
+ + '
' + result[i].version + '
'
+ + '
' + "品牌:" + result[i].brand + '
'
+ + '
' + result[i].typeName + '
'
+ + '
');
+ }
+ lis.push('
');
+ takingPre += result.length;
+
+ //执行下一页渲染,第二参数为:满足“加载更多”的条件,即后面仍有分页
+ //pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多
+ next(lis.join(''), takingPre < res.count);
+ }
+ });
- takingPre += result.length;
- //执行下一页渲染,第二参数为:满足“加载更多”的条件,即后面仍有分页
- //pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多
- next(lis.join(''), takingPre < res.count);
}
})
};
@@ -315,7 +316,9 @@
});
return false;
}
+
});
+