diff --git a/src/views/orderauthor/permission/create/permission.vue b/src/views/orderauthor/permission/create/permission.vue index c7f54b459..4edf55d81 100644 --- a/src/views/orderauthor/permission/create/permission.vue +++ b/src/views/orderauthor/permission/create/permission.vue @@ -264,13 +264,13 @@ export default { addRuleForm(index, row) { // 添加权限获取对应的商品 row['isPut'] = true; getGoodsByPermissionId(row.id).then(res => { - if (res.data.length) { - row.price = res.data[0].price; + if (res.data && (res.data instanceof Object)) { + row.price = res.data.price; if (this.addModel.type == '01') { - row.goods = res.data[0]; + row.goods = res.data; } - } - this.ruleList.push(row); + this.ruleList.push(row); + } }); }, dialogSelect(row) {