mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 02:16:43 +08:00
教师接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
/**
|
||||
* 教师删除接口
|
||||
@@ -56,7 +56,7 @@ const teacherSystem = function(id) {
|
||||
/**
|
||||
* 教师启用禁用接口
|
||||
* @param {
|
||||
teacher_id
|
||||
teacher_id
|
||||
status 状态;0:临时;1:正式;2:停用
|
||||
* } 查询条件
|
||||
*/
|
||||
@@ -64,7 +64,7 @@ const teacherSystem = function(id) {
|
||||
return ajax.postJson('/b1/system/teacher/update-status',data);
|
||||
}
|
||||
/**
|
||||
* 教师授课记录查询接口
|
||||
* 教师授课记录查询接口
|
||||
* @param {
|
||||
```json
|
||||
id // 教师id
|
||||
@@ -109,8 +109,8 @@ const teacherSystem = function(id) {
|
||||
/**
|
||||
* 内部讲师-修改模块讲师信息
|
||||
* @param {
|
||||
courseId // 课程id
|
||||
modId // 模块id
|
||||
courseId // 课程id
|
||||
modId // 模块id
|
||||
teacherId // 教师id
|
||||
teachingTime // 授课时间
|
||||
*/
|
||||
@@ -120,8 +120,8 @@ const teacherSystem = function(id) {
|
||||
/**
|
||||
* 内部讲师-删除模块讲师接口
|
||||
* @param {
|
||||
courseId // 课程id
|
||||
modId // 模块id
|
||||
courseId // 课程id
|
||||
modId // 模块id
|
||||
teacherId // 教师id
|
||||
remark // 备注
|
||||
*/
|
||||
@@ -142,4 +142,4 @@ export default {
|
||||
teacherUpgradePrecess,
|
||||
deleteModelTeacher,
|
||||
editModelTeacher
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<el-select v-model="tSystemData" value-key="id" clearable @change="changeSystem" placeholder="请选择教师体系">
|
||||
<el-option v-for="item in systemData" :key="item.id" :label="item.name" :value="item"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 要在换一个变量与新建区别开 -->
|
||||
<div style="padding: 0px 5px;">
|
||||
<el-select v-model="tLevelData" clearable value-key="id" placeholder="请选择教师级别">
|
||||
@@ -31,10 +31,10 @@
|
||||
<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>
|
||||
|
||||
|
||||
<el-table-column label="部门" prop="departName"></el-table-column>
|
||||
<!-- <el-table-column label="创建时间" sortable prop="sysCreateTime"></el-table-column> -->
|
||||
<el-table-column label="修改时间" sortable width="155" prop="sysUpdateTime"></el-table-column>
|
||||
@@ -585,7 +585,7 @@
|
||||
eleForm.style="display:none;";
|
||||
eleForm.method='post';
|
||||
eleForm.action=`${process.env.VUE_APP_BASE_API}/xboe/teacher/export?name=${this.queryName}`;
|
||||
|
||||
|
||||
var hdnFilePath = document.createElement('input');
|
||||
hdnFilePath.type = 'hidden';
|
||||
hdnFilePath.name = 'ids';
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user