提交讲师

This commit is contained in:
李志发
2024-05-15 13:29:03 +08:00
parent 8c36c4fa8e
commit 700dee82c9
38 changed files with 3158 additions and 385 deletions

View File

@@ -0,0 +1,111 @@
<script>
import {addTeacher, getCertificationProcess, setOfflineTutoring} from "@/api/modules/lecturer";
export default {
name: "",
data(){
return{
options: [],
value: '',
value2:'',
teacherId:''
}
},
mounted() {
//读取路由参数
this.teacherId=this.$route.query.teacherId
//获取老师列表
this.getTeacherList()
},
methods:{
getTeacherList() {
addTeacher({pageNo:1,pageSize:100,keyword:''}).then(res=>{
this.options = res.data.map(item => {
return { value: item.realName, label: item.realName };
});
})
},
getCoachingTeacher(){
console.log(this.value)
},
getJump(){
let tutor=this.value.join(',')
let tutorTime=this.value2
if (tutor==''||tutorTime==''){
this.$message({
message: '请填写必填信息',
type: 'error'
});
}else {
setOfflineTutoring({teacherId:this.teacherId,tutor,tutorTime}).then(res=>{
this.$router.push({
path:'/need/twocoachingsuccess',
query:{
teacherId:this.teacherId
}
})
})
}
}
}
}
</script>
<template>
<div>
<div class="title">线下辅导</div>
<el-container>
<div class="form-table">
<div class="tip" style="margin-bottom: 20px;color: #d7d7d7;margin-left: 50px">您还未完成线下辅导快去约辅导老师辅导课件吧</div>
<el-form label-width="140px" >
<el-form-item required label="辅导老师:">
<el-select
v-model="value"
multiple
filterable
remote
reserve-keyword
placeholder="请输入辅导老师姓名"
@change="getCoachingTeacher"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item required label="辅导时间:">
<el-date-picker
v-model="value2"
type="date"
placeholder="选择日期"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>
<el-button type="primary" size="medium" style="margin-top: 20px;margin-left: 120px" @click="getJump()">已完成</el-button>
</el-form>
<div class="tip" style="margin-bottom: 20px;margin-left: 50px;color: #797979;margin-top: 24px">提示如若未完成线下辅导请勿点击已完成</div>
</div>
</el-container>
</div>
</template>
<style scoped lang="scss">
.title{
font-size: 16px;
font-weight: 800;
width: 850px;
border-bottom: 1px solid rgba(215, 215, 215, 0.66);
padding: 2px 2px 20px 2px;
}
.form-table{
width: 850px;
margin-top: 20px;
}
</style>