角色无法添加问题

This commit is contained in:
zhal 2022-07-24 21:41:36 +08:00
parent 45aaf7b125
commit 82b170c5a4

View File

@ -3726,24 +3726,26 @@ function saveRelevanceShapesTODB(shapesObj, shapeId, shapeName, fileName,
}
}
//by bzp 校验角色和岗位不能同时选择
if(objId == 'role' || objId == 'post'){
if(objId == 'role'){
if(shape.category!="org_role") {
if (objId == 'role' || objId == 'post') {
if (objId == 'role') {
//判断岗位
var tmp = $("input[objid='post']").val();
if(tmp.length > 0){
if (tmp.length > 0) {
$.simpleAlert("不能同时选择岗位和角色");
return;
}
}
if(objId == 'post'){
if (objId == 'post') {
//判断角色
var tmp = $("input[objid='role']").val();
if(tmp.length > 0){
if (tmp.length > 0) {
$.simpleAlert("不能同时选择岗位和角色");
return;
}
}
}
}
//by bzp end
var ref = $("input[objid_shapeId='" + objId + "']").attr("ref");
$.ajax({