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:
@@ -37,7 +37,7 @@ const formRequest=axios.create({
|
|||||||
//是否需要设置 token
|
//是否需要设置 token
|
||||||
const isToken = (config.headers || {}).isToken === false
|
const isToken = (config.headers || {}).isToken === false
|
||||||
let curToken=getToken();
|
let curToken=getToken();
|
||||||
//curToken='eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkxMDgyMDIsImV4cCI6MTY2OTExNTQwMiwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjAxNTU1M0RELTQ0NUUtNjlENC0zNTFGLUREOUExQTU2NDIwRSIsInVJZCI6Ijk2NTM0MTk5OTY0MzIzNDMwNCIsInBlcm1pc3Npb24iOiIifQ==.152729feaf062a11e0c49dc657ca3f965e82228f818e31dfccd21abf0fb53fab'
|
//curToken='eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NzIzMTE2MTIsImV4cCI6MTY3MjMxODgxMiwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.a4f41376e994c5fcd3ab537ce17572ef4c633863f87785cf7b6ffa353e2ed51c';
|
||||||
if (curToken && !isToken) {
|
if (curToken && !isToken) {
|
||||||
config.headers[TokenName] = curToken // 让每个请求携带自定义token 请根据实际情况自行修改
|
config.headers[TokenName] = curToken // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -558,12 +558,18 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirmChooseOrg(orgInfo){
|
confirmChooseOrg(orgInfo,parentInfo){
|
||||||
//console.log(orgInfo,'orgInfo');
|
//console.log(orgInfo,'orgInfo');
|
||||||
if(!orgInfo.hrbpId || orgInfo.hrbpId=='0'){
|
// let hrbpData=orgInfo;
|
||||||
this.$message.error("此机构无HRBP审核人信息,请重新选择");
|
// if(!orgInfo.hrbpId){
|
||||||
return;
|
// hrbpData=parentInfo;
|
||||||
}
|
// //没有,就直接找此机构的上级,如果没有上线就提示,如果有就不提示
|
||||||
|
|
||||||
|
// }
|
||||||
|
// if(hrbpData && (!hrbpData.hrbpId || hrbpData.hrbpId=='-1')){
|
||||||
|
// this.$message.error("此机构及上级都无HRBP审核人信息,请重新选择");
|
||||||
|
// 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;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
dlgShow:false,
|
dlgShow:false,
|
||||||
orgName:'',
|
orgName:'',
|
||||||
chooseOrg:{},
|
chooseOrg:{},
|
||||||
|
chooseParent:{},
|
||||||
treeData:[],
|
treeData:[],
|
||||||
departData:[],
|
departData:[],
|
||||||
departProps: {
|
departProps: {
|
||||||
@@ -122,7 +123,7 @@
|
|||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
parentId = node.data.id;
|
parentId = node.data.id;
|
||||||
|
|
||||||
apiUserBasic.getOrgInfo(parentId).then(rs=>{
|
apiUserBasic.getOrgInfo(parentId).then(rs=>{
|
||||||
if(rs.status==200){
|
if(rs.status==200){
|
||||||
let treeList=[];
|
let treeList=[];
|
||||||
@@ -159,8 +160,11 @@
|
|||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val;
|
||||||
},
|
},
|
||||||
handleDepartNodeClick(data){
|
handleDepartNodeClick(data,node,element){
|
||||||
this.chooseOrg = data;
|
this.chooseOrg = data;
|
||||||
|
this.chooseParent=node.parent.data;
|
||||||
|
//console.log(node,'node');
|
||||||
|
//console.log(element,'element');
|
||||||
},
|
},
|
||||||
confirm(){
|
confirm(){
|
||||||
if(!this.chooseOrg.id){
|
if(!this.chooseOrg.id){
|
||||||
@@ -168,7 +172,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//this.dlgShow=false;
|
//this.dlgShow=false;
|
||||||
this.$emit('confirm',this.chooseOrg);
|
this.$emit('confirm',this.chooseOrg,this.chooseParent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user