v-for无法循环遍历出值
代码:
<fieldset class="layui-elem-field" id="priceForm">
<legend>配方信息</legend>
<div class="layui-inline" v-for="p in priceList">
<label class="layui-form-label">{{p.id}}</label>
<div class="layui-input-inline" style="width: 100px;">
标准值:
<input type="text" name="id" v-model="p.std" autocomplete="off" class="layui-input">
</div>
</div>
</fieldset>
<script>
var terminalForm = new Vue({
el: '#terminalForm',
data: {
t: data ? data : {},
priceList: [{
"id": 1,
"menuId": 1,
"productId": 1,
"ingredientId": 2,
"ingredient": null,
"menuTitle": null,
"logo": null,
"remark": "0",
"sn": null,
"std": 220,
"min": 180,
"max": 260,
"level": 5,
"delay": 0,
"water": 130,
"waterType": 1,
"sort": 1
},
{
"id": 2,
"menuId": 1,
"productId": 1,
"ingredientId": 6,
"ingredient": null,
"menuTitle": null,
"logo": null,
"remark": "0",
"sn": null,
"std": 50,
"min": 30,
"max": 70,
"level": 6,
"delay": 0,
"water": 30,
"waterType": 1,
"sort": 2
},
{
"id": 3,
"menuId": 1,
"productId": 1,
"ingredientId": 1,
"ingredient": null,
"menuTitle": null,
"logo": null,
"remark": "0",
"sn": null,
"std": 120,
"min": 110,
"max": 130,
"level": 5,
"delay": 0,
"water": 90,
"waterType": 1,
"sort": 3
}
]
},
});
</script>
是不是

id
问题