<el-table :data="financeData" border class="table" style="width: 100%" height="300">
<el-table-column align="center" label="数据名称" prop="title">
</el-table-column>
<el-table-column v-for="item, i in 12" :key="i" align="center" :label="(i + 1) + '月'">
<template #default="scope">
<el-input v-model="scope.row.arr[i]" />
</template>
</el-table-column>
</el-table>
financeData: [
{
title: "人工成本",
arr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],// 人工
},
{
title: "收入明细",
arr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],// 收入
},
{
title: "盈亏情况",
arr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],// 盈亏
},
]