element的el-table合计问题?

el-table用show-summary计算合计,第一列可以点击用了tempalte,但是这样出现了两行合计,如下图,这个该如何解决:

 <el-table
          show-summary="true"
          stripe="true"
          :data="dataList"
          max-height="500"
          style="width: 100%"
          :header-cell-style="{ color: '#1B1B1B', background: '#EEF1F5' }"
          :cell-style="{ color: '#1B1B1B' }"

        <el-table-column
            label="报表日期"
            align="center"
          >
            <template #default="scope">
              <span  @click="runAllNumber(scope.row)" class="sp-name">{{scope.row.reportDate}}</span>
            </template>
          </el-table-column>

image.png

阅读 1k
推荐问题