|  | @@ -10,34 +10,10 @@
 | 
	
		
			
				|  |  |                          :key="index"
 | 
	
		
			
				|  |  |                          :title="getTitle(item)"
 | 
	
		
			
				|  |  |                          :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>
 | 
	
		
			
				|  |  |      <div v-if="dataList.length <= 0"
 | 
	
	
		
			
				|  | @@ -52,27 +28,46 @@ import dayjs from 'dayjs';
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  |    queryCourseAdjustDetail,
 | 
	
		
			
				|  |  |  } from "@/api/buildTeam";
 | 
	
		
			
				|  |  | +import infoMsgContent from './infoMsgContent'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    props: ['courseScheduleId'],
 | 
	
		
			
				|  |  |    data () {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | -      activeName: '',
 | 
	
		
			
				|  |  | -      dataList: []
 | 
	
		
			
				|  |  | +      activeName: 0,
 | 
	
		
			
				|  |  | +      dataList: [],
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  components: { infoMsgContent },
 | 
	
		
			
				|  |  |    mounted () {
 | 
	
		
			
				|  |  |      queryCourseAdjustDetail({ courseScheduleId: this.courseScheduleId }).then(res => {
 | 
	
		
			
				|  |  |        if (res.code == 200) {
 | 
	
		
			
				|  |  |          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: {
 | 
	
		
			
				|  |  | +    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) {
 | 
	
		
			
				|  |  | -      return item.operatorName + '在' + item.auditTime + '修改了'
 | 
	
		
			
				|  |  | +      return item.operatorName + ' 在 ' + item.createTime + ' 修改了'
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getTimers (item) {
 | 
	
		
			
				|  |  |        return diffTimerFormMinute(dayjs(item.classDate).format('YYYY-MM-DD'), dayjs(item.startClassTime).format('HH:mm'), dayjs(item.endClassTime).format('HH:mm'))
 |