|
|
@@ -94,7 +94,7 @@ $(document).ready(function() {
|
|
|
,{
|
|
|
field: 'name',
|
|
|
title: '姓名',
|
|
|
- sortable: true,
|
|
|
+ sortable: false,
|
|
|
sortName: 'name',
|
|
|
formatter:function(value, row , index){
|
|
|
value = jp.unescapeHTML(value);
|
|
|
@@ -106,7 +106,7 @@ $(document).ready(function() {
|
|
|
,{
|
|
|
field: 'phone',
|
|
|
title: '手机号',
|
|
|
- sortable: true,
|
|
|
+ sortable: false,
|
|
|
sortName: 'phone',
|
|
|
formatter:function(value, row , index){
|
|
|
return value?value:"—";
|
|
|
@@ -115,7 +115,7 @@ $(document).ready(function() {
|
|
|
,{
|
|
|
field: 'status',
|
|
|
title: '当前状态',
|
|
|
- sortable: true,
|
|
|
+ sortable: false,
|
|
|
sortName: 'status',
|
|
|
formatter: function(value, row , index){
|
|
|
if(value==2) value = 0;//面试未通过
|
|
|
@@ -135,23 +135,24 @@ $(document).ready(function() {
|
|
|
if(row.status == 0){//候选中
|
|
|
|
|
|
}else if(row.status == 2){//面试未通过
|
|
|
- info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待面试(未通过)";
|
|
|
+ info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待面试(未通过)";
|
|
|
}else if(row.status == 4){//未录用
|
|
|
- info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待录用(未录用)";
|
|
|
+ info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待录用(未录用)";
|
|
|
}else if(row.status == 6){//未入职
|
|
|
- info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待入职(未入职)";
|
|
|
+ info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待入职(未入职)";
|
|
|
}else if(row.status == 8){//已离职
|
|
|
- info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"在职(办理离职)";
|
|
|
+ info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"在职(办理离职)";
|
|
|
}else if(row.status == 1){//待面试
|
|
|
- info = '<button onclick="interviewTime('+row.omCandidateTrack.id+')" class="btn btn-xs" style="color:#0F70E1;border-color:#0F70E1;background:#fff;font-size:12px;">面试</button> <span style="color:#0F70E1">'+
|
|
|
- timeFormat(row.omCandidateTrack.interviewTime)+'</span>';
|
|
|
+ info = '<button onclick="interviewTime('+row.omCandidateTrack.id+')" class="btn btn-xs" style="color:#0F70E1;border:2px solid #0F70E1;background:#fff;font-size:12px;font-weight:bold">面试</button> '+
|
|
|
+ '<a onclick="interviewTime('+row.omCandidateTrack.id+')" style="color:#0F70E1">'+timeFormat(row.omCandidateTrack.interviewTime)+'</a>';
|
|
|
}else if(row.status == 3){//待录用
|
|
|
//info = '--';
|
|
|
}else if(row.status == 5){//待入职
|
|
|
//info = '--';
|
|
|
}else if(row.status == 7){//已入职(在职)
|
|
|
if(row.omCandidateTrack.cashbackDate){
|
|
|
- info = '<button disabled="disabled" class="btn btn-xs" style="color:#D40000;border-color:#D40000;background:#fff;font-size:12px;">返费</button> '+dateFormat(row.omCandidateTrack.cashbackDate);
|
|
|
+ info = '<button disabled="disabled" class="btn btn-xs" style="color:#D40000;border:2px solid #D40000;background:#fff;font-size:12px;font-weight:bold">返费</button> '+
|
|
|
+ '<span style="color:#D40000">'+dateFormat(row.omCandidateTrack.cashbackDate)+'</span>';
|
|
|
}
|
|
|
}
|
|
|
return info;
|
|
|
@@ -160,7 +161,7 @@ $(document).ready(function() {
|
|
|
,{
|
|
|
field: 'latestTrackTime',
|
|
|
title: '最后跟进时间',
|
|
|
- sortable: true,
|
|
|
+ sortable: false,
|
|
|
sortName: 'latestTrackTime',
|
|
|
formatter:function(value, row , index){
|
|
|
value = row.latestTrackTime?value:row.updateDate;
|
|
|
@@ -303,7 +304,7 @@ $(document).ready(function() {
|
|
|
|
|
|
//候选人备注
|
|
|
function remark(id){
|
|
|
- jp.openSaveDialog('备注', "${ctx}/omcandidate/omCandidate/remark?id="+id, '500PX', '380px');
|
|
|
+ openSaveDialog('备注', "${ctx}/omcandidate/omCandidate/remark?id="+id, '500PX', '380px');
|
|
|
}
|
|
|
//预约面试
|
|
|
function interview(id){
|
|
|
@@ -407,7 +408,29 @@ $(document).ready(function() {
|
|
|
top.layer.close(index);
|
|
|
});
|
|
|
return false;
|
|
|
- }
|
|
|
+ }
|
|
|
+ //打开对话框(添加修改)
|
|
|
+ function openSaveDialog(title,url,width,height){
|
|
|
+ var auto = true;//是否使用响应式,使用百分比时,应设置为false
|
|
|
+ if(width.indexOf("%")>=0 || height.indexOf("%")>=0 ){
|
|
|
+ auto =false;
|
|
|
+ }
|
|
|
+ top.layer.open({
|
|
|
+ type: 2,
|
|
|
+ area: [width, height],
|
|
|
+ title: title,
|
|
|
+ auto:auto,
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
+ content: url ,
|
|
|
+ btn: ['保存', '取消'],
|
|
|
+ yes: function(index, layero){
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到弹出的窗口对象,执行窗口内iframe页的方法:iframeWin.method();
|
|
|
+ iframeWin.contentWindow.save();//调用保存事件,在 弹出页内,需要定义save方法。处理保存事件。
|
|
|
+ },
|
|
|
+ cancel: function(index){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
@@ -424,11 +447,11 @@ $(document).ready(function() {
|
|
|
<form:form id="searchForm" modelAttribute="omCandidate" class="form form-horizontal well clearfix">
|
|
|
<div class="col-xs-12 col-sm-3 col-md-2">
|
|
|
<label class="label-item single-overflow pull-left" title="姓名">姓名:</label>
|
|
|
- <form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control"/>
|
|
|
+ <form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control" autocomplete="off"/>
|
|
|
</div>
|
|
|
<div class="col-xs-12 col-sm-3 col-md-2">
|
|
|
<label class="label-item single-overflow pull-left" title="手机号">手机号:</label>
|
|
|
- <form:input path="phone" htmlEscape="false" maxlength="30" placeholder="请输入手机号" class=" form-control"/>
|
|
|
+ <form:input path="phone" htmlEscape="false" maxlength="30" placeholder="请输入手机号" class=" form-control" autocomplete="off"/>
|
|
|
</div>
|
|
|
<div class="col-xs-12 col-sm-3 col-md-2">
|
|
|
<label class="label-item single-overflow pull-left" title="当前状态">当前状态:</label>
|