教师接口

This commit is contained in:
daihh
2022-06-01 17:05:28 +08:00
parent 97675d1f38
commit c474ffca71
4 changed files with 27 additions and 15 deletions

View File

@@ -41,8 +41,8 @@ const teacherSystem = function(id) {
teacher_id 教师id
* } data 查询条件
*/
const teacherInfo = function(data) {
return ajax.get('/b1/system/teacher/teacher-info',data);
const teacherInfo = function(sysId) {
return ajax.get('/b1/system/teacher/teacher-info?teacher_id='+sysId);
}
/**
* 教师删除接口

View File

@@ -173,6 +173,17 @@ const end=function(id){
const exports=function(query){
return ajax.post('/xboe/teacher/export',query);
}
/**
* courseType // 课程类型1,2:面授,训练班0在线班
* sysId:教师的sysId
* tid 教师的id
* @param {tid,sysId,countType,pageSize:100,pageIndex} query
*/
const findAllCourses=function(query){
return ajax.post('/xboe/teacher/compose/find/courses',query);
}
export default {
findByName,
getInfoById,

View File

@@ -103,7 +103,7 @@
<el-image :src="fileBaseUrl+cware.content.content" fit="fill"></el-image>
</div>
<div v-if="cware.content.contentType==40">
<div style="padding: 10px;color: #767676; ">如果pdf无法显示请稍后再试文档转化是异步处理有可能是文档还未转化完成 </div>
<div style="padding: 10px;color: #767676; ">如果pdf无法显示请稍后再试文档转化是异步处理有可能是文档还未转化完成您可以先提交课程内容 </div>
<pdfPreview v-if="cware.content.contentType == 40" :filePath="fileBaseUrl+cware.content.pdfPath"></pdfPreview>
</div>
</div>
@@ -580,6 +580,7 @@
setupTage:0,
},
},
pdfTip:'',//pdf文件的提示
hasCWare:{ keyword:'', count: 0, pageSize: 10, pageIndex: 1, list:[]},
homework:{
show:1,

View File

@@ -31,7 +31,7 @@
<el-table-column type="selection"></el-table-column>
<el-table-column label="姓名" prop="name" fixed>
<template slot-scope="scope">
<span @click="handleName(scope.row)">{{scope.row.name}}</span>
<a @click="handleName(scope.row)">{{scope.row.name}}</a>
</template>
</el-table-column>
@@ -600,7 +600,7 @@
eleLink.download = '教师授课信息';
eleLink.style.display = 'none';
eleLink.setAttribute('target', '_blank');
eleLink.href = `${process.env.VUE_APP_BASE_API}/xboe/teacher/compose/export/courses?tid=${row.id}&sysId=${row.sysId}&courseType=0,1,3`;
eleLink.href = `${process.env.VUE_APP_BASE_API}/xboe/teacher/compose/export/courses?tid=${row.id}&sysId=${row.sysId}&courseType=0,1,2`;
document.body.appendChild(eleLink);
eleLink.click();
document.body.removeChild(eleLink);