|
@@ -27,6 +27,10 @@
|
|
|
v-permission="'courseSchedule/batchUpdateCourseSchedule'"
|
|
|
@click="adjustment"
|
|
|
>批量调整</div>
|
|
|
+ <!-- <div class="newBand"
|
|
|
+ v-permission="'courseSchedule/updateCoursesExpireDate'"
|
|
|
+ @click="onCourseExpireDate"
|
|
|
+ >有效期调整</div> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="tableWrap">
|
|
@@ -104,6 +108,8 @@
|
|
|
v-show="scope.row.status == 'NOT_START'&&courseType!='TRIAL'"
|
|
|
@click="resetTeacher(scope.row)"
|
|
|
>更换老师</el-button>
|
|
|
+ <!-- <el-button v-if="scope.row.status == 'OVER' && !scope.row.settlementTime && permission('teacherAttendance/updateTeacherAttendance', '/teamCourseList')" type="text" @click="onMarkAttendance(scope.row)"
|
|
|
+ >补考勤</el-button> -->
|
|
|
<el-button
|
|
|
type="text"
|
|
|
v-permission="'accompanys/cleanAttendance'"
|
|
@@ -122,6 +128,22 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <el-dialog title="补考勤" width="400px" :visible.sync="markAttendance.status">
|
|
|
+ <el-form>
|
|
|
+ <el-form-item label="签到状态">{{ markAttendance.dataInfo.isSignIn | attendanceType }}</el-form-item>
|
|
|
+ <el-form-item label="签到时间">{{ markAttendance.dataInfo.signInTime}}</el-form-item>
|
|
|
+ <el-form-item label="签退状态">{{ markAttendance.dataInfo.isSignOut | attendanceOutType }}</el-form-item>
|
|
|
+ <el-form-item label="签退时间">{{ markAttendance.dataInfo.signOutTime}}</el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="markAttendance.status = false">取 消</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :disabled="markAttendance.dataInfo.isSignIn == 1 && markAttendance.dataInfo.isSignOut == 1 ? true : false"
|
|
|
+ @click="batchAdjustmentTime"
|
|
|
+ >确定补卡</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog title="课程调整" width="400px" :before-close="handleClose" :visible.sync="courseVisible">
|
|
|
<el-form
|
|
|
:model="maskForm"
|
|
@@ -341,6 +363,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
+import { permission } from "@/utils/directivePage";
|
|
|
import {
|
|
|
findPracticeGroupCourseSchedules,
|
|
|
practiceCourseAdjus,
|
|
@@ -352,7 +375,8 @@ import {
|
|
|
batchAddCourses,
|
|
|
getPracticeApplySubjects,
|
|
|
batchUpdateCourseSchedule,
|
|
|
- findEducationUsers
|
|
|
+ findEducationUsers,
|
|
|
+ updateTeacherAttendance
|
|
|
} from "@/api/buildTeam";
|
|
|
import {
|
|
|
vipCourseAdjust,
|
|
@@ -453,7 +477,13 @@ export default {
|
|
|
],
|
|
|
activeList: [],
|
|
|
educationList: [],
|
|
|
- timers: null
|
|
|
+ timers: null,
|
|
|
+ courseExpireDate: null, // 结束时间
|
|
|
+ markAttendance: {
|
|
|
+ // 考勤状态
|
|
|
+ status: false,
|
|
|
+ dataInfo: {}
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -467,7 +497,6 @@ export default {
|
|
|
this.practiceId = this.$route.query.id;
|
|
|
this.userId = this.$route.query.userId;
|
|
|
this.courseType = this.$route.query.type;
|
|
|
- console.log( this.courseType)
|
|
|
if (this.$route.query.rules) {
|
|
|
this.Frules = this.$route.query.rules;
|
|
|
}
|
|
@@ -510,10 +539,39 @@ export default {
|
|
|
this.courseData[0].coursesStartDate.substring(0, 10) +
|
|
|
"至" +
|
|
|
this.courseData[0].coursesExpireDate.substring(0, 10);
|
|
|
+ this.courseExpireDate = this.courseData[0].coursesExpireDate.substring(0, 10);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ permission(str, parent) {
|
|
|
+ return permission(str, parent);
|
|
|
+ },
|
|
|
+ onMarkAttendance(item) {
|
|
|
+ // 补考勤
|
|
|
+ this.markAttendance = {
|
|
|
+ status: true,
|
|
|
+ dataInfo: item
|
|
|
+ };
|
|
|
+ },
|
|
|
+ batchAdjustmentTime() {
|
|
|
+ let tempData = this.markAttendance.dataInfo;
|
|
|
+ let params = {
|
|
|
+ teacherId: tempData.actualTeacherId,
|
|
|
+ courseScheduleId: tempData.id,
|
|
|
+ signInStatus: 1,
|
|
|
+ signOutStatus: 1
|
|
|
+ };
|
|
|
+ updateTeacherAttendance(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("补卡成功");
|
|
|
+ this.markAttendance.status = false;
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
getList() {
|
|
|
findPracticeGroupCourseSchedules({ practiceId: this.practiceId }).then(
|
|
|
res => {
|
|
@@ -658,6 +716,10 @@ export default {
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
+ onCourseExpireDate() {
|
|
|
+ // 修改课程有效期
|
|
|
+
|
|
|
+ },
|
|
|
adjustment() {
|
|
|
this.adjustmentName = "批量调整";
|
|
|
this.isaddCourse = false;
|