|
|
@@ -208,10 +208,13 @@ export default {
|
|
|
this.updateItem.push(item)
|
|
|
}
|
|
|
|
|
|
- const index = this.data.findIndex(ele => ele.month === item.month)
|
|
|
- if (index != -1) {
|
|
|
- this.data.splice(this.data.indexOf(index), 1)
|
|
|
- }
|
|
|
+ let index = this.data.findIndex(ele => {
|
|
|
+ if (ele.month === item.month) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.data.splice(index, 1)
|
|
|
+
|
|
|
this.data.push(item)
|
|
|
//重新计算合计
|
|
|
this.allPlanInvestment = 0
|