This commit is contained in:
lijing
2026-08-26 08:37:13 +08:00
parent f9205ccf77
commit 79ab93547c
6 changed files with 15 additions and 11 deletions
+8 -4
View File
@@ -4,9 +4,9 @@
<div class="top-header-bar">
<div class="left-info">
<span class="label">当前学生:</span>
<span class="text">{{ $route.query.studentName }}</span>
<span class="text">{{ studentName }}</span>
<span class="label" style="margin-left: 24px;">当前班级:</span>
<span class="text">{{ $route.query.className }}</span>
<span class="text">{{ className }}</span>
</div>
<Button type="primary" @click="goBack">返回上一级</Button>
</div>
@@ -15,7 +15,7 @@
<!-- 时间段+学校班级栏 -->
<div class="time-school-bar">
<span>日期:{{ item.yearDate }}</span>
<span style="margin-left: 20px;">{{ item.schoolName }} &nbsp;&nbsp;{{ item.className }}</span>
<span style="margin-left: 20px;">{{ item.schName }} &nbsp;&nbsp;{{ item.gradeName }}</span>
</div>
<!-- 科目教师卡片流式容器,超出纵向滚动 -->
@@ -37,6 +37,8 @@
name: 'StudentTeachDetail',
data() {
return {
studentName:'',
className:'',
// 科目+教师数据源(完全匹配截图)
HistoryClassTeachByStuIdList: []
}
@@ -56,7 +58,9 @@
_this.$api.get(APIConfig.BschClassSystem.getHistoryClassTeachByStuId, item, resp => {
if(resp.code==0)
{
this.HistoryClassTeachByStuIdList=resp.data;
this.studentName=resp.data.stuName;
this.className=resp.data.className;
this.HistoryClassTeachByStuIdList=resp.data.classTeachs;
}
});
},