原型图
当用户输入楼层数,出现对应数量数组
getinput() {
this.num = Number(this.formone.floorA);
this.arrlist = [];
for (var i = 0; i < this.num; i++) {
this.arrlist.push({
layer: i + 1,
houseld: 0,
share: 0,
});
}
this.isactive = true;
},
<div class="quickb_div1">
<span>名称</span>
<el-input
v-model="formone.shareName"
placeholder="请输入名称"
class="quickb_input1"
></el-input>
<span>楼层</span>
<el-input
type="number"
v-model="formone.floorA"
@input="getinput"
cl