|
|
@ -76,7 +76,12 @@ export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
curriculumId: "", |
|
|
|
curriculumId: "", |
|
|
|
curriculumList: [], |
|
|
|
curriculumList: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
cid: '', |
|
|
|
|
|
|
|
curriculumName: '不限' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
overview: {}, |
|
|
|
overview: {}, |
|
|
|
active: "practice", |
|
|
|
active: "practice", |
|
|
|
tabList: { |
|
|
|
tabList: { |
|
|
@ -105,8 +110,9 @@ export default { |
|
|
|
getschoolCourse() { // 获取课程下拉框数据 |
|
|
|
getschoolCourse() { // 获取课程下拉框数据 |
|
|
|
this.$get(this.api.schoolCourseByAchievement).then(res => { |
|
|
|
this.$get(this.api.schoolCourseByAchievement).then(res => { |
|
|
|
if (res.data && res.data.length) { |
|
|
|
if (res.data && res.data.length) { |
|
|
|
this.curriculumList = res.data; |
|
|
|
this.curriculumList = [...this.curriculumList, ...res.data] |
|
|
|
this.curriculumId = this.currId || this.curriculumList[0].cid |
|
|
|
this.curriculumId = this.currId || this.curriculumList[0].cid |
|
|
|
|
|
|
|
console.log(22, this.curriculumId) |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
console.log(err); |
|
|
|
console.log(err); |
|
|
@ -115,8 +121,7 @@ export default { |
|
|
|
getData() { // 获取实验概览数据 |
|
|
|
getData() { // 获取实验概览数据 |
|
|
|
this.$get(this.api.experimentOverview).then(res => { |
|
|
|
this.$get(this.api.experimentOverview).then(res => { |
|
|
|
this.overview = res.data; |
|
|
|
this.overview = res.data; |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => {}) |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
exportData() { // 导出 |
|
|
|
exportData() { // 导出 |
|
|
|
if (this.active == "practice") { |
|
|
|
if (this.active == "practice") { |
|
|
|