Commit c33c9a52 authored by 季圣华's avatar 季圣华
Browse files

解决销售统计和采购统计的翻页bug

parent bb1c70f7
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
}), }),
success: function (res) { success: function (res) {
if (res && res.code === 200 && res.data) { if (res && res.code === 200 && res.data) {
$("#tableData").datagrid('loadData', res.data.rows); $("#tableData").datagrid('loadData', res.data);
} }
}, },
//此处添加错误处理 //此处添加错误处理
......
...@@ -222,8 +222,8 @@ ...@@ -222,8 +222,8 @@
mpList: mPropertyList mpList: mPropertyList
}), }),
success: function (res) { success: function (res) {
if (res && res.code === 200 && res.data) { if (res && res.code === 200) {
$("#tableData").datagrid('loadData', res.data.rows); $("#tableData").datagrid('loadData', res.data);
} }
var total = 0; var total = 0;
res.data.rows.forEach(function(value, index, array){ res.data.rows.forEach(function(value, index, array){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment