修改课程参数,获取hrbp后的字段匹配错误

This commit is contained in:
daihh
2022-11-23 14:58:43 +08:00
parent 685779cbc1
commit 2962a14d79
3 changed files with 8 additions and 9 deletions

View File

@@ -559,15 +559,15 @@ export default {
} }
}, },
confirmChooseOrg(orgInfo){ confirmChooseOrg(orgInfo){
console.log(orgInfo,'orgInfo'); //console.log(orgInfo,'orgInfo');
if(!orgInfo.hrbpId || orgInfo.hrbpId=='0'){ if(!orgInfo.hrbpId || orgInfo.hrbpId=='0'){
this.$message.error("此机构无HRBP审核人信息请重新选择"); this.$message.error("此机构无HRBP审核人信息请重新选择");
return; return;
} }
this.orgName=orgInfo.name; this.orgName=orgInfo.name;
this.orgKid=orgInfo.kid; //kid已不存在 this.orgKid=orgInfo.kid; //kid已不存在
this.courseInfo.orgId=orgInfo.id; this.courseInfo.orgId=orgInfo.id;
this.$refs.refChooseOrg.dlgShow = false; this.$refs.refChooseOrg.dlgShow = false;
}, },
getTeacherList(res) { getTeacherList(res) {
this.teacherValues = res; this.teacherValues = res;
@@ -1387,12 +1387,12 @@ export default {
if(rs.status==200 && rs.result){ if(rs.status==200 && rs.result){
postData.auditUser={ postData.auditUser={
email:rs.result.email, email:rs.result.email,
code:rs.result.user_no, code:rs.result.userNo,
name:rs.result.name, name:rs.result.name,
aid:rs.result.id, aid:rs.result.id,
orgId:rs.result.orgId orgId:rs.result.orgId
} }
postData.course.orgName=rs.result.orgNamePath+'/'+$this.orgName; postData.course.orgName=rs.result.orgNamePath+'/'+rs.result.orgName;
// apiHRBP.getHRBP(this.orgKid).then(rs=>{ // apiHRBP.getHRBP(this.orgKid).then(rs=>{
// if(rs.status==200 && rs.result.length>0){ // if(rs.status==200 && rs.result.length>0){

View File

@@ -68,7 +68,6 @@
}else{ }else{
return (<span class="custom-tree-node"> <span>{node.label}</span></span>); return (<span class="custom-tree-node"> <span>{node.label}</span></span>);
} }
}, },
initTree(){ initTree(){
apiUserBasic.findOrgsByKeyword('').then(rs=>{ apiUserBasic.findOrgsByKeyword('').then(rs=>{

View File

@@ -219,7 +219,7 @@ export default {
auditUser:rs.result.name, auditUser:rs.result.name,
//ukid:hrbpUser.user_id, //ukid:hrbpUser.user_id,
orgId:row.orgId, orgId:row.orgId,
orgName:rs.result.orgNamePath //+'/'+rrs.result.name orgName:rs.result.orgNamePath +'/'+rs.result.name
} }
apiCourse.sumbits(req).then(res=>{ apiCourse.sumbits(req).then(res=>{
if(res.status==200){ if(res.status==200){