|
@@ -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: {
|
|
@@ -104,9 +106,10 @@ export default {
|
|
|
return Object.values(this.options).find(opt => opt.value == this.prevData.activeGeneration)
|
|
|
},
|
|
|
subTitle() {
|
|
|
- if (this.prevData.isAccumulate) return ''
|
|
|
const hideGenerations = [this.options.init, this.options.terminate]
|
|
|
- return hideGenerations.includes(this.activeOpt) ? '' : this.activeOpt?.title || ''
|
|
|
+ let generationDesc = hideGenerations.includes(this.activeOpt) ? '' : this.activeOpt?.title || ''
|
|
|
+ if (this.prevData.isAccumulate && generationDesc) generationDesc = this.options.primary.title + ' 至 ' + generationDesc
|
|
|
+ return generationDesc
|
|
|
},
|
|
|
localData() {
|
|
|
this.queryParams.generation = this.prevData.queryGeneration
|
|
@@ -129,7 +132,7 @@ export default {
|
|
|
index: { label: '序号', slot: 'pagedIndex' },
|
|
|
className: { label: '班级' },
|
|
|
studentName: { label: '姓名', slot: 'studentName' },
|
|
|
- userName: {label: '账号'}
|
|
|
+ userName: { label: '账号' }
|
|
|
}
|
|
|
if (!ignoreGroups) {
|
|
|
columns.groupName = { label: queryCategory.detailName || '组合' }
|
|
@@ -307,6 +310,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
|