193 lines
10 KiB
JavaScript
193 lines
10 KiB
JavaScript
var btnData;
|
|
$(function (){
|
|
showPage("施工人员");
|
|
});
|
|
|
|
//ifr页面跳转
|
|
function showPage(data){
|
|
btnData=data;
|
|
switch(btnData){
|
|
case "施工人员":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "施工人员");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "公司":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "公司");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "省份":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "省份");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "工种":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "工种");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "年龄结构":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "年龄结构");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "持证情况":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "持证情况");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "性别":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "性别");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "考勤天数":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "考勤天数");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "劳动合同":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#02A7F0";
|
|
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "劳动合同");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "安全培训":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
|
|
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#02A7F0";
|
|
document.getElementById("healthBtn").style.backgroundColor="#027DB4";
|
|
|
|
localStorage.setItem("type", "安全培训");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
case "健康状况":
|
|
document.getElementById("peopleBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("orgBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("provinceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("typeBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("ageBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("cardBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("sexBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("attendanceBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("contractBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("safetyTrainingBtn").style.backgroundColor="#027DB4";
|
|
document.getElementById("healthBtn").style.backgroundColor="#02A7F0";
|
|
|
|
localStorage.setItem("type", "健康状况");
|
|
$("#ifr").attr("src","../../page/workerPost/workerPost.html");
|
|
break;
|
|
|
|
}
|
|
}
|
|
//样式修改
|