修复报名情况页面未选择工种却显示已开班的问题

This commit is contained in:
wans 2021-07-26 15:14:26 +08:00
parent 3e5a6ae000
commit 6a4de748d1
2 changed files with 3 additions and 1 deletions

View File

@ -622,7 +622,7 @@ public class ClassPlanServiceImpl extends DefaultBaseService implements IClassPl
String orgId = params.get("orgId").toString();
if(params.get("workerCatalog") == null
|| params.get("workerCatalog").toString().length() == 0){
params.put("checkType","0");
params.put("checkType","-1");
return params;
}
String workerCatalog = params.get("workerCatalog").toString();

View File

@ -116,6 +116,8 @@
{orgId: orgId, workerCatalog : workerCatalog}, null, function (code, data) {
if(data.checkType == '1'){
$('#class-plan-btn-event').show();
} else if(data.checkType == '-1'){
$('#class-plan-btn-event').hide();
} else {
$('#class-plan-btn-event').hide();
$('#is-commit-plan-btn').show();