vue循环向数组添加数据
2023-08-23 本文已影响0人
我叫杨毅
const lists = response.rows;
this.outInSerialList = lists.map((item) => {
let totalPrice1 = item.operateQty * item.unitPrice;
this.$set(item, "totalPrice", totalPrice1);
return item;
});