修改bug3.0

This commit is contained in:
李志发
2024-05-22 12:20:10 +08:00
parent c7267a0acd
commit 958a93c935
14 changed files with 354 additions and 320 deletions

View File

@@ -1,5 +1,5 @@
<script>
import {addTeacher, getCertificationProcess, setOfflineTutoring} from "@/api/modules/lecturer";
import {addTeacher, getCertificationProcess, getTeacherInfo, setOfflineTutoring} from "@/api/modules/lecturer";
import processStatus from "@/components/processStatus.vue";
export default {
@@ -10,7 +10,8 @@ export default {
options: [],
value: '',
value2:'',
teacherId:''
teacherId:'',
pid:''
}
},
created() {
@@ -18,6 +19,9 @@ export default {
this.teacherId=this.$route.query.teacherId
//获取老师列表
this.getTeacherList()
getTeacherInfo({teacherId:this.teacherId}).then(res=> {
this.pid = res.data[0].pid
})
},
methods:{
getTeacherList() {
@@ -56,7 +60,7 @@ export default {
<template>
<div>
<process-status :teacherId="teacherId"></process-status>
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
<div class="title">二次线下辅导</div>
<el-container>
<div class="form-table">
@@ -83,9 +87,9 @@ export default {
<el-form-item required label="辅导时间:">
<el-date-picker
v-model="value2"
type="date"
type="datetime"
placeholder="选择日期"
format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>