Created
September 28, 2017 03:52
-
-
Save fubobing126/f91dadf44e2e15eaa2b324d528b1f1fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reportReasonMerge2(state,action) { | |
let { | |
mData, | |
orecords, | |
} = action.payload | |
let { | |
reportMerge, | |
reportRecords | |
} = state | |
let data | |
let data2 | |
//reportMerge = [{},{},{}] | |
//mData = {} | |
for(let i = 0;i<reportMerge.length;i++){ | |
for(let key in reportMerge[i]){ | |
if(reportMerge[i].end == mData.end){ | |
reportMerge.splice(i,1) | |
reportRecords.splice(i,1) | |
return { | |
...state, | |
reportMerge:reportMerge, | |
reportRecords:reportRecords, | |
} | |
} | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment