VUE使用后端传过来的数据,使用template slot-scope="scope"不好使

从后端传过来的数据summary,数据类型和格式如下。在VUE前端怎么使用 template slot-scope="scope"将数据放入表格中?我的代码如下,但不好使。请帮助修改一下,谢谢!

img

img

<el-tab-pane label="汇总页">
        <el-table
          :data="summary"
          style="width: 100%"
          :default-sort = "{prop: 'number', order: 'descending'}"
          >

          <el-table-column align="center" label="对应数据" width="100" sortable fixed>
            <template slot-scope="scope">
              {{ scope.row.number }}
            </template>
          </el-table-column>
    </el-table>
</el-tab-pane>

scope.row.number就能获取到数据了

你这个是数组吗?怎么看你打印的类型是object

你把this.summary = response.data.summary的this在开头定义一下试试呢,是不是this指向不对

还有就是你的number是一个数组,scope.row.number是想展示啥,感觉写法有问题呀