table展开行显示数据问题

img


点击操作栏展开按钮,调接口拿到数据,传的参数包含外层的id,
展开后需要把数据展示在下方

img


外边的列表是一个接口,点击展开按钮又是一个接口,这个数据需要怎么展示到页面上呢,
展开行显示的数据好像是外边列表拿到的值,怎么展示点击展开按钮拿到的数据呢、

img

    <el-table-column
      fixed="right"
      label="操作"
      width="100">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
   
      </template>
    </el-table-column>

scope.row是你外面一行的全部信息 包括你需要的id

```