diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 0debe0b7..c66cd498 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -81,7 +81,7 @@ id="exportDiv11" stripe hideDo - :pageSize="500" + hidePagination :summary-method="getSummaries2" show-summary > @@ -241,7 +241,7 @@ export default { mioTypeEnum, apiObj: this.$API.mtm.material.list, materialType: "", - params: { is_hidden: false, type: 10, count__gte: 1 }, + params: { is_hidden: false, type: 10, count__gte: 1,page:0 }, query: { material: "", mio_type: mioTypeEnum.values[0].key, @@ -370,9 +370,9 @@ export default { that.params.name = that.material_name; } this.$API.mtm.material.list.req(that.params).then((res) => { - that.tableData11 = res.results; - if(res.results.length>0){ - res.results.forEach((ite) =>{ + that.tableData11 = res; + if(res.length>0){ + res.forEach((ite) =>{ if (nameList.indexOf(ite.name) > -1) {} else { nameList.push(ite.name); let obj = {};