业务需求将input中绑定了行内元素的值,添加默认值0,并且可以修改
<el-table-column
label="投放数量"
align="center"
min-width="40"
>
<template slot-scope="scope">
<el-input
v-model="scope.row.distributionCount"
:disabled="!param.receivePointId"
class="edit-input"
size="mini"
@change="abc(scope)"
/>
</template>
</el-table-column>
子组件中返回数组数据格式 .由于返回的对象中没有distributionCount我们要的元素,所以我在子组件中添加了一个循环语句对其进行添加
[
{
a:'