mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
Merge branch 'zcwy0417-out' into dev0515
This commit is contained in:
BIN
src/assets/images/E-learning2.png
Normal file
BIN
src/assets/images/E-learning2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
@@ -2,7 +2,10 @@
|
|||||||
import {getCertificationProcess} from "@/api/modules/lecturer";
|
import {getCertificationProcess} from "@/api/modules/lecturer";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['teacherId'],
|
props: {
|
||||||
|
teacherId:String,
|
||||||
|
pid:String
|
||||||
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
status:{
|
status:{
|
||||||
@@ -11,167 +14,72 @@ export default {
|
|||||||
onlineLearning:1,
|
onlineLearning:1,
|
||||||
offlineTutoring:1,
|
offlineTutoring:1,
|
||||||
endStatus:1,
|
endStatus:1,
|
||||||
reviewResult:2,
|
reviewResult:3,
|
||||||
offlineTutoring1:1,
|
offlineTutoring1:1,
|
||||||
endStatus1:1,
|
endStatus1:1,
|
||||||
reviewResult1:2,
|
reviewResult1:3,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
created() {
|
||||||
this.getCertificationProcess()
|
if (this.pid==null || this.pid==''){
|
||||||
|
this.getCertificationProcess()
|
||||||
|
}else {
|
||||||
|
this.getCertificationProcess()
|
||||||
|
this.getCertificationProcess1()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
teacherId: {
|
||||||
|
handler(newVal) {
|
||||||
|
if (newVal) {
|
||||||
|
console.log(newVal)
|
||||||
|
this.getCertificationProcess()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getCertificationProcess(){
|
getCertificationProcess(){
|
||||||
getCertificationProcess({teacherId:this.teacherId}).then(res=>{
|
getCertificationProcess({teacherId:this.teacherId}).then(res=>{
|
||||||
let data=res.data
|
let data=res.data
|
||||||
if (data.secondResult==0 && data.reviewResult==0){
|
if(data.draftStatus==0){
|
||||||
this.status={
|
this.status.draftStatus=0
|
||||||
secondResult:0,
|
if (data.onlineLearning==0){
|
||||||
draftStatus:0,
|
this.status.onlineLearning=0
|
||||||
onlineLearning:0,
|
if (data.offlineTutoring==0){
|
||||||
offlineTutoring:0,
|
this.status.offlineTutoring=0
|
||||||
endStatus:0,
|
if (data.endStatus==0){
|
||||||
reviewResult:1,
|
console.log(22222)
|
||||||
offlineTutoring1:0,
|
this.status.endStatus=0
|
||||||
endStatus1:0,
|
this.status.reviewResult=data.reviewResult
|
||||||
reviewResult1:0,
|
}
|
||||||
}
|
}
|
||||||
}else if (data.secondResult==0 && data.reviewResult==1){
|
}else if(data.onlineLearning==2){
|
||||||
this.status={
|
this.status.onlineLearning=2
|
||||||
secondResult:0,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:1,
|
|
||||||
offlineTutoring1:0,
|
|
||||||
endStatus1:0,
|
|
||||||
reviewResult1:1,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==0 && data.endStatus==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:0,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:1,
|
|
||||||
offlineTutoring1:0,
|
|
||||||
endStatus1:0,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==0 && data.offlineTutoring==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:0,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:1,
|
|
||||||
offlineTutoring1:0,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==0 && data.reviewResult==2){
|
|
||||||
this.status={
|
|
||||||
secondResult:0,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:1,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
} else if (data.secondResult==1 && data.reviewResult==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:0,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==1 && data.reviewResult==1){
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:1,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==1 && data.endStatus==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:0,
|
|
||||||
reviewResult:2,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==1 && data.offlineTutoring==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:0,
|
|
||||||
endStatus:1,
|
|
||||||
reviewResult:2,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==1 && data.onlineLearning==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:0,
|
|
||||||
offlineTutoring:1,
|
|
||||||
endStatus:1,
|
|
||||||
reviewResult:2,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else if (data.secondResult==1 && data.draftStatus==0){
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:0,
|
|
||||||
onlineLearning:1,
|
|
||||||
offlineTutoring:1,
|
|
||||||
endStatus:1,
|
|
||||||
reviewResult:2,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:2,
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
this.status={
|
|
||||||
secondResult:1,
|
|
||||||
draftStatus:1,
|
|
||||||
onlineLearning:1,
|
|
||||||
offlineTutoring:1,
|
|
||||||
endStatus:1,
|
|
||||||
reviewResult:2,
|
|
||||||
offlineTutoring1:1,
|
|
||||||
endStatus1:1,
|
|
||||||
reviewResult1:3,
|
|
||||||
}
|
}
|
||||||
|
}else if (data.draftStatus==2){
|
||||||
|
this.status.draftStatus=2
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
getCertificationProcess1(){
|
||||||
|
getCertificationProcess({teacherId:this.pid}).then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
let data=res.data
|
||||||
|
if(data.secondResult==0){
|
||||||
|
this.status.secondResult=0
|
||||||
|
if (data.offlineTutoring==0){
|
||||||
|
this.status.offlineTutoring1=0
|
||||||
|
if (data.endStatus==0){
|
||||||
|
this.status.endStatus1=0
|
||||||
|
this.status.reviewResult1=data.reviewResult
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -188,7 +96,8 @@ export default {
|
|||||||
<div class="process">
|
<div class="process">
|
||||||
<img src="../assets/images/E-learning1.png" alt="" v-if="status.onlineLearning==0">
|
<img src="../assets/images/E-learning1.png" alt="" v-if="status.onlineLearning==0">
|
||||||
<img src="../assets/images/E-learning.png" alt="" v-if="status.onlineLearning==1">
|
<img src="../assets/images/E-learning.png" alt="" v-if="status.onlineLearning==1">
|
||||||
<div :class="status.onlineLearning==1?'tim1':'tim'">{{status.onlineLearning==1?'线上学习未完成':'线上学习已完成'}}</div>
|
<img src="../assets/images/E-learning2.png" alt="" v-if="status.onlineLearning==2">
|
||||||
|
<div :class="status.onlineLearning==1?'tim1':status.onlineLearning==2?'tim3':'tim'">{{status.onlineLearning==1?'线上学习未完成':status.onlineLearning==2?'线上学习进行中':'线上学习已完成'}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="status.onlineLearning==1?'line1':'line'"></div>
|
<div :class="status.onlineLearning==1?'line1':'line'"></div>
|
||||||
<div class="process">
|
<div class="process">
|
||||||
@@ -209,9 +118,9 @@ export default {
|
|||||||
<img src="../assets/images/certification3.png" alt="" v-if="status.reviewResult==1">
|
<img src="../assets/images/certification3.png" alt="" v-if="status.reviewResult==1">
|
||||||
<img src="../assets/images/certification1.png" alt="" v-if="status.reviewResult==0">
|
<img src="../assets/images/certification1.png" alt="" v-if="status.reviewResult==0">
|
||||||
<div :class="status.reviewResult==3?'tim1':status.reviewResult==2?'tim3':status.reviewResult==1?'tim2':'tim'">
|
<div :class="status.reviewResult==3?'tim1':status.reviewResult==2?'tim3':status.reviewResult==1?'tim2':'tim'">
|
||||||
{{status.reviewResult==3?'未认证':status.reviewResult==2?'认证中':status.reviewResult==1?'认证未通过':'认证通过'}}</div>
|
{{status.reviewResult==3?'未认证':status.reviewResult==2?'认证':status.reviewResult==1?'认证未通过':'认证通过'}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="status.reviewResult==3?'line1':status.reviewResult==2?'line3':status.reviewResult==1?'line2':'line'" v-if="status.secondResult==0"></div>
|
<div :class="status.reviewResult==3?'line1':status.reviewResult==2?'line':status.reviewResult==1?'line':'line'" v-if="status.secondResult==0"></div>
|
||||||
<div class="process" v-if="status.secondResult==0">
|
<div class="process" v-if="status.secondResult==0">
|
||||||
<img src="../assets/images/tutoring1.png" alt="" v-if="status.offlineTutoring1==0">
|
<img src="../assets/images/tutoring1.png" alt="" v-if="status.offlineTutoring1==0">
|
||||||
<img src="../assets/images/tutoring.png" alt="" v-if="status.offlineTutoring1==1">
|
<img src="../assets/images/tutoring.png" alt="" v-if="status.offlineTutoring1==1">
|
||||||
@@ -230,7 +139,7 @@ export default {
|
|||||||
<img src="../assets/images/certification3.png" alt="" v-if="status.reviewResult1==1">
|
<img src="../assets/images/certification3.png" alt="" v-if="status.reviewResult1==1">
|
||||||
<img src="../assets/images/certification1.png" alt="" v-if="status.reviewResult1==0">
|
<img src="../assets/images/certification1.png" alt="" v-if="status.reviewResult1==0">
|
||||||
<div :class="status.reviewResult1==3?'tim1':status.reviewResult1==2?'tim3':status.reviewResult1==1?'tim2':'tim'">
|
<div :class="status.reviewResult1==3?'tim1':status.reviewResult1==2?'tim3':status.reviewResult1==1?'tim2':'tim'">
|
||||||
{{status.reviewResult1==3?'未认证':status.reviewResult1==2?'认证中':status.reviewResult1==1?'认证未通过':'认证通过'}}</div>
|
{{status.reviewResult1==3?'未认证':status.reviewResult1==2?'认证':status.reviewResult1==1?'认证未通过':'认证通过'}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -84,9 +84,9 @@ export default {
|
|||||||
<el-form-item required label="辅导时间:">
|
<el-form-item required label="辅导时间:">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value2"
|
v-model="value2"
|
||||||
type="date"
|
type="datetime"
|
||||||
placeholder="选择日期"
|
placeholder="选择日期"
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
format="yyyy-MM-dd HH:mm"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss">
|
value-format="yyyy-MM-dd HH:mm:ss">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -137,7 +137,9 @@ export default {
|
|||||||
<div>
|
<div>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="认证课程名称:" prop="courseName">
|
<el-form-item label="认证课程名称:" prop="courseName">
|
||||||
{{ form.courseName }}
|
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
|
||||||
|
{{ form.courseName }}
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11" :offset="2">
|
<el-col :span="11" :offset="2">
|
||||||
@@ -162,7 +164,7 @@ export default {
|
|||||||
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
||||||
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="courseName">{{ item.courseName }}</div>
|
<div class="courseName" :title="item.courseName">{{ item.courseName }}</div>
|
||||||
<div class="smallTitle">当前进度</div>
|
<div class="smallTitle">当前进度</div>
|
||||||
<el-progress :percentage="parseInt(item.progress)" :color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
<el-progress :percentage="parseInt(item.progress)" :color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||||
</div>
|
</div>
|
||||||
@@ -220,6 +222,11 @@ export default {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.smallTitle {
|
.smallTitle {
|
||||||
|
|||||||
@@ -2,6 +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"
|
||||||
import processStatus from "@/components/processStatus.vue";
|
import processStatus from "@/components/processStatus.vue";
|
||||||
|
import axios from "axios";
|
||||||
export default {
|
export default {
|
||||||
name: "FinalDraft",
|
name: "FinalDraft",
|
||||||
components: {processStatus},
|
components: {processStatus},
|
||||||
@@ -143,6 +144,14 @@ export default {
|
|||||||
message: '上传失败',
|
message: '上传失败',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
axios.defaults.timeout = 30000;
|
||||||
|
const isLt2M = file.size / 1024 / 1024 <= 500;
|
||||||
|
if (!isLt2M) {
|
||||||
|
this.$message.error('文件大小超出500M,请重新上传');
|
||||||
|
}
|
||||||
|
return isLt2M;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -209,6 +218,7 @@ export default {
|
|||||||
:on-success="handlSuccess"
|
:on-success="handlSuccess"
|
||||||
:on-error="handlError"
|
:on-error="handlError"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
|
:before-upload="beforeUpload"
|
||||||
:on-remove="handRemove"
|
:on-remove="handRemove"
|
||||||
multiple>
|
multiple>
|
||||||
<i class="el-icon-upload"></i>
|
<i class="el-icon-upload"></i>
|
||||||
|
|||||||
@@ -49,9 +49,9 @@ export default {
|
|||||||
query: {teacherId: this.newTeacherId}
|
query: {teacherId: this.newTeacherId}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.isFalse = false
|
this.$router.push('/need/lecturer')
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'error'
|
type: 'error'
|
||||||
@@ -135,7 +135,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getJumplist(){
|
getJumplist() {
|
||||||
this.$router.push('/need/lecturer')
|
this.$router.push('/need/lecturer')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -176,7 +176,9 @@ export default {
|
|||||||
<div>
|
<div>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="认证课程名称:" prop="courseName">
|
<el-form-item label="认证课程名称:" prop="courseName">
|
||||||
{{ form.courseName }}
|
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
|
||||||
|
{{ form.courseName }}
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11" :offset="2">
|
<el-col :span="11" :offset="2">
|
||||||
@@ -203,7 +205,7 @@ export default {
|
|||||||
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
||||||
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="courseName">{{ item.courseName }}</div>
|
<div class="courseName" :title="item.courseName">{{ item.courseName }}</div>
|
||||||
<div class="smallTitle">当前进度</div>
|
<div class="smallTitle">当前进度</div>
|
||||||
<el-progress :percentage="parseInt(item.progress)"
|
<el-progress :percentage="parseInt(item.progress)"
|
||||||
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||||
@@ -235,11 +237,11 @@ export default {
|
|||||||
很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!
|
很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="twoFactorAuthentication" v-if="statusInfo.reviewResult==1&&isFalse&&statusInfo.second!=2">
|
<div class="twoFactorAuthentication" v-if="statusInfo.reviewResult==1&&statusInfo.second==0">
|
||||||
<img src="../../assets/images/rightImg.png" alt="">
|
<img src="../../assets/images/rightImg.png" alt="">
|
||||||
<div class="titleAuthentication">是否进行二次认证?</div>
|
<div class="titleAuthentication">是否进行二次认证?</div>
|
||||||
<div class="yes" @click="getoFactor(1)">是</div>
|
<div class="yes" @click="getoFactor(1)">是</div>
|
||||||
<div class="no" @click="getJumplist">否</div>
|
<div class="no" @click="getoFactor(2)">否</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -274,6 +276,11 @@ export default {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.smallTitle {
|
.smallTitle {
|
||||||
@@ -298,7 +305,7 @@ export default {
|
|||||||
|
|
||||||
.score {
|
.score {
|
||||||
margin-top: 28px;
|
margin-top: 28px;
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
@@ -311,18 +318,21 @@ export default {
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
margin-left: 23px;
|
margin-left: 23px;
|
||||||
}
|
}
|
||||||
.titleAuthentication{
|
|
||||||
|
.titleAuthentication {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
margin-left: 16px;
|
margin-left: 16px;
|
||||||
}
|
}
|
||||||
.yes{
|
|
||||||
|
.yes {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
background: #409EFF;
|
background: #409EFF;
|
||||||
@@ -337,10 +347,11 @@ export default {
|
|||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.no{
|
|
||||||
|
.no {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
background:rgba(64,158,255,0.1);
|
background: rgba(64, 158, 255, 0.1);
|
||||||
border: 1px solid #409EFF;
|
border: 1px solid #409EFF;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -377,4 +388,12 @@ export default {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.over {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 580px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,6 +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"
|
||||||
import processStatus from '@/components/processStatus.vue';
|
import processStatus from '@/components/processStatus.vue';
|
||||||
|
import axios from "axios";
|
||||||
export default {
|
export default {
|
||||||
name: "FirstDraft",
|
name: "FirstDraft",
|
||||||
computed: {
|
computed: {
|
||||||
@@ -146,6 +147,14 @@ export default {
|
|||||||
message: '上传失败',
|
message: '上传失败',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
axios.defaults.timeout = 30000;
|
||||||
|
const isLt2M = file.size / 1024 / 1024 <= 500;
|
||||||
|
if (!isLt2M) {
|
||||||
|
this.$message.error('文件大小超出500M,请重新上传');
|
||||||
|
}
|
||||||
|
return isLt2M;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -202,6 +211,7 @@ export default {
|
|||||||
action="/activityApi/certification/uploadCourseware"
|
action="/activityApi/certification/uploadCourseware"
|
||||||
accept=".ppt,.pptx,.pdf"
|
accept=".ppt,.pptx,.pdf"
|
||||||
:on-success="handlSuccess"
|
:on-success="handlSuccess"
|
||||||
|
:before-upload="beforeUpload"
|
||||||
:on-error="handlError"
|
:on-error="handlError"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:on-remove="handRemove"
|
:on-remove="handRemove"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
query:{teacherId:teacherId}
|
query:{teacherId:teacherId}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//列表
|
// 列表
|
||||||
getList(){
|
getList(){
|
||||||
this.params.teacherNo=this.userInfo.userNo
|
this.params.teacherNo=this.userInfo.userNo
|
||||||
pageList(this.params).then(res=>{
|
pageList(this.params).then(res=>{
|
||||||
@@ -36,7 +36,12 @@ export default {
|
|||||||
this.total=res.data.page.total
|
this.total=res.data.page.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//重置
|
// 搜索
|
||||||
|
searchList(){
|
||||||
|
this.params.pageNo = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
// 重置
|
||||||
closePageFind(){
|
closePageFind(){
|
||||||
this.params.courseName = '';
|
this.params.courseName = '';
|
||||||
this.params.pageNo = 1;
|
this.params.pageNo = 1;
|
||||||
@@ -50,7 +55,7 @@ export default {
|
|||||||
this.params.pageNo = val;
|
this.params.pageNo = val;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
//根据认证状态跳转页面
|
// 根据认证状态跳转页面
|
||||||
getView(item){
|
getView(item){
|
||||||
getCertificationProcess({teacherId:item.teacherId}).then(res=>{
|
getCertificationProcess({teacherId:item.teacherId}).then(res=>{
|
||||||
var data = res.data
|
var data = res.data
|
||||||
@@ -79,12 +84,12 @@ export default {
|
|||||||
})
|
})
|
||||||
}else if (data.offlineTutoring==0 && data.endStatus==1){
|
}else if (data.offlineTutoring==0 && data.endStatus==1){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path:'/need/final',
|
path:'/need/coachingsuccess',
|
||||||
query:{teacherId:item.teacherId}
|
query:{teacherId:item.teacherId}
|
||||||
})
|
})
|
||||||
}else if (data.offlineTutoring==1 && data.onlineLearning==0){
|
}else if (data.offlineTutoring==1 && data.onlineLearning==0){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path:'/need/coaching',
|
path:'/need/onlinelearning',
|
||||||
query:{teacherId:item.teacherId}
|
query:{teacherId:item.teacherId}
|
||||||
})
|
})
|
||||||
}else if (data.onlineLearning==2 || data.onlineLearning==1){
|
}else if (data.onlineLearning==2 || data.onlineLearning==1){
|
||||||
@@ -129,15 +134,10 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="this.couresList.length==0">
|
|
||||||
<div>
|
|
||||||
<div class="zan-wu">暂无数据</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;justify-content:space-between;position: relative;">
|
<div style="display: flex;justify-content:space-between;position: relative;">
|
||||||
<div style="display: flex;justify-content: flex-start; padding: 12px 32px 10px 12px;">
|
<div style="display: flex;justify-content: flex-start; padding: 12px 32px 10px 12px;">
|
||||||
<div style="margin-left:10px"><el-input v-model="params.courseName" placeholder="请输入认证课程名称" clearable ></el-input></div>
|
<div style="margin-left:10px"><el-input v-model="params.courseName" placeholder="请输入认证课程名称" clearable ></el-input></div>
|
||||||
<div style="padding-left: 10px;"><el-button type="primary" icon="el-icon-search" @click="getList">搜索</el-button></div>
|
<div style="padding-left: 10px;"><el-button type="primary" icon="el-icon-search" @click="searchList">搜索</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="closePageFind">重置</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="closePageFind">重置</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -155,7 +155,7 @@ export default {
|
|||||||
<span style="font-size:18px;color:#333">{{ item.draftStatus==1?item.examineName:item.courseName }}</span>
|
<span style="font-size:18px;color:#333">{{ item.draftStatus==1?item.examineName:item.courseName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-item">
|
<div class="summary-item">
|
||||||
<div>{{ item.draftStatus==1?item.description:item.courseIntroduction }}</div>
|
<div>{{ item.reviewResult==3?item.description:item.courseIntroduction }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uc-course-text">
|
<div class="uc-course-text">
|
||||||
{{ item.reviewResult==3||item.reviewResult==2?'报名时间':'认证时间' }}:{{ item.reviewResult==3||item.reviewResult==2?item.createTime:item.reviewTime }}
|
{{ item.reviewResult==3||item.reviewResult==2?'报名时间':'认证时间' }}:{{ item.reviewResult==3||item.reviewResult==2?item.createTime:item.reviewTime }}
|
||||||
@@ -166,6 +166,11 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="this.couresList.length==0">
|
||||||
|
<div>
|
||||||
|
<div class="zan-wu">暂无数据</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-if="couresList.length > 0" style="text-align: center; margin-top:57px;">
|
<div v-if="couresList.length > 0" style="text-align: center; margin-top:57px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ export default {
|
|||||||
fileBaseUrl:process.env.VUE_APP_BOE_MOBILE_URL,
|
fileBaseUrl:process.env.VUE_APP_BOE_MOBILE_URL,
|
||||||
disabled:false,
|
disabled:false,
|
||||||
statusInfo:'',
|
statusInfo:'',
|
||||||
teacherInfo:''
|
teacherInfo:'',
|
||||||
|
pid:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -56,6 +57,10 @@ export default {
|
|||||||
getProgress(id){
|
getProgress(id){
|
||||||
getProgress({teacherId:id}).then(res=>{
|
getProgress({teacherId:id}).then(res=>{
|
||||||
this.progressData=res.data
|
this.progressData=res.data
|
||||||
|
if (res.data.length==0){
|
||||||
|
this.disabled=true
|
||||||
|
return
|
||||||
|
}
|
||||||
res.data.forEach((item,index)=>{
|
res.data.forEach((item,index)=>{
|
||||||
if (item.progress!=100){
|
if (item.progress!=100){
|
||||||
this.disabled=true
|
this.disabled=true
|
||||||
@@ -96,7 +101,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<process-status :teacherId="teacherId"></process-status>
|
<process-status :teacherId="teacherId.toString()" :pid="pid.toString()"></process-status>
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
@@ -127,8 +132,10 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="认证课程名称:" prop="courseName">
|
<el-form-item label="认证课程名称:" prop="courseName">
|
||||||
{{form.courseName}}
|
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
|
||||||
|
{{ form.courseName }}
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11" :offset="2">
|
<el-col :span="11" :offset="2">
|
||||||
@@ -153,7 +160,7 @@ export default {
|
|||||||
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
||||||
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="courseName">{{ item.courseName }}</div>
|
<div class="courseName" :title="item.courseName">{{ item.courseName }}</div>
|
||||||
<div class="smallTitle">当前进度</div>
|
<div class="smallTitle">当前进度</div>
|
||||||
<el-progress :percentage="parseInt(item.progress)" :color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
<el-progress :percentage="parseInt(item.progress)" :color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||||
</div>
|
</div>
|
||||||
@@ -190,11 +197,16 @@ export default {
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
.courseName{
|
.courseName {
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.smallTitle{
|
.smallTitle{
|
||||||
color:#134054;
|
color:#134054;
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ export default {
|
|||||||
this.form.courseContent=resquest.data[0].courseContent
|
this.form.courseContent=resquest.data[0].courseContent
|
||||||
this.form.courseIntroduction=resquest.data[0].courseIntroduction
|
this.form.courseIntroduction=resquest.data[0].courseIntroduction
|
||||||
this.form.coursewareName=resquest.data[0].examineCourseware.coursewareName
|
this.form.coursewareName=resquest.data[0].examineCourseware.coursewareName
|
||||||
|
this.form.tutor = resquest.data[0].tutor.split(',')
|
||||||
|
this.form.tutorTime = resquest.data[0].tutorTime
|
||||||
//获取学习进度
|
//获取学习进度
|
||||||
this.getReviewResult()
|
this.getReviewResult()
|
||||||
this.addTeacher()
|
this.addTeacher()
|
||||||
@@ -129,7 +131,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<process-status :teacherId="teacherId"></process-status>
|
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
@@ -161,7 +163,9 @@ export default {
|
|||||||
<div>
|
<div>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="认证课程名称:" prop="courseName">
|
<el-form-item label="认证课程名称:" prop="courseName">
|
||||||
{{ form.courseName }}
|
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
|
||||||
|
{{ form.courseName }}
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11" :offset="2">
|
<el-col :span="11" :offset="2">
|
||||||
@@ -188,12 +192,28 @@ export default {
|
|||||||
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
||||||
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="courseName">{{ item.courseName }}</div>
|
<div class="courseName" :title="item.courseName">{{ item.courseName }}</div>
|
||||||
<div class="smallTitle">当前进度</div>
|
<div class="smallTitle">当前进度</div>
|
||||||
<el-progress :percentage="parseInt(item.progress)"
|
<el-progress :percentage="parseInt(item.progress)"
|
||||||
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="title" style="margin-top: 20px">线下辅导</div>
|
||||||
|
<el-container>
|
||||||
|
<div class="form-table">
|
||||||
|
<el-form>
|
||||||
|
<el-form-item label="辅导老师:">
|
||||||
|
<span v-for="(item,index) in form.tutor" :key="item"
|
||||||
|
style="display: inline-block;margin-right: 20px">{{ item }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="辅导时间:">
|
||||||
|
{{ form.tutorTime }}
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</el-container>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="title" style="margin-top: 20px">认证结果</div>
|
<div class="title" style="margin-top: 20px">认证结果</div>
|
||||||
<div v-if="statusInfo1.reviewResult==2" class="score">请您耐心等待线下认证安排!</div>
|
<div v-if="statusInfo1.reviewResult==2" class="score">请您耐心等待线下认证安排!</div>
|
||||||
@@ -201,7 +221,7 @@ export default {
|
|||||||
<div v-if="statusInfo1.reviewResult==1" class="score" style="color: #ff0000">很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!</div>
|
<div v-if="statusInfo1.reviewResult==1" class="score" style="color: #ff0000">很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="title" style="margin-top: 20px">线下辅导</div>
|
<div class="title" style="margin-top: 20px">二次线下辅导</div>
|
||||||
<div class="tip">提示:您的线上课程已经学习完毕,快去进行下一步吧!</div>
|
<div class="tip">提示:您的线上课程已经学习完毕,快去进行下一步吧!</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" style="margin-top: 20px;margin-left: 80px" @click="getJump()">下一步</el-button>
|
<el-button type="primary" style="margin-top: 20px;margin-left: 80px" @click="getJump()">下一步</el-button>
|
||||||
@@ -228,11 +248,16 @@ export default {
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
.courseName{
|
.courseName {
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.smallTitle{
|
.smallTitle{
|
||||||
color:#134054;
|
color:#134054;
|
||||||
@@ -252,7 +277,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.score {
|
.score {
|
||||||
margin-top: 28px;
|
margin-top: 28px;
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import {addTeacher, getCertificationProcess, setOfflineTutoring} from "@/api/modules/lecturer";
|
import {addTeacher, getCertificationProcess, getTeacherInfo, setOfflineTutoring} from "@/api/modules/lecturer";
|
||||||
import processStatus from "@/components/processStatus.vue";
|
import processStatus from "@/components/processStatus.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -10,7 +10,8 @@ export default {
|
|||||||
options: [],
|
options: [],
|
||||||
value: '',
|
value: '',
|
||||||
value2:'',
|
value2:'',
|
||||||
teacherId:''
|
teacherId:'',
|
||||||
|
pid:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -18,6 +19,9 @@ export default {
|
|||||||
this.teacherId=this.$route.query.teacherId
|
this.teacherId=this.$route.query.teacherId
|
||||||
//获取老师列表
|
//获取老师列表
|
||||||
this.getTeacherList()
|
this.getTeacherList()
|
||||||
|
getTeacherInfo({teacherId:this.teacherId}).then(res=> {
|
||||||
|
this.pid = res.data[0].pid
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getTeacherList() {
|
getTeacherList() {
|
||||||
@@ -56,7 +60,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<process-status :teacherId="teacherId"></process-status>
|
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
|
||||||
<div class="title">二次线下辅导</div>
|
<div class="title">二次线下辅导</div>
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
@@ -83,9 +87,9 @@ export default {
|
|||||||
<el-form-item required label="辅导时间:">
|
<el-form-item required label="辅导时间:">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value2"
|
v-model="value2"
|
||||||
type="date"
|
type="datetime"
|
||||||
placeholder="选择日期"
|
placeholder="选择日期"
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
format="yyyy-MM-dd HH:mm"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss">
|
value-format="yyyy-MM-dd HH:mm:ss">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -11,91 +11,89 @@ import processStatus from "@/components/processStatus.vue";
|
|||||||
export default {
|
export default {
|
||||||
name: "TwoCos",
|
name: "TwoCos",
|
||||||
components: {processStatus},
|
components: {processStatus},
|
||||||
data() {
|
data(){
|
||||||
return {
|
return{
|
||||||
teacherId: '',
|
teacherId:'',
|
||||||
form: {
|
form:{
|
||||||
teacherName: '',
|
teacherName:'',
|
||||||
teacherNo: '',
|
teacherNo:'',
|
||||||
orgName: ''
|
orgName:''
|
||||||
},
|
},
|
||||||
progressData: {},
|
progressData:{},
|
||||||
fileBaseUrl: process.env.VUE_APP_BOE_MOBILE_URL,
|
fileBaseUrl:process.env.VUE_APP_BOE_MOBILE_URL,
|
||||||
disabled: false,
|
disabled:false,
|
||||||
statusInfo: '',
|
statusInfo:'',
|
||||||
statusInfo1: '',
|
result:'',
|
||||||
result: '',
|
newTeacherId:'',
|
||||||
newTeacherId: '',
|
pid:'',
|
||||||
pid: '',
|
statusInfo1:'',
|
||||||
teacherInfo: ''
|
teacherInfo:'',
|
||||||
|
form1:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
//读取路由参数
|
//读取路由参数
|
||||||
this.teacherId = this.$route.query.teacherId
|
this.teacherId=this.$route.query.teacherId
|
||||||
//获取教师基本信息
|
//获取教师基本信息
|
||||||
this.baseInfo()
|
this.baseInfo()
|
||||||
|
// this.getReviewResult()
|
||||||
},
|
},
|
||||||
methods: {
|
methods:{
|
||||||
//获取认证结果
|
//获取认证结果
|
||||||
getReviewResult() {
|
getReviewResult(){
|
||||||
getReviewResult({teacherId: this.pid}).then(res => {
|
getReviewResult({teacherId:this.pid}).then(res=>{
|
||||||
this.result = res.data
|
this.result=res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取教师认证状态
|
//获取教师认证状态
|
||||||
getStatus() {
|
getStatus(){
|
||||||
getCertificationProcess({teacherId: this.teacherId}).then(res => {
|
getCertificationProcess({teacherId:this.teacherId}).then(res=>{
|
||||||
this.statusInfo = res.data
|
this.statusInfo=res.data
|
||||||
})
|
})
|
||||||
getCertificationProcess({teacherId: this.pid}).then(res => {
|
getCertificationProcess({teacherId:this.pid}).then(res=>{
|
||||||
this.statusInfo1 = res.data
|
this.statusInfo1=res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
baseInfo() {
|
baseInfo(){
|
||||||
getTeacherInfo({teacherId: this.teacherId}).then(res => {
|
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
||||||
this.pid = res.data[0].pid
|
this.pid=res.data[0].pid
|
||||||
this.form.tutor = res.data[0].tutor.split(',')
|
this.form1.tutor = res.data[0].tutor.split(',')
|
||||||
this.form.tutorTime = res.data[0].tutorTime
|
this.form1.tutorTime = res.data[0].tutorTime
|
||||||
getTeacherInfo({teacherId: res.data[0].pid}).then(resquest => {
|
getTeacherInfo({teacherId:res.data[0].pid}).then(resquest=>{
|
||||||
this.teacherInfo = resquest.data[0]
|
this.teacherInfo = resquest.data[0]
|
||||||
this.form.teacherName = resquest.data[0].teacherName
|
this.form.teacherName=resquest.data[0].teacherName
|
||||||
this.form.teacherNo = resquest.data[0].teacherNo
|
this.form.teacherNo=resquest.data[0].teacherNo
|
||||||
this.form.orgName = resquest.data[0].orgName
|
this.form.orgName=resquest.data[0].orgName
|
||||||
this.form.positionName = resquest.data[0].positionName
|
this.form.positionName=resquest.data[0].positionName
|
||||||
this.form.bandCode = resquest.data[0].bandCode
|
this.form.bandCode=resquest.data[0].bandCode
|
||||||
this.form.courseName = resquest.data[0].courseName
|
this.form.courseName=resquest.data[0].courseName
|
||||||
this.form.courseContent = resquest.data[0].courseContent
|
this.form.courseContent=resquest.data[0].courseContent
|
||||||
this.form.courseIntroduction = resquest.data[0].courseIntroduction
|
this.form.courseIntroduction=resquest.data[0].courseIntroduction
|
||||||
if (res.data[0].examineCourseware == '' || resquest.data[0].examineCourseware == null) {
|
this.form.coursewareName=resquest.data[0].examineCourseware.coursewareName
|
||||||
|
this.form.tutor = resquest.data[0].tutor.split(',')
|
||||||
} else {
|
this.form.tutorTime = resquest.data[0].tutorTime
|
||||||
this.form.coursewareName = resquest.data[0].examineCourseware.coursewareName
|
|
||||||
}
|
|
||||||
|
|
||||||
//获取学习进度
|
//获取学习进度
|
||||||
|
this.getReviewResult()
|
||||||
this.addTeacher()
|
this.addTeacher()
|
||||||
this.getStatus()
|
this.getStatus()
|
||||||
this.getReviewResult()
|
|
||||||
})
|
})
|
||||||
/*
|
/*
|
||||||
* teacherName:教师姓名 teacherNo:教师工号 orgName:组织 positionName:岗位 bandCode:职级 courseName:认证课程名称 courseContent课程内容分类
|
* teacherName:教师姓名 teacherNo:教师工号 orgName:组织 positionName:岗位 bandCode:职级 courseName:认证课程名称 courseContent课程内容分类
|
||||||
* courseIntroduction:课程简介
|
* courseIntroduction:课程简介
|
||||||
* */
|
* */
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addTeacher() {
|
addTeacher(){
|
||||||
addTeacher({pageNo: 1, pageSize: 10, keyword: this.form.teacherNo}).then(res => {
|
addTeacher({pageNo:1,pageSize:10,keyword:this.form.teacherNo}).then(res=>{
|
||||||
this.getProgress(res.data[0].id)
|
this.getProgress(res.data[0].id)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getProgress(id) {
|
getProgress(id){
|
||||||
getProgress({teacherId: id}).then(res => {
|
getProgress({teacherId:id}).then(res=>{
|
||||||
this.progressData = res.data
|
this.progressData=res.data
|
||||||
res.data.forEach((item, index) => {
|
res.data.forEach((item,index)=>{
|
||||||
if (item.progress != 100) {
|
if (item.progress!=100){
|
||||||
this.disabled = true
|
this.disabled=true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -104,13 +102,13 @@ export default {
|
|||||||
format(percentage) {
|
format(percentage) {
|
||||||
return percentage === 100 ? '满' : `${percentage}%`;
|
return percentage === 100 ? '满' : `${percentage}%`;
|
||||||
},
|
},
|
||||||
getJump() {
|
getJump(){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/need/twofinal',
|
path:'/need/twofinal',
|
||||||
query: {teacherId: this.teacherId}
|
query:{teacherId:this.teacherId}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toCaseData(courseId) {
|
toCaseData(courseId){
|
||||||
this.$router.push("/course/studyindex?id=" + courseId);
|
this.$router.push("/course/studyindex?id=" + courseId);
|
||||||
},
|
},
|
||||||
downloadFile() {
|
downloadFile() {
|
||||||
@@ -136,7 +134,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<process-status :teacherId="teacherId"></process-status>
|
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
@@ -168,7 +166,9 @@ export default {
|
|||||||
<div>
|
<div>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="认证课程名称:" prop="courseName">
|
<el-form-item label="认证课程名称:" prop="courseName">
|
||||||
{{ form.courseName }}
|
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
|
||||||
|
{{ form.courseName }}
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11" :offset="2">
|
<el-col :span="11" :offset="2">
|
||||||
@@ -195,26 +195,14 @@ export default {
|
|||||||
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
||||||
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="courseName">{{ item.courseName }}</div>
|
<div class="courseName" :title="item.courseName">{{ item.courseName }}</div>
|
||||||
<div class="smallTitle">当前进度</div>
|
<div class="smallTitle">当前进度</div>
|
||||||
<el-progress :percentage="parseInt(item.progress)"
|
<el-progress :percentage="parseInt(item.progress)"
|
||||||
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="title" style="margin-top: 20px">认证结果</div>
|
<div class="title" style="margin-top: 20px">线下辅导</div>
|
||||||
<div v-if="result.reviewResult==2" class="score" style="color: #797979">请您耐心等待线下认证安排!</div>
|
|
||||||
<div v-if="result.reviewResult==0" class="score" style="color: #4b7900;">恭喜您,您的认证分数为{{
|
|
||||||
result.avgScore
|
|
||||||
}}分,已经通过认证!
|
|
||||||
</div>
|
|
||||||
<div v-if="result.reviewResult==1" class="score" style="color: #ff0000">很遗憾,您的认证分数为{{
|
|
||||||
result.avgScore
|
|
||||||
}}分,没有通过认证!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="title" style="margin-top: 20px">二次线下辅导</div>
|
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
<el-form>
|
<el-form>
|
||||||
@@ -229,73 +217,86 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
</el-container>
|
</el-container>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
<div class="tip">
|
<div class="title" style="margin-top: 20px">认证结果</div>
|
||||||
提示:您已完成线下辅导,快去进行下一步吧!
|
<div v-if="statusInfo1.reviewResult==2" class="score">请您耐心等待线下认证安排!</div>
|
||||||
|
<div v-if="statusInfo1.reviewResult==0" class="score" style="color: #4b7900;">恭喜您,您的认证分数为{{ result.avgScore }}分,已经通过认证!</div>
|
||||||
|
<div v-if="statusInfo1.reviewResult==1" class="score" style="color: #ff0000">很遗憾,您的认证分数为{{ result.avgScore }}分,没有通过认证!</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" style="margin-top: 20px;" @click="getJump()">下一步</el-button>
|
<div>
|
||||||
|
<div class="title" style="margin-top: 20px">二次线下辅导</div>
|
||||||
|
<el-container>
|
||||||
|
<div class="form-table">
|
||||||
|
<el-form>
|
||||||
|
<el-form-item label="辅导老师:">
|
||||||
|
<span v-for="(item,index) in form1.tutor" :key="item"
|
||||||
|
style="display: inline-block;margin-right: 20px">{{ item }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="辅导时间:">
|
||||||
|
{{ form1.tutorTime }}
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</el-container>
|
||||||
|
</div>
|
||||||
|
<el-button type="primary" style="margin-top: 20px;margin-left: 80px" @click="getJump()">下一步</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.title {
|
.title{
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
|
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
|
||||||
padding: 2px 2px 20px 2px;
|
padding: 2px 2px 20px 2px;
|
||||||
}
|
}
|
||||||
|
.form-table{
|
||||||
.form-table {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress > div {
|
.progress > div {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.courseName {
|
.courseName {
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.smallTitle{
|
||||||
.smallTitle {
|
color:#134054;
|
||||||
color: #134054;
|
font-size:12px;
|
||||||
font-size: 12px;
|
|
||||||
margin-top: 7px;
|
margin-top: 7px;
|
||||||
}
|
}
|
||||||
|
::v-deep .el-form-item__content{
|
||||||
::v-deep .el-form-item__content {
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
::v-deep .el-form-item{
|
||||||
::v-deep .el-form-item {
|
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
.tip{
|
||||||
.tip {
|
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.score {
|
.score {
|
||||||
margin-top: 28px;
|
margin-top: 28px;
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
.twoFactorAuthentication{
|
||||||
.twoFactorAuthentication {
|
|
||||||
width: 344px;
|
width: 344px;
|
||||||
height: 135px;
|
height: 135px;
|
||||||
padding: 2px 2px 2px 2px;
|
padding: 2px 2px 2px 2px;
|
||||||
@@ -308,7 +309,6 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remind {
|
.remind {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
@@ -2,6 +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"
|
||||||
import processStatus from "@/components/processStatus.vue";
|
import processStatus from "@/components/processStatus.vue";
|
||||||
|
import axios from "axios";
|
||||||
export default {
|
export default {
|
||||||
name: "TwoFinal",
|
name: "TwoFinal",
|
||||||
components: {processStatus},
|
components: {processStatus},
|
||||||
@@ -35,6 +36,7 @@ export default {
|
|||||||
coursewareUrl:'',
|
coursewareUrl:'',
|
||||||
courseContent_1:''
|
courseContent_1:''
|
||||||
},
|
},
|
||||||
|
pid:'',
|
||||||
rules: {
|
rules: {
|
||||||
courseName: [
|
courseName: [
|
||||||
{required: true, message: '请输入认证课程名称', trigger: 'change'},
|
{required: true, message: '请输入认证课程名称', trigger: 'change'},
|
||||||
@@ -68,6 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
baseInfo(){
|
baseInfo(){
|
||||||
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
||||||
|
this.pid=res.data[0].pid
|
||||||
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.orgName=res.data[0].orgName
|
this.form.orgName=res.data[0].orgName
|
||||||
@@ -143,6 +146,14 @@ export default {
|
|||||||
message: '上传失败',
|
message: '上传失败',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
axios.defaults.timeout = 30000;
|
||||||
|
const isLt2M = file.size / 1024 / 1024 <= 500;
|
||||||
|
if (!isLt2M) {
|
||||||
|
this.$message.error('文件大小超出500M,请重新上传');
|
||||||
|
}
|
||||||
|
return isLt2M;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -159,7 +170,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<process-status :teacherId="teacherId"></process-status>
|
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
|
||||||
<div class="title">二次认证-上传终稿</div>
|
<div class="title">二次认证-上传终稿</div>
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
@@ -210,6 +221,7 @@ export default {
|
|||||||
:on-error="handlError"
|
:on-error="handlError"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:on-remove="handRemove"
|
:on-remove="handRemove"
|
||||||
|
:before-upload="beforeUpload"
|
||||||
multiple>
|
multiple>
|
||||||
<i class="el-icon-upload"></i>
|
<i class="el-icon-upload"></i>
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||||
|
|||||||
@@ -28,7 +28,10 @@ export default {
|
|||||||
result1:'',
|
result1:'',
|
||||||
newTeacherId:'',
|
newTeacherId:'',
|
||||||
pid:'',
|
pid:'',
|
||||||
teacherInfo:''
|
teacherInfo:'',
|
||||||
|
form1:{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -58,31 +61,31 @@ export default {
|
|||||||
},
|
},
|
||||||
baseInfo(){
|
baseInfo(){
|
||||||
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
getTeacherInfo({teacherId:this.teacherId}).then(res=>{
|
||||||
this.teacherInfo = res.data[0]
|
this.pid=res.data[0].pid
|
||||||
|
this.form1.tutor = res.data[0].tutor.split(',')
|
||||||
|
this.form1.tutorTime = res.data[0].tutorTime
|
||||||
|
this.form.courseName=res.data[0].courseName
|
||||||
|
this.form.courseContent=res.data[0].courseContent
|
||||||
|
this.form.courseIntroduction=res.data[0].courseIntroduction
|
||||||
|
getTeacherInfo({teacherId:res.data[0].pid}).then(resquest=>{
|
||||||
|
this.teacherInfo = resquest.data[0]
|
||||||
|
this.form.teacherName=resquest.data[0].teacherName
|
||||||
|
this.form.teacherNo=resquest.data[0].teacherNo
|
||||||
|
this.form.orgName=resquest.data[0].orgName
|
||||||
|
this.form.positionName=resquest.data[0].positionName
|
||||||
|
this.form.bandCode=resquest.data[0].bandCode
|
||||||
|
this.form.coursewareName=resquest.data[0].examineCourseware.coursewareName
|
||||||
|
this.form.tutor = resquest.data[0].tutor.split(',')
|
||||||
|
this.form.tutorTime = resquest.data[0].tutorTime
|
||||||
|
//获取学习进度
|
||||||
|
this.getReviewResult()
|
||||||
|
this.addTeacher()
|
||||||
|
this.getStatus()
|
||||||
|
})
|
||||||
/*
|
/*
|
||||||
* teacherName:教师姓名 teacherNo:教师工号 orgName:组织 positionName:岗位 bandCode:职级 courseName:认证课程名称 courseContent课程内容分类
|
* teacherName:教师姓名 teacherNo:教师工号 orgName:组织 positionName:岗位 bandCode:职级 courseName:认证课程名称 courseContent课程内容分类
|
||||||
* courseIntroduction:课程简介
|
* courseIntroduction:课程简介
|
||||||
* */
|
* */
|
||||||
this.form.teacherName=res.data[0].teacherName
|
|
||||||
this.form.teacherNo=res.data[0].teacherNo
|
|
||||||
this.form.orgName=res.data[0].orgName
|
|
||||||
this.form.positionName=res.data[0].positionName
|
|
||||||
this.form.bandCode=res.data[0].bandCode
|
|
||||||
this.form.courseName=res.data[0].courseName
|
|
||||||
this.form.courseContent=res.data[0].courseContent
|
|
||||||
this.form.courseIntroduction=res.data[0].courseIntroduction
|
|
||||||
if (res.data[0].examineCourseware==''||res.data[0].examineCourseware==null){
|
|
||||||
|
|
||||||
}else {
|
|
||||||
this.form.coursewareName=res.data[0].examineCourseware.coursewareName
|
|
||||||
}
|
|
||||||
this.form.tutor=res.data[0].tutor.split(',')
|
|
||||||
this.form.tutorTime=res.data[0].tutorTime
|
|
||||||
this.pid=res.data[0].pid
|
|
||||||
//获取学习进度
|
|
||||||
this.addTeacher()
|
|
||||||
this.getStatus()
|
|
||||||
this.getReviewResult()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addTeacher(){
|
addTeacher(){
|
||||||
@@ -137,7 +140,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<process-status :teacherId="teacherId"></process-status>
|
<process-status :teacherId="pid.toString()" :pid="teacherId.toString()"></process-status>
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<el-container>
|
<el-container>
|
||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
@@ -169,7 +172,9 @@ export default {
|
|||||||
<div>
|
<div>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="认证课程名称:" prop="courseName">
|
<el-form-item label="认证课程名称:" prop="courseName">
|
||||||
{{ form.courseName }}
|
<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;" :title="form.courseName">
|
||||||
|
{{ form.courseName }}
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11" :offset="2">
|
<el-col :span="11" :offset="2">
|
||||||
@@ -196,12 +201,28 @@ export default {
|
|||||||
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
<img style="width: 100%;" v-if="item.courseImage!=''" :src="item.courseImage">
|
||||||
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
<img style="width: 100%;" v-else :src="fileBaseUrl+'/pc/images/bgimg/course.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="courseName">{{ item.courseName }}</div>
|
<div class="courseName" :title="item.courseName ">{{ item.courseName }}</div>
|
||||||
<div class="smallTitle">当前进度</div>
|
<div class="smallTitle">当前进度</div>
|
||||||
<el-progress :percentage="parseInt(item.progress)"
|
<el-progress :percentage="parseInt(item.progress)"
|
||||||
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
:color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="title" style="margin-top: 20px">线下辅导</div>
|
||||||
|
<el-container>
|
||||||
|
<div class="form-table">
|
||||||
|
<el-form>
|
||||||
|
<el-form-item label="辅导老师:">
|
||||||
|
<span v-for="(item,index) in form.tutor" :key="item"
|
||||||
|
style="display: inline-block;margin-right: 20px">{{ item }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="辅导时间:">
|
||||||
|
{{ form.tutorTime }}
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</el-container>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="title" style="margin-top: 20px">认证结果</div>
|
<div class="title" style="margin-top: 20px">认证结果</div>
|
||||||
<div v-if="result1.reviewResult==2" class="score">请您耐心等待线下认证安排!</div>
|
<div v-if="result1.reviewResult==2" class="score">请您耐心等待线下认证安排!</div>
|
||||||
@@ -214,10 +235,10 @@ export default {
|
|||||||
<div class="form-table">
|
<div class="form-table">
|
||||||
<el-form>
|
<el-form>
|
||||||
<el-form-item label="辅导老师:">
|
<el-form-item label="辅导老师:">
|
||||||
<span v-for="(item,index) in form.tutor" :key="item" style="display: inline-block;margin-right: 20px">{{item}}</span>
|
<span v-for="(item,index) in form1.tutor" :key="item" style="display: inline-block;margin-right: 20px">{{item}}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="辅导时间:">
|
<el-form-item label="辅导时间:">
|
||||||
{{form.tutorTime}}
|
{{form1.tutorTime}}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -252,11 +273,16 @@ export default {
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
.courseName{
|
.courseName {
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.smallTitle{
|
.smallTitle{
|
||||||
color:#134054;
|
color:#134054;
|
||||||
@@ -276,7 +302,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.score {
|
.score {
|
||||||
margin-top: 28px;
|
margin-top: 28px;
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,8 +126,8 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/manageApi': {
|
'/manageApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
@@ -137,8 +137,8 @@ module.exports = {
|
|||||||
'/systemapi': {
|
'/systemapi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
// target: 'http://127.0.0.1:9090',
|
// target: 'http://127.0.0.1:9090',
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel: 'debug',
|
logLevel: 'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
@@ -148,8 +148,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'/uboeApi': {
|
'/uboeApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
@@ -158,8 +158,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'/userbasic': {
|
'/userbasic': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
@@ -169,8 +169,8 @@ module.exports = {
|
|||||||
'/statApi': {
|
'/statApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
// target: 'http://127.0.0.1:9080',
|
// target: 'http://127.0.0.1:9080',
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel: 'debug',
|
logLevel: 'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
@@ -181,8 +181,8 @@ module.exports = {
|
|||||||
'/socialApi': {
|
'/socialApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
// target: 'http://127.0.0.1:9081',
|
// target: 'http://127.0.0.1:9081',
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel: 'debug',
|
logLevel: 'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
@@ -192,8 +192,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'/report': {
|
'/report': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
@@ -202,15 +202,15 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'/infrasApi': {
|
'/infrasApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
},
|
},
|
||||||
'/activityApi': {
|
'/activityApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://pretest.zcwytd.com',
|
// target: 'https://pretest.zcwytd.com',
|
||||||
// target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user