导出
This commit is contained in:
1 parent
49b7fce82f
commit
a4d2e10387
2 files changed
+4
-4
No files matched your search
@@ -38,7 +38,7 @@
|
|||||||
@selection-change="selectionChangHandle"
|
@selection-change="selectionChangHandle"
|
||||||
@sort-change="sortChangeHandle"
|
@sort-change="sortChangeHandle"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="40" align="center" />
|
<el-table-column type="selection" width="80" align="center" />
|
||||||
<el-table-column type="index" label="#" width="50" />
|
<el-table-column type="index" label="#" width="50" />
|
||||||
<el-table-column label="设备" align="center">
|
<el-table-column label="设备" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
@@ -104,7 +104,7 @@ const getSummaries = (param: any) => {
|
|||||||
const { columns, data } = param
|
const { columns, data } = param
|
||||||
const totalColumns = ["totalPayPrice", "totalPayCount"]
|
const totalColumns = ["totalPayPrice", "totalPayCount"]
|
||||||
const totalRow = Array.from({ length: columns.length })
|
const totalRow = Array.from({ length: columns.length })
|
||||||
totalRow[2] = "合计"
|
totalRow[0] = "合计"
|
||||||
columns.forEach((i: any, index: number) => {
|
columns.forEach((i: any, index: number) => {
|
||||||
if (totalColumns.includes(i.property)) {
|
if (totalColumns.includes(i.property)) {
|
||||||
const total = data
|
const total = data
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
@selection-change="selectionChangHandle"
|
@selection-change="selectionChangHandle"
|
||||||
@sort-change="sortChangeHandle"
|
@sort-change="sortChangeHandle"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="40" align="center" />
|
<el-table-column type="selection" width="80" align="center" />
|
||||||
<el-table-column type="index" label="#" width="50" />
|
<el-table-column type="index" label="#" width="50" />
|
||||||
<el-table-column label="商户" align="center" prop="merchantName" />
|
<el-table-column label="商户" align="center" prop="merchantName" />
|
||||||
<el-table-column label="总消费金额" align="center" prop="totalPayPrice">
|
<el-table-column label="总消费金额" align="center" prop="totalPayPrice">
|
||||||
@@ -101,7 +101,7 @@ const getSummaries = (param: any) => {
|
|||||||
const { columns, data } = param
|
const { columns, data } = param
|
||||||
const totalColumns = ["totalPayPrice", "totalPayCount"]
|
const totalColumns = ["totalPayPrice", "totalPayCount"]
|
||||||
const totalRow = Array.from({ length: columns.length })
|
const totalRow = Array.from({ length: columns.length })
|
||||||
totalRow[2] = "合计"
|
totalRow[0] = "合计"
|
||||||
columns.forEach((i: any, index: number) => {
|
columns.forEach((i: any, index: number) => {
|
||||||
if (totalColumns.includes(i.property)) {
|
if (totalColumns.includes(i.property)) {
|
||||||
const total = data
|
const total = data
|
||||||
|
|||||||
Reference in new issue
Block a user