Commit c7bf69f0 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 023d702f
...@@ -302,12 +302,12 @@ ...@@ -302,12 +302,12 @@
this.closeTrigger(); this.closeTrigger();
if (success) { if (success) {
let rows = data.records; let rows = data.records;
// let total = data.total; let total = data.total;
if (!rows) { if (!rows) {
rows = data; rows = data;
// total = data.length; total = data.length;
} }
this.totalCount = 10000; this.totalCount = total;
if (this.pageNo == DEFAULT_PAGE_NO) { if (this.pageNo == DEFAULT_PAGE_NO) {
this.dataList = rows; this.dataList = rows;
} else { } else {
......
Markdown is supported
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