forceAdjust-resolver-mixins.js 952 B

1234567891011121314151617181920212223242526272829
  1. export default {
  2. methods: {
  3. forceAdjustResolver(gen) {
  4. const models = this.generation.activeModels.find(item => item.generation == gen).models
  5. const generation = this.generation.activeModels.find(item => item.generation == gen).generation
  6. this.formatRows.forEach(item => {
  7. const currentGroup = models.find(group => group.groupId == item.groupId)
  8. item.adjustIndicator = currentGroup.groupIndicator
  9. if(currentGroup.groupIndicator >= 0) {
  10. item.adjustRecord = `${currentGroup.groupApprovedCount + currentGroup.groupIndicator} /${currentGroup.personCount}`
  11. }else {
  12. item.adjustRecord = `${currentGroup.groupApprovedCount} /${currentGroup.personCount}`
  13. }
  14. })
  15. return {
  16. adjustRecord:{
  17. label:'调剂补录情况'
  18. },
  19. adjustIndicator:{
  20. label:'调剂补录结果',
  21. slot: 'underOver'
  22. }
  23. }
  24. }
  25. }
  26. }