新增判分点保存之前的数据,并且保持原有的type

master
e 3 years ago
parent 013042a320
commit cd56409e6b
  1. 13
      src/views/Transaction.vue

@ -451,8 +451,21 @@ export default {
}
}
}
let tableData = this.tableData
this.tableData = []
this.anewPosttingDatas(list)
for(var i=0;i<this.tableData.length;i++){
for (var j=0;j<tableData.length;j++){
if (tableData[j].name == this.tableData[i].name){
if (tableData[j].emptyTwo){
this.tableData[i].emptyTwo = tableData[j].emptyTwo
this.tableData[i].value1 = tableData[j].value1
this.tableData[i].type = tableData[j].type
}else{
}
}
}
}
this.tableData.forEach(async (item, index) => {
//
item.operationIds = item.id

Loading…
Cancel
Save