|
@@ -125,19 +125,31 @@ function resumeAnalysis(that) {
|
|
|
$('.tab-ct-current').removeClass('tab-ct-current');
|
|
|
$('.' + tabClassName + '-ct').addClass('tab-ct-current');
|
|
|
|
|
|
- $('#_resumeAnalysisDiv,#_resumeAnalysisDiv2,#_resumeAnalysisDiv3,#_resumeAnalysisDiv4,.shrTooltip, #viewLog').show();
|
|
|
+ $('#_resumeAnalysisDiv,#_resumeAnalysisDiv2,#_resumeAnalysisDiv3,#_resumeAnalysisDiv4,#_resumeAnalysisDiv5,#_resumeAnalysisDiv6,.shrTooltip, #viewLog').show();
|
|
|
|
|
|
},
|
|
|
startAnalyze: function() {
|
|
|
var param = {taskId: taskId};
|
|
|
|
|
|
var val = $("#recuritmentDemand").shrPromptBox("getValue");
|
|
|
+ //判断checkbox类型isKeyTalent是否选中
|
|
|
+ var isKeyTalent = $("#isKeyTalent").is(':checked');
|
|
|
+ var phoneModifyValue = $("#phoneModify").val();
|
|
|
+ var count = $('#inputcontainer .resume-list').length;
|
|
|
+ param.isKeyTalent = isKeyTalent;
|
|
|
+ param.phoneModify = phoneModifyValue;
|
|
|
+ if (pageUIPK == 'com.kingdee.shr.recuritment.resumeScreening' && count > 1 && (phoneModifyValue || isKeyTalent)) {
|
|
|
+ let meg = '当选择重点人才或需更新手机号时,只能同时解析单份简历.';
|
|
|
+ shr.showWarning({
|
|
|
+ message: meg,
|
|
|
+ hideAfter: 3
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ }
|
|
|
if(val){
|
|
|
targetId = val.id;
|
|
|
- param = {
|
|
|
- targetId: targetId,
|
|
|
- taskId: taskId
|
|
|
- };
|
|
|
+ param.targetId = targetId;
|
|
|
+ param.taskId = taskId;
|
|
|
}else{
|
|
|
var meg = '';
|
|
|
if(pageUIPK == 'com.kingdee.shr.recuritment.resumeScreening'||pageUIPK == 'com.kingdee.shr.recuritment.app.RecommendRecord.list'||pageUIPK == 'com.kingdee.shr.recuritment.app.ResumeBaseRec.selfUploadDemand.list'){
|
|
@@ -483,6 +495,8 @@ function resumeAnalysis(that) {
|
|
|
});
|
|
|
// $('#resume_upload').css('left','1000px');
|
|
|
$('.upload-btn').css('visibility','hidden');
|
|
|
+ //二开字段隐藏
|
|
|
+ $('#_resumeAnalysisDiv5,#_resumeAnalysisDiv6').hide();
|
|
|
$("#recuritmentDemand").shrPromptBox("enable");
|
|
|
$("#interRecommendation").shrPromptBox("enable");
|
|
|
$("#resumeSource").shrPromptBox("enable");
|
|
@@ -495,19 +509,34 @@ function resumeAnalysis(that) {
|
|
|
// $('#resume_upload').css('left','0px');
|
|
|
$('.upload-btn').css('visibility','visible');
|
|
|
$('#_resumeAnalysisDiv,#_resumeAnalysisDiv2,#_resumeAnalysisDiv3,#_resumeAnalysisDiv4,.shrTooltip, #viewLog').show();
|
|
|
+ $('#_resumeAnalysisDiv5,#_resumeAnalysisDiv6').show();
|
|
|
}
|
|
|
},
|
|
|
getAnalysisProgress: function() {
|
|
|
that.remoteCall({
|
|
|
method: 'getSmartImportTaskSchedule',
|
|
|
param: {
|
|
|
- // taskId: taskId
|
|
|
+ taskId: taskId
|
|
|
},
|
|
|
success: function(res) {
|
|
|
var data = res.data
|
|
|
if (res.code !== '0') {
|
|
|
return false;
|
|
|
}
|
|
|
+ if(data.successDetails.length > 0){
|
|
|
+ let okDetails = data.successDetails;
|
|
|
+ let taskIds = new Array();
|
|
|
+ //循环okDetails,并取出id
|
|
|
+ for(let i=0;i<okDetails.length;i++){
|
|
|
+ taskIds.push(okDetails[i].id);
|
|
|
+ }
|
|
|
+ that.remoteCall({
|
|
|
+ method: 'afterSmartImportTask',
|
|
|
+ param: {
|
|
|
+ taskIds: taskIds.toString()
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
initCntroller.getSmartImportTaskSchedule(data);
|
|
|
}
|
|
|
})
|
|
@@ -529,6 +558,20 @@ function resumeAnalysis(that) {
|
|
|
res.data.taskState = [];
|
|
|
res.data.taskState.value = NOT_START;
|
|
|
}
|
|
|
+ if(data.successDetails.length > 0){
|
|
|
+ let okDetails = data.successDetails;
|
|
|
+ let taskIds = new Array();
|
|
|
+ //循环okDetails,并取出id
|
|
|
+ for(let i=0;i<okDetails.length;i++){
|
|
|
+ taskIds.push(okDetails[i].id);
|
|
|
+ }
|
|
|
+ that.remoteCall({
|
|
|
+ method: 'afterSmartImportTask',
|
|
|
+ param: {
|
|
|
+ taskIds: taskIds.toString()
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
initCntroller.getSmartImportTaskSchedule(data);
|
|
|
}
|
|
|
})
|
|
@@ -727,7 +770,7 @@ function resumeAnalysis(that) {
|
|
|
});
|
|
|
// $('#resume_upload').css('left','0px');
|
|
|
$('.upload-btn').css('visibility','visible');
|
|
|
- $('#_resumeAnalysisDiv,#_resumeAnalysisDiv2,#_resumeAnalysisDiv3,#_resumeAnalysisDiv4,.upload-resume-wrapper .shrTooltip, #viewLog').show();
|
|
|
+ $('#_resumeAnalysisDiv,#_resumeAnalysisDiv2,#_resumeAnalysisDiv3,#_resumeAnalysisDiv4,,#_resumeAnalysisDiv5,#_resumeAnalysisDiv6,.upload-resume-wrapper .shrTooltip, #viewLog').show();
|
|
|
|
|
|
$('.result').hide();
|
|
|
$('.some-resume').removeClass('some-resume-result');
|