修改添加考场信息情况判断
This commit is contained in:
parent
2feeb259ef
commit
605ad7a713
@ -75,6 +75,8 @@ public class ClassPlanDTO {
|
|||||||
private String examType;
|
private String examType;
|
||||||
@ApiModelProperty(name = "examReason", value = "考试申请原因")
|
@ApiModelProperty(name = "examReason", value = "考试申请原因")
|
||||||
private String examReason;
|
private String examReason;
|
||||||
|
@ApiModelProperty(name = "examStatus", value = "考点信息分配状态0未分配1已分配")
|
||||||
|
private String examStatus;
|
||||||
|
|
||||||
|
|
||||||
public String getPlanNumber() {
|
public String getPlanNumber() {
|
||||||
@ -279,4 +281,12 @@ public class ClassPlanDTO {
|
|||||||
public void setWaitSignUpUser(Integer waitSignUpUser) {
|
public void setWaitSignUpUser(Integer waitSignUpUser) {
|
||||||
this.waitSignUpUser = waitSignUpUser;
|
this.waitSignUpUser = waitSignUpUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getExamStatus() {
|
||||||
|
return examStatus == null ? "" : examStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExamStatus(String examStatus) {
|
||||||
|
this.examStatus = examStatus;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -384,6 +384,7 @@ public class ClassPlanServiceImpl extends DefaultBaseService implements IClassPl
|
|||||||
item.setExamType("");
|
item.setExamType("");
|
||||||
if(examApplyDTO != null){
|
if(examApplyDTO != null){
|
||||||
item.setExamType(examApplyDTO.getCheckStatus() + "");
|
item.setExamType(examApplyDTO.getCheckStatus() + "");
|
||||||
|
item.setExamStatus(examApplyDTO.getStatus() + "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PageInfo<ClassPlanDTO> pageInfo = new PageInfo<>(classPlanDTOs);
|
PageInfo<ClassPlanDTO> pageInfo = new PageInfo<>(classPlanDTOs);
|
||||||
|
@ -116,11 +116,15 @@
|
|||||||
dom += '<a type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="updateEvent">查看</a>';
|
dom += '<a type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="updateEvent">查看</a>';
|
||||||
return dom;
|
return dom;
|
||||||
}
|
}
|
||||||
if(row['examType'] === '1'){
|
if(row['examType'] === '1' && row['examStatus'] === '1'){
|
||||||
dom += '<a type="button" class="layui-btn layui-btn-normal layui-btn-xs">审核通过</a>';
|
dom += '<a type="button" class="layui-btn layui-btn-normal layui-btn-xs">审核通过</a>';
|
||||||
dom += '<a type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="showEvent">查看</a>';
|
dom += '<a type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="showEvent">查看</a>';
|
||||||
return dom;
|
return dom;
|
||||||
}
|
}
|
||||||
|
if(row['examType'] === '1' && row['examStatus'] === '0'){
|
||||||
|
dom += '<a type="button" class="layui-btn layui-btn-normal layui-btn-xs">考场信息安排中</a>';
|
||||||
|
return dom;
|
||||||
|
}
|
||||||
if(row['examType'] === '2'){
|
if(row['examType'] === '2'){
|
||||||
dom += '<a type="button" class="layui-btn layui-btn-danger layui-btn-xs">审核驳回</a>';
|
dom += '<a type="button" class="layui-btn layui-btn-danger layui-btn-xs">审核驳回</a>';
|
||||||
dom += '<a type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="updateEvent">查看</a>';
|
dom += '<a type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="updateEvent">查看</a>';
|
||||||
@ -292,6 +296,7 @@
|
|||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/classplan/update-report-exam.html?classPlanId={classPlanId}', [obj.data.classPlanId]),
|
content: top.restAjax.path('route/classplan/update-report-exam.html?classPlanId={classPlanId}', [obj.data.classPlanId]),
|
||||||
end: function () {
|
end: function () {
|
||||||
|
reloadTable();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user