|
@@ -62,6 +62,7 @@
|
|
|
|
|
|
<script>
|
|
|
import config from '@/common/mx-config'
|
|
|
+import consts from '@/common/mx-const'
|
|
|
import transferMixin from '@/components/mx-transfer-mixin'
|
|
|
import ElectiveToolsMixin from '@/views/elective/select/components/elective-tools-mixins'
|
|
|
import groupTranslateMixin from '@/components/Cache/modules/mx-select-translate-mixin'
|
|
@@ -78,6 +79,7 @@ import ElectiveFlowMajor from '@/views/elective/generation/components/elective-f
|
|
|
import ElectiveFlowRankDescriptor from '@/views/elective/generation/components/elective-flow-rank-descriptor'
|
|
|
import { getStudentElectiveModels } from '@/api/webApi/elective/selected-subject'
|
|
|
import ElectiveAiTable from '@/views/elective/select/components/elective-ai-table'
|
|
|
+import EventBus from '@/components/EventBus'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -307,6 +309,7 @@ export default {
|
|
|
this.$confirm(message, '强制调剂提醒', { type: 'warning' }).then(() => {
|
|
|
enrollByForce(group.groupId, row['studentId']).then(res => {
|
|
|
this.loadGenerationDetails() // refresh
|
|
|
+ EventBus.instance.$emit(consts.keys.electiveGlobalChangeEvent) // global notify for refresh data
|
|
|
})
|
|
|
})
|
|
|
return true
|