single-subject-report.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <el-dialog
  3. append-to-body
  4. v-if="dialogVisible"
  5. :title="aiType == 'all' ? '整体报告' : '单科报告'"
  6. :visible.sync="dialogVisible"
  7. width="70%"
  8. >
  9. <div>
  10. <div v-if="Object.keys(reportInfo).length > 0">
  11. <p>点评:</p>
  12. <div class="mt10 mb10">
  13. <div class="fx-row" style="align-items: center">1,
  14. <p v-html="admissionInfo.slice(0,admissionInfo.lastIndexOf(','))"></p>
  15. <span>,学校现在所开设的六种科目,</span> 现有
  16. <span class="f-primary">
  17. {{ canSign.map(item => item.groupName).join(',') }}
  18. </span>您可以报名
  19. </div>
  20. </div>
  21. <div class="mt10" v-if="aiType == 'single' && !singleRow.allowSelect">
  22. {{ singleRow.groupName }}不可报名
  23. </div>
  24. <div v-else>
  25. <div class="mb10">
  26. <p>2,专业符合情况:</p>
  27. <div class="mb5" v-for="item in canSign">
  28. <span class="f-primary mr5"> {{ item.groupName }}:</span>
  29. <div style="display: inline" v-if="item.colleges.length > 0">
  30. <span class="mr5" v-for="college in item.colleges">{{ `${college.major}(${college.college})` }},</span>
  31. 符合您的专业要求;
  32. </div>
  33. <p style="display: inline" class="f-red" v-else>您的自选专业没有符合该组合的</p>
  34. </div>
  35. </div>
  36. <div class="mb10">
  37. <p>3,成绩情况:</p>
  38. <div v-for="(item,index) in canSign">
  39. <span>{{ item.groupName }} : </span>成绩{{ item.scoreSumGroup }} <span class="f-primary" v-if="index == 0"> *成绩最优</span>
  40. </div>
  41. </div>
  42. <div class="mb10">
  43. <p class="mb10">4,录取分析:</p>
  44. <div v-for="(item,index) in canSign" class="mb10">
  45. <div v-if="!singleRow || singleRow.groupId == item.groupId">
  46. <p>{{ item.groupName }} : 成绩{{ item.scoreSumGroup }}<span class="f-primary" v-if="index == 0"> (补录成绩最优组合)</span>
  47. </p>
  48. <p>
  49. 在补录学生{{ tipsModel.countNumber }}人中该组合成绩最优学生有{{ item.bestInIndicator }}人,该组合计划人数为{{ item.groupIndicator }}
  50. 您在该<span v-if="index == 0">最优</span>组合中排名{{ item.rankInBest }},您可以被该组合录取。您的成绩符合该组合。<span
  51. v-if="item.colleges.length == 0"
  52. >(自选专业不符合)</span>
  53. <span v-if="index == 0">按照成绩优先原则,系统推荐您报该组合。</span>
  54. <span v-else>您如果不填写系统推荐您的最优组合,您也可以报该组合。</span>
  55. </p>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <span slot="footer" class="dialog-footer">
  63. <el-button type="primary" @click="dialogVisible =false">确 定</el-button>
  64. </span>
  65. </el-dialog>
  66. </template>
  67. <script>
  68. import MxSelectTranslateMixin from '@/components/Cache/modules/mx-select-translate-mixin.js'
  69. export default {
  70. name: 'subject-report',
  71. mixins: [MxSelectTranslateMixin],
  72. props: {
  73. admissionInfo: {
  74. type: String,
  75. default: ''
  76. },
  77. reportInfo: {
  78. type: Array,
  79. default: {}
  80. }
  81. },
  82. computed: {
  83. tipsModel() {
  84. const countNumber = this.canSign.reduce((prev, cur) => {
  85. return prev + cur.groupIndicator
  86. }, 0)
  87. return {
  88. countNumber
  89. }
  90. },
  91. // isCanSignFlag() {
  92. // // 传入的组合是否能报名
  93. // if (!this.reportInfo.length) return {}
  94. // if (!this.currentGroup) return {}
  95. //
  96. // return this.reportInfo.filter(item => {
  97. // return item.groupName == this.currentGroup
  98. // })[0]
  99. // },
  100. canSign() {
  101. if (!this.reportInfo.length) return []
  102. return this.reportInfo.filter(item => {
  103. return item.allowSelect
  104. }).sort((prev, next) => prev.scoreSumGroup < next.scoreSumGroup ? 1 : -1)
  105. }
  106. },
  107. data() {
  108. return {
  109. dialogVisible: false,
  110. singleRow: {}
  111. }
  112. },
  113. methods: {
  114. init(type, row) {
  115. this.aiType = type
  116. this.dialogVisible = true
  117. this.singleRow = row
  118. console.log(row)
  119. }
  120. }
  121. }
  122. </script>
  123. <style scoped>
  124. </style>