mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
老师课程直接在列表中提交的问题,原hrbp审核修改后,这里没有同步过来。现在同不过来了
This commit is contained in:
@@ -363,8 +363,8 @@ const detailFew=function(id){
|
|||||||
/*
|
/*
|
||||||
直接审核
|
直接审核
|
||||||
*/
|
*/
|
||||||
const sumbits=function(id){
|
const sumbits=function(data){
|
||||||
return ajax.post('/xboe/m/course/manage/sumbits?id='+id);
|
return ajax.post('/xboe/m/course/manage/sumbits',data);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
教师授课记录
|
教师授课记录
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
<div v-else class="zan-wu">暂无数据</div>
|
<div v-else class="zan-wu">暂无数据</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div></div>
|
<div></div>
|
||||||
<el-dialog title="审核记录" :visible.sync="dialogVisible" width="900px" custom-class="g-dialog">
|
<el-dialog title="审核记录" :visible.sync="dialogVisible" width="900px" custom-class="g-dialog">
|
||||||
<div>
|
<div>
|
||||||
@@ -113,6 +113,8 @@ import courseForm from '@/components/Course/courseForm.vue';
|
|||||||
import apiCourse from '@/api/modules/course.js';
|
import apiCourse from '@/api/modules/course.js';
|
||||||
import { courseType } from '@/utils/tools.js';
|
import { courseType } from '@/utils/tools.js';
|
||||||
import apiAudit from '@/api/system/audit.js';
|
import apiAudit from '@/api/system/audit.js';
|
||||||
|
import apiHRBP from '@/api/boe/HRBP.js';
|
||||||
|
import apiOrg from '@/api/system/organiza.js';
|
||||||
export default {
|
export default {
|
||||||
name: 'ucStudyIndex',
|
name: 'ucStudyIndex',
|
||||||
components: { studyItem, courseForm, courseImage },
|
components: { studyItem, courseForm, courseImage },
|
||||||
@@ -194,21 +196,50 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
examine(row) {
|
examine(row) {
|
||||||
this.$confirm('您确定要直接提交审核所选课程吗?', '友情提示', {
|
if(!row.orgId){
|
||||||
confirmButtonText: '确定',
|
this.$message.error("课程还未设置资源归属,请先设置资源归属");
|
||||||
cancelButtonText: '取消',
|
return;
|
||||||
type: 'warning'
|
}
|
||||||
}).then(()=>{
|
let $this=this;
|
||||||
apiCourse.sumbits(row.id).then(res=>{
|
this.$confirm('您确定要直接提交审核所选课程吗?', '友情提示', {
|
||||||
if(res.status==200){
|
confirmButtonText: '确定',
|
||||||
this.$message.success('提交成功');
|
cancelButtonText: '取消',
|
||||||
row.status=2
|
type: 'warning'
|
||||||
}
|
}).then(()=>{
|
||||||
if(res.status==400){
|
apiOrg.getSimple(row.orgId).then(rrs=>{
|
||||||
this.$message.error('课程信息不完整,提交失败')
|
if(rrs.status==200){
|
||||||
}
|
apiHRBP.getHRBP(rrs.result.kid).then(rs=>{
|
||||||
})
|
if(rs.status==200 && rs.result.length>0){
|
||||||
})
|
let hrbpUser=rs.result[0];
|
||||||
|
let req={
|
||||||
|
courseId:row.id,
|
||||||
|
email:hrbpUser.email,
|
||||||
|
courseUser:row.sysCreateBy,
|
||||||
|
courseName:row.name,
|
||||||
|
ucode:hrbpUser.user_no,
|
||||||
|
auditUser:hrbpUser.real_name,
|
||||||
|
ukid:hrbpUser.user_id,
|
||||||
|
orgId:row.orgId,
|
||||||
|
orgName:rs.result.orgnization_name_path+'/'+rrs.result.name
|
||||||
|
}
|
||||||
|
apiCourse.sumbits(req).then(res=>{
|
||||||
|
if(res.status==200){
|
||||||
|
$this.$message.success('提交成功');
|
||||||
|
row.status=2
|
||||||
|
}
|
||||||
|
if(res.status==400){
|
||||||
|
$this.$message.error('提交失败:'+res.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$this.$message.error("获取HRBP审核人员失败:"+rs.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$this.$message.error("处理资源归属失败,请重新设置资源归属");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
delItem(row) {
|
delItem(row) {
|
||||||
this.$confirm('您确定要删除所选课程吗?', '删除提示', {
|
this.$confirm('您确定要删除所选课程吗?', '删除提示', {
|
||||||
@@ -280,7 +311,7 @@ export default {
|
|||||||
this.params.pageSize = val;
|
this.params.pageSize = val;
|
||||||
// this.params.pageIndex = 1;
|
// this.params.pageIndex = 1;
|
||||||
|
|
||||||
|
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
@@ -363,6 +394,7 @@ export default {
|
|||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
.summary-item {
|
.summary-item {
|
||||||
|
padding-top: 10px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: #7d7d7d;
|
color: #7d7d7d;
|
||||||
|
|||||||
Reference in New Issue
Block a user