From 72a3837804ef56ed41b7cd00e7422fd0ae49d90e Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Sat, 17 Oct 2020 17:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=88=E8=AE=A1=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/Pagination/index.vue | 204 ++++++++++--------- ruoyi-ui/src/views/custom/order/index.vue | 8 +- 2 files changed, 110 insertions(+), 102 deletions(-) diff --git a/ruoyi-ui/src/components/Pagination/index.vue b/ruoyi-ui/src/components/Pagination/index.vue index 08ff09046..363b508c3 100644 --- a/ruoyi-ui/src/components/Pagination/index.vue +++ b/ruoyi-ui/src/components/Pagination/index.vue @@ -1,101 +1,103 @@ - - - - - + + + + + diff --git a/ruoyi-ui/src/views/custom/order/index.vue b/ruoyi-ui/src/views/custom/order/index.vue index a2cd21698..ccb7bc400 100644 --- a/ruoyi-ui/src/views/custom/order/index.vue +++ b/ruoyi-ui/src/views/custom/order/index.vue @@ -259,8 +259,11 @@ :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" + layout="total, slot, sizes, prev, pager, next, jumper" @pagination="getList" - /> + > + 总计:{{toThousands(this.totalAmount)}} 元 + @@ -451,6 +454,8 @@ const beginTime = dayjs().startOf('month').format('YYYY-MM-DD'); const endTime = dayjs().format('YYYY-MM-DD'); + // const beginTime = dayjs().format('YYYY-MM-DD'); + // const endTime = dayjs().format('YYYY-MM-DD'); export default { name: "Order", @@ -612,6 +617,7 @@ this.orderList = response.rows; this.total = response.total; this.loading = false; + this.totalAmount = response.rows.reduce((acc, cur) => cur.amount + acc, 0); }); },// 收款方式字典翻译 payTypeIdFormat(row, column) {