Commit d440cfcf by 周志凯

add currentPage

1 parent 108b9df8
...@@ -937,6 +937,7 @@ ...@@ -937,6 +937,7 @@
</div> </div>
</div> </div>
<span>第{{ item.current }}条/共{{ item.curPageSize }}条</span> <span>第{{ item.current }}条/共{{ item.curPageSize }}条</span>
<span>第{{ item.currentPage }}页</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -1997,13 +1998,15 @@ ...@@ -1997,13 +1998,15 @@
resObj.totalPage = 0 resObj.totalPage = 0
resObj.current = 0 resObj.current = 0
resObj.curPageSize = 0 resObj.curPageSize = 0
resObj.currentPage = 0
resObj.scheduleType = scheduleType resObj.scheduleType = scheduleType
if (counter) { if (counter) {
// dataNum dateMallNum step totalData totalDate totalMall totalMallDateProduct // dataNum dateMallNum step totalData totalDate totalMall totalMallDateProduct
// resObj.totalNum = counter.dateMallNum // resObj.totalNum = counter.dateMallNum
resObj.totalPage = counter.totalMallDateProduct resObj.totalPage = counter.totalMallDateProduct
resObj.current = counter.dateMallNum resObj.current = counter.dataNum
resObj.curPageSize = counter.dataNum resObj.curPageSize = counter.totalData
resObj.currentPage = counter.dateMallNum
} }
if (self.results.length) { if (self.results.length) {
const isSameScheduleType = self.results.some(item => item.scheduleType === scheduleType) const isSameScheduleType = self.results.some(item => item.scheduleType === scheduleType)
...@@ -2016,6 +2019,7 @@ ...@@ -2016,6 +2019,7 @@
item.totalPage = counter.totalMallDateProduct item.totalPage = counter.totalMallDateProduct
item.current = counter.dataNum item.current = counter.dataNum
item.curPageSize = counter.totalData item.curPageSize = counter.totalData
resObj.currentPage = counter.dateMallNum
} }
}) })
: self.results.push(resObj) : self.results.push(resObj)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!