|
@@ -394,7 +394,7 @@ TalentInfoInfoDlg.talentTypeChange = function () {
|
|
|
TalentInfoInfoDlg.talentTypeFlag = false;
|
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
|
}
|
|
|
- text = $("#fst_work_time").prev("label").html().replace(/首次/, "近三年");
|
|
|
+ text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/首次/, "近三年") : "";
|
|
|
break;
|
|
|
case "2":
|
|
|
TalentInfoInfoDlg.talentTypeOneTwo = true;
|
|
@@ -413,7 +413,7 @@ TalentInfoInfoDlg.talentTypeChange = function () {
|
|
|
TalentInfoInfoDlg.talentTypeFlag = false;
|
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
|
|
|
}
|
|
|
- text = $("#fst_work_time").prev("label").html().replace(/近三年/, "首次");
|
|
|
+ text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
|
break;
|
|
|
case "3":
|
|
|
TalentInfoInfoDlg.talentTypeFlag = true;
|
|
@@ -428,11 +428,11 @@ TalentInfoInfoDlg.talentTypeChange = function () {
|
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "labor_contract_rangetime");
|
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
|
|
|
}
|
|
|
- text = $("#fst_work_time").prev("label").html().replace(/近三年/, "首次");
|
|
|
+ text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
|
break;
|
|
|
default:
|
|
|
$("#tipsBlock").css('display', 'none');
|
|
|
- text = $("#fst_work_time").prev("label").html().replace(/近三年/, "首次");
|
|
|
+ text = $("#fst_work_time").length > 0 ? $("#fst_work_time").prev("label").html().replace(/近三年/, "首次") : "";
|
|
|
break;
|
|
|
}
|
|
|
$("#fst_work_time").prev("label").html(text);
|