|
@@ -90,6 +90,7 @@ export default {
|
|
desc: '',
|
|
desc: '',
|
|
loading: false,
|
|
loading: false,
|
|
code: '',
|
|
code: '',
|
|
|
|
+ type: '本科',
|
|
tabActive: 0,
|
|
tabActive: 0,
|
|
defaultProps: {
|
|
defaultProps: {
|
|
children: 'children',
|
|
children: 'children',
|
|
@@ -110,11 +111,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- type() {
|
|
|
|
- const { eduLevel } = this.majorDetail
|
|
|
|
- const types = { 'ben': '本科', 'zhuan': '专科', 'gao_ben': '高职本科' }
|
|
|
|
- return types[eduLevel] || types.ben
|
|
|
|
- },
|
|
|
|
majorList() {
|
|
majorList() {
|
|
if (this.type == '本科') return this.masterMajorList
|
|
if (this.type == '本科') return this.masterMajorList
|
|
if (this.type == '专科') return this.specialtyMajorList
|
|
if (this.type == '专科') return this.specialtyMajorList
|
|
@@ -129,6 +125,10 @@ export default {
|
|
if (newVal == 0) this.getOverView()
|
|
if (newVal == 0) this.getOverView()
|
|
if (newVal == 1) this.getCareerProspects()
|
|
if (newVal == 1) this.getCareerProspects()
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ 'majorDetail.eduLevel': function(level) {
|
|
|
|
+ const types = { 'ben': '本科', 'zhuan': '专科', 'gao_ben': '高职本科' }
|
|
|
|
+ this.type = types[level] || types.ben
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|