|
@@ -10,34 +10,10 @@
|
|
:key="index"
|
|
:key="index"
|
|
:title="getTitle(item)"
|
|
:title="getTitle(item)"
|
|
:name="index">
|
|
:name="index">
|
|
- <el-form :inline='true'>
|
|
|
|
- <el-form-item label="课程名称"
|
|
|
|
- style="width:300px">
|
|
|
|
- <div>{{item.name}}</div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="主教老师"
|
|
|
|
- style="width:300px">
|
|
|
|
- <div>{{item.actualTeacherName}}</div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <br>
|
|
|
|
- <el-form-item label="助教老师"
|
|
|
|
- style="width:300px">
|
|
|
|
- <div>{{item.teacherName}}</div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="上课时间"
|
|
|
|
- style="width:300px">
|
|
|
|
- <div>{{ item.startClassTime ? item.startClassTime.substr(0, 16) : '' }}-{{ item.endClassTime ? item.endClassTime.substr(11,5) : ''}}</div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <br>
|
|
|
|
- <el-form-item label="课程时长"
|
|
|
|
- style="width:300px">
|
|
|
|
- <div>{{getTimers(item)}}分钟</div>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="课程类型"
|
|
|
|
- style="width:300px">
|
|
|
|
- <div>{{item.teachMode| teachMode}}</div>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ <infoMsgContent
|
|
|
|
+ :before="item.previousCourseSchedule"
|
|
|
|
+ :after="item.currentCourseSchedule"
|
|
|
|
+ />
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
</el-collapse>
|
|
</el-collapse>
|
|
<div v-if="dataList.length <= 0"
|
|
<div v-if="dataList.length <= 0"
|
|
@@ -52,27 +28,46 @@ import dayjs from 'dayjs';
|
|
import {
|
|
import {
|
|
queryCourseAdjustDetail,
|
|
queryCourseAdjustDetail,
|
|
} from "@/api/buildTeam";
|
|
} from "@/api/buildTeam";
|
|
|
|
+import infoMsgContent from './infoMsgContent'
|
|
export default {
|
|
export default {
|
|
props: ['courseScheduleId'],
|
|
props: ['courseScheduleId'],
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- activeName: '',
|
|
|
|
- dataList: []
|
|
|
|
|
|
+ activeName: 0,
|
|
|
|
+ dataList: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ components: { infoMsgContent },
|
|
mounted () {
|
|
mounted () {
|
|
queryCourseAdjustDetail({ courseScheduleId: this.courseScheduleId }).then(res => {
|
|
queryCourseAdjustDetail({ courseScheduleId: this.courseScheduleId }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
- this.dataList = res.data
|
|
|
|
|
|
+ this.dataList = res.data.map(item => {
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ currentCourseSchedule: this.filterKeys(JSON.parse(item.currentCourseSchedule)),
|
|
|
|
+ previousCourseSchedule: this.filterKeys(JSON.parse(item.previousCourseSchedule)),
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- console.log(this.courseScheduleId)
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ filterKeys(item) {
|
|
|
|
+ return {
|
|
|
|
+ name: item.name,
|
|
|
|
+ actualTeacherName: item.actualTeacherName,
|
|
|
|
+ teacherName: item.teacherName,
|
|
|
|
+ startClassTime: item.startClassTime,
|
|
|
|
+ classDate: item.classDate,
|
|
|
|
+ endClassTime: item.endClassTime,
|
|
|
|
+ teachMode: item.teachMode,
|
|
|
|
+ timers: this.getTimers(item)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getTitle (item) {
|
|
getTitle (item) {
|
|
- return item.operatorName + '在' + item.auditTime + '修改了'
|
|
|
|
|
|
+ return item.operatorName + ' 在 ' + item.createTime + ' 修改了'
|
|
},
|
|
},
|
|
getTimers (item) {
|
|
getTimers (item) {
|
|
return diffTimerFormMinute(dayjs(item.classDate).format('YYYY-MM-DD'), dayjs(item.startClassTime).format('HH:mm'), dayjs(item.endClassTime).format('HH:mm'))
|
|
return diffTimerFormMinute(dayjs(item.classDate).format('YYYY-MM-DD'), dayjs(item.startClassTime).format('HH:mm'), dayjs(item.endClassTime).format('HH:mm'))
|