mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
修改bug2.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import {addTeacher, getCertificationProcess, getProgress, getTeacherInfo} from "@/api/modules/lecturer";
|
||||
import lecturer, {addTeacher, getCertificationProcess, getProgress, getTeacherInfo} from "@/api/modules/lecturer";
|
||||
import processStatus from "@/components/processStatus.vue";
|
||||
|
||||
export default {
|
||||
@@ -16,7 +16,8 @@ export default {
|
||||
progressData: {},
|
||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||
disabled: false,
|
||||
statusInfo: ''
|
||||
statusInfo: '',
|
||||
teacherInfo:''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -35,6 +36,8 @@ export default {
|
||||
},
|
||||
baseInfo() {
|
||||
getTeacherInfo({teacherId: this.teacherId}).then(res => {
|
||||
this.teacherInfo=res.data[0]
|
||||
|
||||
/*
|
||||
* teacherName:教师姓名 teacherNo:教师工号 orgName:组织 positionName:岗位 bandCode:职级 courseName:认证课程名称 courseContent课程内容分类
|
||||
* courseIntroduction:课程简介
|
||||
@@ -78,8 +81,24 @@ export default {
|
||||
},
|
||||
toCaseData(courseId){
|
||||
this.$router.push("/course/studyindex?id=" + courseId);
|
||||
},
|
||||
downloadFile(){
|
||||
lecturer.exportPdf({coursewareId:this.teacherInfo.examineCourseware.id}).then(res=>{
|
||||
if(res.status) {
|
||||
this.$message.error('导出失败');
|
||||
} else {
|
||||
const link = document.createElement('a');// 创建a标签
|
||||
let blob = new Blob([res],{type: 'application/vnd.;charset=UTF-8'}); // 设置文件类型
|
||||
link.style.display = "none";
|
||||
link.href = URL.createObjectURL(blob); // 创建URL
|
||||
link.setAttribute("download", this.teacherInfo.examineCourseware.coursewareName);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -131,7 +150,7 @@ export default {
|
||||
{{ form.courseIntroduction }}
|
||||
</el-form-item>
|
||||
<el-form-item label="初稿课件:" prop="courseIntroduction">
|
||||
{{ form.coursewareName }} <span style="color: #1378f6;display: inline-block;margin-left: 16px">查看</span>
|
||||
{{ form.coursewareName }} <span style="color: #1378f6;display: inline-block;margin-left: 16px;cursor: pointer;" @click="downloadFile">查看</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -145,7 +164,7 @@ export default {
|
||||
</div>
|
||||
<div class="courseName">{{ item.courseName }}</div>
|
||||
<div class="smallTitle">当前进度</div>
|
||||
<el-progress :percentage="parseInt(item.progress)"></el-progress>
|
||||
<el-progress :percentage="parseInt(item.progress)" :color="parseInt(item.progress)=='100'?'#31AF0D':'#FFA050'"></el-progress>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
@@ -168,7 +187,7 @@ export default {
|
||||
<div class="tip">
|
||||
提示:您已完成线下辅导,快去进行下一步吧!
|
||||
</div>
|
||||
<el-button type="primary" style="margin-top: 20px;margin-left: 80px" @click="getJump()">下一步</el-button>
|
||||
<el-button type="primary" style="margin-top: 20px;" @click="getJump()">下一步</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -218,14 +237,23 @@ export default {
|
||||
}
|
||||
|
||||
.tip {
|
||||
color: #7d7c7c;
|
||||
color: #333333;
|
||||
font-size: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
::v-deep .el-progress-bar__outer{
|
||||
background-color: rgba(255, 160, 80, 0.2);
|
||||
}
|
||||
::v-deep .el-progress-bar__inner{
|
||||
background-color: rgba(255, 160, 80, 1);
|
||||
::v-deep .el-form-item__label{
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
line-height: 40px;
|
||||
}
|
||||
::v-deep .el-form-item__content{
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
line-height: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user