|
@@ -48,10 +48,10 @@
|
|
|
</el-form-item>
|
|
|
<el-row type="flex" justify="center" align="middle">
|
|
|
<el-col :span="5">
|
|
|
- <el-button type="primary" @click="saveLessson(item.class)" size="mini">保存班级课程</el-button>
|
|
|
+ <el-button type="primary" @click="saveLessson(item.classid)" size="mini">保存班级课程</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
- <el-button type="primary" @click="toPreview(item.class)" plain size="mini">课表预览</el-button>
|
|
|
+ <el-button type="primary" @click="toPreview(item.classid)" plain size="mini">课表预览</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
@@ -391,13 +391,14 @@ export default {
|
|
|
this.toGetTeacherList({ query, type });
|
|
|
},
|
|
|
saveLessson(id) {
|
|
|
- let tcc = this.classList.find(f => f.class === id);
|
|
|
-
|
|
|
+ let tcc = this.classList.find(f => f.classid === id);
|
|
|
// // 礼仪课,开班地点,教师地点,拓展训练地点修改班级表
|
|
|
this.$emit(`save`, tcc);
|
|
|
},
|
|
|
toPreview(id) {
|
|
|
- let tcc = this.classList.find(f => f.class === id);
|
|
|
+ console.log(id);
|
|
|
+ let tcc = this.classList.find(f => f.classid === id);
|
|
|
+ console.log(this.classList);
|
|
|
let numArr = tcc.name.match(/\d+/g);
|
|
|
let term = numArr[0];
|
|
|
let classes = numArr[2];
|