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