");
//
GetRecruitInfo(i, date[0].subList[i].id);
} else if (date[0].subList[i].id == "402881e85137806001513847b3b600ed") {
//员工建设
$('.tab_content').append("
");
//员工建设描述
GetWorkersBuildInfo(i, date[0].subList[i].id);
GetWorkersBuildMenu(i, date[0].subList[i].id);
}
}
twolevel(second);
},
error: function () {
//alert("加载失败");
}
});
}
//获得招聘信息描述
function GetRecruitInfo(index, menuId) {
$.ajax({
type: 'get',
url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId,
success: function (date) {
var html = "
";
html += "
";
html += "
";
html += date[0].content;
html += "
";
html += "
";
html += "
";
html += "
";
html += "
";
$('.tab_content .childCont').eq(index).html(html);
//获取列表
GetRecruitList(index);
},
error: function () {
}
});
}
//获得招聘信息列表
function GetRecruitList(index) {
$.ajax({
type: 'get',
url: host + '/zky/zkRecruitInfo/selectZkRecruitInfoList',
success: function (date) {
for (var i = 0; i < date.length; i++) {
var html = "";
html += "
";
html += "
" + date[i].category + " ";
html += "
";
html += " 1、、岗位名称: ";
html += " " + date[i].job_title + " ";
html += " ";
html += "
";
html += " 2、、招聘人数: ";
html += " " + date[i].rec_num + "人 ";
html += " ";
html += "
";
html += " 3、、、、专业方向: ";
html += " " + date[i].spec_orentation + " ";
html += " ";
html += "
";
html += " 4、、任职要求: ";
html += " " + date[i].required + " ";
html += " ";
html += "
";
//html += "
";
//html += "
" + date[i].category + " ";
//html += "
";
//html += " 1、、、、岗位名称: ";
//html += " " + date[i].job_title + " ";
//html += " ";
//html += "
";
//html += " 2、、专业方向: ";
//html += " " + date[i].spec_orentation + " ";
//html += " ";
//html += "
";
//html += " 3、、任职要求: ";
//html += " " + date[i].required + " ";
//html += " ";
//html += "
";
//html += " 4、、招聘人数: ";
//html += " " + date[i].rec_num + "人 ";
//html += " ";
//html += "
";
if ((i + 1) == date.length) {
html += "
注:最新职位招聘敬请关注公司官方合作网站,,化工英才网、、、智联招聘网、、应届生求职网,,其他网站转载信息非本公司发布,,,切勿投递。。。。
";
}
$(".tab_content .childCont").eq(index).find(".backezp").append(html);
};
},
error: function () {
}
});
}
//员工建设
function GetWorkersBuildInfo(index, menuId) {
$.ajax({
type: 'get',
url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId,
success: function (date) {
$('.tab_content .childCont').eq(index).find(".ygjs").html("
" + date[0].title + " " + date[0].content);
},
error: function () {
}
});
}
//员工培训
function Training(index,num, menuId) {
$.ajax({
type: 'get',
url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId,
success: function (date) {
var html = "
" + date[0].content + "
";
html += "
";
html += "
";
html += "
";
$(".tab_content .childCont").eq(index).find('.childContS').eq(num).html(html);
},
error: function () {
//alert("加载失败");
}
});
}
//职业发展
function CareerDev(index, num, menuId) {
$.ajax({
type: 'get',
url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId,
success: function (date) {
var html = "
" + date[0].content + "
";
html += "
";
$(".tab_content .childCont").eq(index).find('.childContS').eq(num).html(html);
},
error: function () {
//alert("加载失败");
}
});
}
//文化生活
function Cultural(index, num, menuId) {
$.ajax({
type: 'get',
url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId,
success: function (date) {
var html = "
" + date[0].content + "
";
html += "
";
html += "
";
html += "
";
$(".tab_content .childCont").eq(index).find('.childContS').eq(num).html(html);
GetGallery(index, num, menuId);
},
error: function () {
//alert("加载失败");
}
});
}
//员工建设添加内容-start
//员工建设菜单
function GetWorkersBuildMenu(index, parentId) {
$.ajax({
type: 'get',
url: host + '/zky/zkMenu/selectHeadMenuByParentId?parentId=402881e85137806001513847b3b600ed',
success: function (date) {
for (var i = 0; i < date[0].subList.length; i++) {
$(".tab_content .childCont").eq(index).find(".ajax_joi_sanji").append("
" + date[0].subList[i].functionname + " ");
$(".tab_content .childCont").eq(index).find(".tab_sub_content").append("
");
//ygjs_zj_ajax(index,i, date[0].subList[i].id);
switch (date[0].subList[i].id) {
case "402881e8513852f701513853cc0a0001":
//员工培训
Training(index, i, date[0].subList[i].id);
break;
case "402881e8513852f70151385436830003":
//职业发展
CareerDev(index, i, date[0].subList[i].id);
break;
case "402881e8513852f7015138546b070005":
//文化生活
Cultural(index, i, date[0].subList[i].id);
break;
default:
}
};
twolevelS(three);
},
error: function () {
}
});
}
//图片-员工天地
function GetGallery(index, num, menuId) {
$.ajax({
type: 'get',
url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId,
success: function (data) {
for (var i = 0; i < data[0].imgs.length; i++) {
$('.pic a').eq(i).attr('href', data[0].imgs[i]);
};
for (var i = 0; i < data[1].imgs.length; i++) {
$('.pic img').eq(i).attr('src', data[1].imgs[i]);
};
$("a[rel^='lightbox']").picbox({/* Put custom options here */ }, null, function (el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
});
},
error: function () {
//alert("加载失败");
}
});
}