groups-match-dialog.vue 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <el-dialog
  3. :title="`整体组合匹配(${type.title})`"
  4. :visible.sync="show"
  5. width="70%"
  6. >
  7. <div>
  8. <groups-match-table :groups="reports" :majors="majors"></groups-match-table>
  9. </div>
  10. <span slot="footer" class="dialog-footer">
  11. <el-button type="primary" @click="show = false">确 定</el-button>
  12. </span>
  13. </el-dialog>
  14. </template>
  15. <script>
  16. import GroupsMatchTable from '@/views/elective/select/components/groups-match-table'
  17. import consts from '@/common/mx-const'
  18. export default {
  19. components: { GroupsMatchTable },
  20. data() {
  21. return {
  22. show: false,
  23. majors: [],
  24. type: consts.enum.electiveMajorMatchType.optional,
  25. reports: []
  26. }
  27. },
  28. methods: {
  29. open(reports, majors, type) {
  30. this.show = true
  31. this.type = type
  32. this.reports = reports
  33. this.majors = majors
  34. }
  35. }
  36. }
  37. </script>
  38. <style scoped>
  39. .cell .el-tag {
  40. margin-right: 5px;
  41. }
  42. </style>