handleTransform() {
var arr = []
var obj='@class'
this.sumitBuyList.forEach(item => {
var str = {}
str[obj]="com.cdk.entity.purchase.DraftPojo"
str.draftId = item.draftId
str.dealPoint = item.dealPoint
str.yearRate = item.yearRate
str.monthRate = item.monthRate
str.hThousandAdd = item.hThousandAdd
str.directlyDeduct = item.directlyDeduct
str.dealType = item.dealType
str.smallPoint = item.smallPoint
str.remittance = item.remittance
arr.push(str)
})
arr = JSON.stringify(arr)
console.log(arr)
},数组对象里添加对象字段

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-06-23
  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案