|
@@ -108,7 +108,8 @@ import ReportTable from '@/views/system/user/profile/components/report-table'
|
|
|
import {
|
|
|
getOptionalMajors,
|
|
|
getRecommendMajor,
|
|
|
- getStudentElectiveModels
|
|
|
+ getData,
|
|
|
+ getPrimaryElectivesModels
|
|
|
} from '@/api/webApi/elective/ selected-subject'
|
|
|
|
|
|
export default {
|
|
@@ -137,7 +138,8 @@ export default {
|
|
|
//
|
|
|
selectObj: null,
|
|
|
allowSelect: true,
|
|
|
- submitting: false
|
|
|
+ submitting: false,
|
|
|
+ propData: {},
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -154,22 +156,31 @@ export default {
|
|
|
this.getOptionalMajors()
|
|
|
this.getReportList()
|
|
|
this.getRecommendMajor()
|
|
|
+ this.getData()
|
|
|
},
|
|
|
methods: {
|
|
|
- async getRecommendMajor() {
|
|
|
- const res = await getRecommendMajor()
|
|
|
- this.evaluationMajors= res.data
|
|
|
+ async getData() {
|
|
|
+ const res = await getData()
|
|
|
+ this.propData = res.data
|
|
|
},
|
|
|
- async getReportList() {
|
|
|
- const res = await getStudentElectiveModels()
|
|
|
- this.reportInfo = res.data
|
|
|
- this.$refs.reportRef.init(this.reportInfo)
|
|
|
+ getRecommendMajor() {
|
|
|
+ getRecommendMajor().then(res => {
|
|
|
+ this.evaluationMajors= res.data
|
|
|
+ })
|
|
|
},
|
|
|
- async getOptionalMajors() {
|
|
|
- const res = await getOptionalMajors()
|
|
|
- this.optionalMajors = res.data
|
|
|
- this.$refs.reportRef.initOption(this.optionalMajors)
|
|
|
- console.log(res)
|
|
|
+ getReportList() {
|
|
|
+ getPrimaryElectivesModels().then(res => {
|
|
|
+ this.reportInfo= res.data
|
|
|
+ this.$refs.reportRef.init(this.reportInfo)
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ getOptionalMajors() {
|
|
|
+ getOptionalMajors().then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.optionalMajors= res.data.reverse().splice(0,6)
|
|
|
+ this.$refs.reportRef.initOption(this.optionalMajors)
|
|
|
+ })
|
|
|
},
|
|
|
loadStudentSelected() {
|
|
|
getStudentSelected().then(res => {
|