haoxuan
2023-08-24 5e89a1759a2d20e549587fc01cf6b57a3e82950a
src/components/makepager/TableCommonView.vue
@@ -118,7 +118,8 @@
        return {
          show: false,
          sumProp: [],
          mergeNumber: 1
          mergeNumber: 1,
          totalName:'本页总计'
        }
      }
    }
@@ -159,7 +160,7 @@
        const sums = []
        columns.forEach((column, index) => {
          if (index === this.showSummary.mergeNumber) {
            sums[index] = "本页总计"
            sums[index] = this.showSummary.totalName
          }
          const values = data.map((item) => Number(item[column.property]))
          if (this.showSummary.sumProp.includes(column.property)) {