<el-table :data="dataArray" border="true" stripe="true" :cell-class-name="cellStyle">
<el-table-column align="center" prop="cityName" label="城市名称" width="100"></el-table-column>
<template v-for="(item,index) in secondArrayLength">
<el-table-column
align="center"
style="background:red"
:prop="dataArray.cityData"
:label="item"
:key="index"
width="60"
>
<template slot-scope="scope">{ {scope.row.cityData[0].parameterData[index].value}}</template>
</el-table-column>
</template>
</el-table>
返回数据如下:
"data": [
{