|
@@ -44,14 +44,14 @@
|
|
|
prop="teacherPhone"
|
|
|
label="签到状态">
|
|
|
<template slot-scope="scope">
|
|
|
- <div>{{ scope.row.signInStatus | attendanceType}}</div>
|
|
|
+ <div v-if="courseStatus != 'NOT_START'">{{ scope.row.signInStatus | attendanceType}}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align='center'
|
|
|
prop="teacherPhone"
|
|
|
label="签退状态">
|
|
|
<template slot-scope="scope">
|
|
|
- <div>{{ scope.row.signOutStatus | attendanceOutType}}</div>
|
|
|
+ <div v-if="courseStatus != 'NOT_START'">{{ scope.row.signOutStatus | attendanceOutType}}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align='center'
|
|
@@ -114,23 +114,20 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<el-button type="text"
|
|
|
- size="small"
|
|
|
v-permission="'teacherAttendance/updateTeacherAttendance'"
|
|
|
+ v-if="courseStatus != 'NOT_START'"
|
|
|
@click="mackAttendance(scope.row)">补考勤</el-button>
|
|
|
<el-button type="text"
|
|
|
- v-if="teachMode == 'OFFLINE'"
|
|
|
- size="small"
|
|
|
+ v-if="teachMode == 'OFFLINE' && courseStatus != 'NOT_START'"
|
|
|
@click="lookGPS(scope.row)">GPS定位</el-button>
|
|
|
<el-button type="text"
|
|
|
- size="small"
|
|
|
v-permission="'courseSchedule/queryTeacherSalary'"
|
|
|
@click="setCourseInfo(scope.row)">课酬调整</el-button>
|
|
|
<el-button
|
|
|
- size="small"
|
|
|
type="text"
|
|
|
v-permission="'teacherAttendance/update?page=teamCourseList'"
|
|
|
@click="hand(scope.row)"
|
|
|
- v-if="scope.row.signInStatus!=1||scope.row.signOutStatus!=1"
|
|
|
+ v-if="(scope.row.signInStatus!=1||scope.row.signOutStatus!=1) && courseStatus != 'NOT_START'"
|
|
|
>处理意见</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -222,7 +219,7 @@ import gpsLoction from "../componentCourse/gpsLocation";
|
|
|
import hand from '@/views/recodeManager/modals/hand'
|
|
|
export default {
|
|
|
components: { gpsLoction, hand },
|
|
|
- props: ['courseScheduleId', 'teachMode'],
|
|
|
+ props: ['courseScheduleId', 'teachMode', 'courseStatus'],
|
|
|
data () {
|
|
|
return {
|
|
|
tableList: [],
|
|
@@ -248,7 +245,7 @@ export default {
|
|
|
},
|
|
|
mounted () {
|
|
|
this.init()
|
|
|
- console.log(this.teachMode)
|
|
|
+ // console.log(this.teachMode, this.courseStatus)
|
|
|
},
|
|
|
activated () { },
|
|
|
methods: {
|