|
@@ -67,9 +67,9 @@ const store = new Vuex.Store({
|
|
|
addBuriedSome(state,item){
|
|
|
let list = state.addBuriedSomeList,num=0
|
|
|
for(let i = 0;i < list.length;i++){
|
|
|
- let num = list[i].operationNum
|
|
|
+ let number = list[i].operationNum
|
|
|
if(list[i].labelName == item.labelName&&list[i].operationType == item.operationType){//已经存在+1
|
|
|
- list[i].operationNum = ++num
|
|
|
+ list[i].operationNum = ++number
|
|
|
}else{
|
|
|
++num
|
|
|
}
|
|
@@ -77,6 +77,7 @@ const store = new Vuex.Store({
|
|
|
if(num == list.length){//没有新增一项
|
|
|
list.push(item)
|
|
|
}
|
|
|
+ // console.log(list)
|
|
|
state.addBuriedSomeList=list
|
|
|
},
|
|
|
setFinish(state,param){
|