修改代码
This commit is contained in:
parent
58e11bf90a
commit
e66ddd1b84
@ -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);
|
||||
}
|
||||
});
|
||||
},
|
||||
dialogSelect(row) {
|
||||
|
Loading…
Reference in New Issue
Block a user