|
@@ -289,10 +289,18 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
datas[tableIndex].push(data["rows"][k]);
|
|
datas[tableIndex].push(data["rows"][k]);
|
|
if (data["rows"][k].option) {
|
|
if (data["rows"][k].option) {
|
|
//指定了选项
|
|
//指定了选项
|
|
- let selectVal = $("#" + rel).data("value").toString();
|
|
|
|
- let options = data["rows"][k].option.split(",");
|
|
|
|
- if (options.indexOf(selectVal) == -1) {
|
|
|
|
- data["rows"][k].hidden = true;
|
|
|
|
|
|
+ if (rel == "birthday") {
|
|
|
|
+ let birthday = parseInt($("#" + rel).val().substring(0, 4));
|
|
|
|
+ let currentYear = parseInt(new Date().getFullYear());
|
|
|
|
+ let age = currentYear - (isNaN(birthday) ? 0 : birthday);
|
|
|
|
+ if (isNaN(birthday) || (!isNaN(birthday) && age < data["rows"][k].option))
|
|
|
|
+ data["rows"][k].hidden = true;
|
|
|
|
+ } else {
|
|
|
|
+ let selectVal = $("#" + rel).data("value").toString();
|
|
|
|
+ let options = data["rows"][k].option.split(",");
|
|
|
|
+ if (options.indexOf(selectVal) == -1) {
|
|
|
|
+ data["rows"][k].hidden = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -421,7 +429,7 @@ TalentInfoInfoDlg.infoCallback = function (data) {
|
|
TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
$("#talent_condition").html("<option>---请选择---</option>");
|
|
$("#talent_condition").html("<option>---请选择---</option>");
|
|
- $("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
|
|
|
|
+ $("#annual_salary").parents("td").css("display", "none");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
|
|
|
|
var level = $("#talent_arrange").val();
|
|
var level = $("#talent_arrange").val();
|
|
@@ -440,7 +448,7 @@ TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
*/
|
|
*/
|
|
TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
- $("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
|
|
|
|
+ $("#annual_salary").parents("td").css("display", "none");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
var level = $("#talent_arrange").val();
|
|
var level = $("#talent_arrange").val();
|
|
var cat = $("#talent_arrange_category").val();
|
|
var cat = $("#talent_arrange_category").val();
|
|
@@ -457,7 +465,7 @@ TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
|
|
|
|
TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
$("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
- $("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
|
|
|
|
+ $("#annual_salary").parents("td").css("display", "none");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
|
|
|
|
var source = $("#source").val();
|
|
var source = $("#source").val();
|
|
@@ -477,7 +485,7 @@ TalentInfoInfoDlg.ajaxGetConditionFile = function (source) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (typeof data.info != "undefined" && data.info.isSalary == 1) {
|
|
if (typeof data.info != "undefined" && data.info.isSalary == 1) {
|
|
- $("#annual_salary").parents(".rowGroup").css("display", "block");
|
|
|
|
|
|
+ $("#annual_salary").parents("td").css("display", "table-cell");
|
|
$('#talentInfoForm').bootstrapValidator('addField', "annual_salary", {validators: {
|
|
$('#talentInfoForm').bootstrapValidator('addField', "annual_salary", {validators: {
|
|
notEmpty: {message: '年薪不能放空'},
|
|
notEmpty: {message: '年薪不能放空'},
|
|
callback: {
|
|
callback: {
|
|
@@ -1089,7 +1097,7 @@ $(function () {
|
|
rtl: true
|
|
rtl: true
|
|
});
|
|
});
|
|
if ($("#annual_salary").val() != "") {
|
|
if ($("#annual_salary").val() != "") {
|
|
- $("#annual_salary").parents(".rowGroup").css("display", "block");
|
|
|
|
|
|
+ $("#annual_salary").parents("td").css("display", "table-cell");
|
|
$('#talentInfoForm').bootstrapValidator('addField', "annual_salary", {validators: {
|
|
$('#talentInfoForm').bootstrapValidator('addField', "annual_salary", {validators: {
|
|
notEmpty: {message: '年薪不能放空'},
|
|
notEmpty: {message: '年薪不能放空'},
|
|
callback: {
|
|
callback: {
|