the interface looks like this:
the list data given by the backend looks something like this:
[
{
top:0, //
down:0, //
scale:0, //
ruleUid:1, //id
},
{
top:0, //
down:0, //
scale:0, //
ruleUid:2, //id
},
]
where rounding rules the data of the drop-down box is given by the backend:
[
{
uid:1,
name:"-"
},
{
uid:2,
name:"-"
},
{
uid:3,
name:"-"
},
]
my code:
<el-table-column prop="ruleUid" label="">
<template slot-scope="scope">
<el-select
v-model="value_regular"
style="width:120px"
size="small">
<el-option
v-for="item in list_regular"
:label="item.name"
:value="item.uid"
:key="item.uid">
</el-option>
</el-select>
</template>
</el-table-column>
my question:
the list may have 1 line, 2 lines, 3 lines. There are n drop-down boxes on the n-line. However, I only define one variable, vmurmodel = "value_regular". How can I set this variable to be dynamic? That is, a variable stores a drop-down box so that I can easily pass the value when I submit it. Or is there a good solution?