|
@@ -51,7 +51,9 @@
|
|
|
<elective-generation-flow-log :groups="prevData.groups" :histories="logRow.histories"
|
|
|
:matched-majors="this.majorsMap[logRow['studentId']]"/>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="查看详情" :visible.sync="studentTableVisible" :width="logDialogWidth"></el-dialog>
|
|
|
+ <el-dialog title="查看详情" :visible.sync="studentTableVisible" :width="logDialogWidth">
|
|
|
+ <report-table :generation="studentGeneration" :optional-majors="studentMajors" readonly></report-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -70,9 +72,11 @@ import {
|
|
|
import ElectiveGenerationFlowLog from '@/views/elective/generation/components/elective-generation-flow-log'
|
|
|
import ElectiveFlowMajor from '@/views/elective/generation/components/elective-flow-major'
|
|
|
import ElectiveFlowRankDescriptor from '@/views/elective/generation/components/elective-flow-rank-descriptor'
|
|
|
+import ReportTable from '@/views/system/user/profile/components/report-table'
|
|
|
+import { getPrimaryElectivesModels, getStudentElectiveModels } from '@/api/webApi/elective/selected-subject'
|
|
|
|
|
|
export default {
|
|
|
- components: { ElectiveFlowRankDescriptor, ElectiveFlowMajor, ElectiveGenerationFlowLog, MxCondition },
|
|
|
+ components: { ReportTable, ElectiveFlowRankDescriptor, ElectiveFlowMajor, ElectiveGenerationFlowLog, MxCondition },
|
|
|
mixins: [transferMixin, groupTranslateMixin, ElectiveColorMap],
|
|
|
name: 'generation-detail',
|
|
|
computed: {
|
|
@@ -175,7 +179,9 @@ export default {
|
|
|
// log
|
|
|
logVisible: false,
|
|
|
logRow: {},
|
|
|
- studentTableVisible: false
|
|
|
+ studentTableVisible: false,
|
|
|
+ studentGeneration: {},
|
|
|
+ studentMajors: []
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -250,7 +256,26 @@ export default {
|
|
|
this.logVisible = true
|
|
|
},
|
|
|
handleStudentTable(row) {
|
|
|
- this.$alert('待填充')
|
|
|
+ this.loading = true
|
|
|
+ const query = {
|
|
|
+ generation: this.activeOpt.value,
|
|
|
+ studentId: row.studentId
|
|
|
+ }
|
|
|
+ const majors = this.majorsMap[query.studentId]?.majors || []
|
|
|
+ getStudentElectiveModels(query).then(res => {
|
|
|
+ this.studentMajors = majors
|
|
|
+ this.studentGeneration = {
|
|
|
+ options: config.electiveGenerationOptions,
|
|
|
+ current: query.generation,
|
|
|
+ currentOpt: this.activeOpt,
|
|
|
+ active: query.generation,
|
|
|
+ activeOpt: this.activeOpt,
|
|
|
+ roundGroups: this.prevData.groups,
|
|
|
+ models: res.data,
|
|
|
+ activeModels: res.data
|
|
|
+ }
|
|
|
+ this.studentTableVisible = true
|
|
|
+ }).finally(() => this.loading = false)
|
|
|
},
|
|
|
handleForceAdjust(group, row) {
|
|
|
let message = `确认将'${row.studentName}'调剂至'${group.groupName}'?!`
|