|
@@ -18,15 +18,15 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-card>
|
|
|
- <div v-if="allowSelect">
|
|
|
+ <div v-if="electiveVisible">
|
|
|
<!-- 自选专业 推荐专业 -->
|
|
|
<select-subject class="mt20" :evaluationMajors="evaluationMajors" :optionalMajors="optionalMajors"
|
|
|
:list="activeModel ? activeModel.models : []"></select-subject>
|
|
|
<!-- 选科报名表 -->
|
|
|
- <el-card class="box-card mt20" >
|
|
|
+ <el-card class="box-card mt20">
|
|
|
<template #header>
|
|
|
- <elective-generation-steps v-model="activeStep" v-if="selectObj" :generation="generation"
|
|
|
- disable-hidden-feature ></elective-generation-steps>
|
|
|
+ <elective-generation-steps v-model="activeStep" v-if="selectObj" :generation="generation"
|
|
|
+ disable-hidden-feature></elective-generation-steps>
|
|
|
</template>
|
|
|
<report-table v-if="activeModel&&activeModel.models" :generation="generation"
|
|
|
:optional-majors="optionalMajors"></report-table>
|
|
@@ -88,13 +88,15 @@ export default {
|
|
|
evaluationMajors: [],
|
|
|
//
|
|
|
selectObj: null,
|
|
|
- allowSelect: false,
|
|
|
stepOptions: config.electiveGenerationOptions,
|
|
|
activeStep: '',
|
|
|
generationModels: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ electiveVisible() {
|
|
|
+ return this.selectObj?.allowSelect || this.selectObj?.currentGeneration > this.stepOptions.init.value
|
|
|
+ },
|
|
|
emptyTitle() {
|
|
|
if (!this.activeOpt) return
|
|
|
if (this.activeModel && !this.activeModel.models && this.activeOpt.decisionMaking) {
|
|
@@ -188,13 +190,13 @@ export default {
|
|
|
loadStudentSelected() {
|
|
|
getStudentSelected().then(res => {
|
|
|
console.log('getStudentSelected', res)
|
|
|
+ // 往下转移属性allowSelect、currentGeneration、preferenceCount
|
|
|
const status = res.data['selectResult']
|
|
|
- status.currentGeneration = res.data.currentGeneration || 9
|
|
|
- status.preferenceCount = res.data.preferenceCount || 3
|
|
|
- this.selectObj = res.data['selectResult']
|
|
|
- this.allowSelect = res.data.allowSelect
|
|
|
- if(this.allowSelect || res.data.currentGeneration >= 7) {
|
|
|
- this.allowSelect = true
|
|
|
+ status.allowSelect = res.data.allowSelect
|
|
|
+ status.currentGeneration = res.data.currentGeneration
|
|
|
+ status.preferenceCount = res.data.preferenceCount
|
|
|
+ this.selectObj = status
|
|
|
+ if (this.electiveVisible) {
|
|
|
this.loadStudentElectiveModels()
|
|
|
this.getOptionalMajors()
|
|
|
this.getRecommendMajor()
|
|
@@ -212,7 +214,7 @@ export default {
|
|
|
goStudyReportDemoOnline() {
|
|
|
const path = 'https://online.fliphtml5.com/jkrou/hjig/'
|
|
|
window.open(path)
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|