You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.7 KiB
125 lines
4.7 KiB
<script>
|
|
var cls = '.col-sm-4';
|
|
//是否最高职称聘任
|
|
if ($('#IsJobAsMaxTitle').val()) {
|
|
if ($('#IsJobAsMaxTitle').val() === "True") {
|
|
$("[data-my-group='JobAsMaxTitle2']").parents(cls).hide();
|
|
$("[data-my-group='JobAsMaxTitle1']").parents(cls).show();
|
|
}
|
|
else {
|
|
$("[data-my-group='JobAsMaxTitle1']").parents(cls).hide();
|
|
$("[data-my-group='JobAsMaxTitle2']").parents(cls).show();
|
|
}
|
|
}
|
|
else {
|
|
$("[data-my-group='JobAsMaxTitle1']").parents(cls).hide();
|
|
$("[data-my-group='JobAsMaxTitle2']").parents(cls).hide();
|
|
}
|
|
//是否享受学历待遇
|
|
if ($('#EducationGrade').val()) {
|
|
if ($('#EducationGrade').val() !== "") {
|
|
$("#EducationGradeDate").parents(cls).show();
|
|
}
|
|
else {
|
|
$("#EducationGradeDate").parents(cls).hide();
|
|
}
|
|
}
|
|
else {
|
|
$("#EducationGradeDate").parents(cls).hide();
|
|
}
|
|
//是否在编在岗
|
|
if ($('#HasPosition').val()) {
|
|
if ($('#HasPosition').val() ==="True") {
|
|
$("[data-my-group='HasPosition2']").parents(cls).hide();
|
|
$("[data-my-group^='HasPosition1']").parents(cls).show();
|
|
if ($('#IsMiddleLevel').val()) {
|
|
if ($('#IsMiddleLevel').val() ==="True") {
|
|
$("[data-my-group='HasPosition12']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition11']").parents(cls).show();
|
|
|
|
}
|
|
else {
|
|
$("[data-my-group='HasPosition11']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition12']").parents(cls).show();
|
|
}
|
|
}
|
|
else {
|
|
$("[data-my-group='HasPosition11']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition12']").parents(cls).hide();
|
|
}
|
|
}
|
|
else {
|
|
$("[data-my-group^='HasPosition1']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition2']").parents(cls).show();
|
|
}
|
|
}
|
|
else {
|
|
$("[data-my-group^='HasPosition1']").parents(cls).hide();
|
|
$("[data-my-group^='HasPosition2']").parents(cls).hide();
|
|
}
|
|
</script>
|
|
<script>
|
|
$('#IsJobAsMaxTitle').change(function () {
|
|
if ($(this).val() === "True") {
|
|
$("[data-my-group='JobAsMaxTitle2']").parents(cls).hide();
|
|
$("[data-my-group='JobAsMaxTitle1']").parents(cls).show();
|
|
}
|
|
else if ($(this).val() === "False")
|
|
{
|
|
$("[data-my-group='JobAsMaxTitle1']").parents(cls).hide();
|
|
$("[data-my-group='JobAsMaxTitle2']").parents(cls).show();
|
|
}
|
|
else {
|
|
$("[data-my-group='JobAsMaxTitle1']").parents(cls).hide();
|
|
$("[data-my-group='JobAsMaxTitle2']").parents(cls).hide();
|
|
}
|
|
});
|
|
//
|
|
$('#EducationGrade').change(function () {
|
|
if ($(this).val()!=="") {
|
|
$("#EducationGradeDate").parents(cls).show();
|
|
}
|
|
else {
|
|
$("#EducationGradeDate").val('').parents(cls).hide();
|
|
}
|
|
});
|
|
//
|
|
$('#HasPosition').change(function () {
|
|
if ($(this).val() === "True") {
|
|
$("[data-my-group='HasPosition2']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition1']").parents(cls).show();
|
|
}
|
|
else if($(this).val() === "False") {
|
|
$("[data-my-group='HasPosition1']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition2']").parents(cls).show();
|
|
}
|
|
else {
|
|
$("[data-my-group='HasPosition1']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition2']").parents(cls).hide();
|
|
}
|
|
});
|
|
$('#IsMiddleLevel').change(function () {
|
|
if ($(this).val() === "True") {
|
|
$("[data-my-group='HasPosition12']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition11']").parents(cls).show();
|
|
}
|
|
else if ($(this).val() === "False") {
|
|
$("[data-my-group='HasPosition11']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition12']").parents(cls).show();
|
|
}
|
|
else {
|
|
$("[data-my-group='HasPosition11']").parents(cls).hide();
|
|
$("[data-my-group='HasPosition12']").parents(cls).hide();
|
|
}
|
|
});
|
|
</script>
|
|
<script>
|
|
$('#query').click(function () {
|
|
var url = $(this).attr('data-action') + '?' + $(this).parents('form').find('input,select').not('[value=""]').serialize();
|
|
window.location.href = url;
|
|
});
|
|
$('#export').click(function () {
|
|
var url = $(this).attr('data-action') + '?' + $(this).parents('form').find('input,select').not('[value=""]').serialize();
|
|
window.open(url);
|
|
});
|
|
</script> |