mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
修改逻辑
This commit is contained in:
@@ -68,9 +68,16 @@ export default {
|
|||||||
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
||||||
this.form.teacherName=res.data[0].teacherName
|
this.form.teacherName=res.data[0].teacherName
|
||||||
this.form.teacherNo=res.data[0].teacherNo
|
this.form.teacherNo=res.data[0].teacherNo
|
||||||
|
this.form.courseContent_1=res.data[0].courseContent.split('/')
|
||||||
|
this.form.courseIntroduction=res.data[0].courseIntroduction
|
||||||
|
this.form.courseName=res.data[0].courseName
|
||||||
this.form.orgName=res.data[0].orgName
|
this.form.orgName=res.data[0].orgName
|
||||||
this.form.positionName=res.data[0].positionName
|
this.form.positionName=res.data[0].positionName
|
||||||
this.form.bandCode=res.data[0].bandCode
|
this.form.bandCode=res.data[0].bandCode
|
||||||
|
//获取初始值
|
||||||
|
this.form.courseNameOne=res.data[0].courseName
|
||||||
|
this.form.courseIntroductionOne=res.data[0].courseIntroduction
|
||||||
|
this.form.courseContent_2=res.data[0].courseContent
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSubmit(formName){
|
onSubmit(formName){
|
||||||
@@ -86,9 +93,9 @@ export default {
|
|||||||
this.form.courseContent = this.form.courseContent_1.join('/');
|
this.form.courseContent = this.form.courseContent_1.join('/');
|
||||||
setOfflineTutoring(
|
setOfflineTutoring(
|
||||||
{teacherId:this.teacherId,
|
{teacherId:this.teacherId,
|
||||||
courseName:this.form.courseName,
|
courseName:this.form.courseNameOne==this.form.courseName?null:this.form.courseName,
|
||||||
courseContent:this.form.courseContent,
|
courseContent:this.form.courseContent_2==this.form.courseContent?null:this.form.courseContent,
|
||||||
courseIntroduction:this.form.courseIntroduction,
|
courseIntroduction:this.form.courseIntroductionOne==this.form.courseIntroduction?null:this.form.courseIntroduction,
|
||||||
coursewareUrl:this.form.coursewareUrl,
|
coursewareUrl:this.form.coursewareUrl,
|
||||||
coursewareName:this.form.coursewareName,
|
coursewareName:this.form.coursewareName,
|
||||||
version:1
|
version:1
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import {mapActions, mapGetters} from "vuex";
|
import {mapActions, mapGetters} from "vuex";
|
||||||
import {getCertificationProcess, getTeacherInfo, setOfflineTutoring, treeList} from "@/api/modules/lecturer"
|
import {getCertificationProcess, getTeacherInfo, setOfflineTutoring, treeList} from "@/api/modules/lecturer"
|
||||||
export default {
|
export default {
|
||||||
name: "FirstDraftTwo",
|
name: "FirstDraft",
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo'])
|
...mapGetters(['userInfo'])
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ export default {
|
|||||||
<div class="uc-course" v-for="(item, idx) in couresList" :key="idx" >
|
<div class="uc-course" v-for="(item, idx) in couresList" :key="idx" >
|
||||||
<div class="uc-course-img" style="width: 212px;height:119px">
|
<div class="uc-course-img" style="width: 212px;height:119px">
|
||||||
<!-- <course-image :course="item"></course-image>-->
|
<!-- <course-image :course="item"></course-image>-->
|
||||||
<img :src="item.cover.split('elearning')[1]">
|
<img :src="item.cover">
|
||||||
</div>
|
</div>
|
||||||
<div class="uc-course-info">
|
<div class="uc-course-info">
|
||||||
<div class="uc-course-name">
|
<div class="uc-course-name">
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default {
|
|||||||
this.teacherId=this.$route.query.teacherId
|
this.teacherId=this.$route.query.teacherId
|
||||||
//获取教师基本信息
|
//获取教师基本信息
|
||||||
this.baseInfo()
|
this.baseInfo()
|
||||||
this.getReviewResult()
|
// this.getReviewResult()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
//前往二次认证
|
//前往二次认证
|
||||||
@@ -43,7 +43,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//获取认证结果
|
//获取认证结果
|
||||||
getReviewResult(){
|
getReviewResult(){
|
||||||
getReviewResult({teacherId:this.teacherId}).then(res=>{
|
getReviewResult({teacherId:this.pid}).then(res=>{
|
||||||
this.result=res.data
|
this.result=res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -73,6 +73,7 @@ export default {
|
|||||||
this.form.coursewareName=res.data[0].examineCourseware.coursewareName
|
this.form.coursewareName=res.data[0].examineCourseware.coursewareName
|
||||||
this.pid=res.data[0].pid
|
this.pid=res.data[0].pid
|
||||||
//获取学习进度
|
//获取学习进度
|
||||||
|
this.getReviewResult()
|
||||||
this.addTeacher()
|
this.addTeacher()
|
||||||
this.getStatus()
|
this.getStatus()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user