mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
教师接口
This commit is contained in:
@@ -41,8 +41,8 @@ const teacherSystem = function(id) {
|
|||||||
teacher_id 教师id
|
teacher_id 教师id
|
||||||
* } data 查询条件
|
* } data 查询条件
|
||||||
*/
|
*/
|
||||||
const teacherInfo = function(data) {
|
const teacherInfo = function(sysId) {
|
||||||
return ajax.get('/b1/system/teacher/teacher-info',data);
|
return ajax.get('/b1/system/teacher/teacher-info?teacher_id='+sysId);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 教师删除接口
|
* 教师删除接口
|
||||||
|
|||||||
@@ -173,6 +173,17 @@ const end=function(id){
|
|||||||
const exports=function(query){
|
const exports=function(query){
|
||||||
return ajax.post('/xboe/teacher/export',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 {
|
export default {
|
||||||
findByName,
|
findByName,
|
||||||
getInfoById,
|
getInfoById,
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
<el-image :src="fileBaseUrl+cware.content.content" fit="fill"></el-image>
|
<el-image :src="fileBaseUrl+cware.content.content" fit="fill"></el-image>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="cware.content.contentType==40">
|
<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>
|
<pdfPreview v-if="cware.content.contentType == 40" :filePath="fileBaseUrl+cware.content.pdfPath"></pdfPreview>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -580,6 +580,7 @@
|
|||||||
setupTage:0,
|
setupTage:0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
pdfTip:'',//pdf文件的提示
|
||||||
hasCWare:{ keyword:'', count: 0, pageSize: 10, pageIndex: 1, list:[]},
|
hasCWare:{ keyword:'', count: 0, pageSize: 10, pageIndex: 1, list:[]},
|
||||||
homework:{
|
homework:{
|
||||||
show:1,
|
show:1,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<el-table-column type="selection"></el-table-column>
|
<el-table-column type="selection"></el-table-column>
|
||||||
<el-table-column label="姓名" prop="name" fixed>
|
<el-table-column label="姓名" prop="name" fixed>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span @click="handleName(scope.row)">{{scope.row.name}}</span>
|
<a @click="handleName(scope.row)">{{scope.row.name}}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
@@ -600,7 +600,7 @@
|
|||||||
eleLink.download = '教师授课信息';
|
eleLink.download = '教师授课信息';
|
||||||
eleLink.style.display = 'none';
|
eleLink.style.display = 'none';
|
||||||
eleLink.setAttribute('target', '_blank');
|
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);
|
document.body.appendChild(eleLink);
|
||||||
eleLink.click();
|
eleLink.click();
|
||||||
document.body.removeChild(eleLink);
|
document.body.removeChild(eleLink);
|
||||||
|
|||||||
Reference in New Issue
Block a user