function socialSecurity() { var jsonData = [{ "year": "2021", "employedPerson": 3.74, "unemployPerson": 0.76, "unemployRate": "-", "ventureFund": 3486, "skillIdentification": 8330, "subsidy": 1.84, "totalDispute": 4259, "involvedPeople": 4270, "casesClose": 4012, "arbitratAward": 386, "closeRate": 97 }, { "year": "2022年截至9月", "employedPerson": 3.8, "unemployPerson": 0.93, "unemployRate": "-", "ventureFund": 2466, "skillIdentification": 7489, "subsidy": 0.74, "totalDispute": 4246, "involvedPeople": 4300, "casesClose": 3697, "arbitratAward": 318, "closeRate": 87 }, { "year": "2023年截至6月", "employedPerson": 2.92, "unemployPerson": 1.07, "unemployRate": 5.5, "ventureFund": 1701, "skillIdentification": 5490, "subsidy": 0.23, "totalDispute": 3294, "involvedPeople": 3302, "casesClose": 2655, "arbitratAward": 165, "closeRate": 65 }] // 初始化年份 // console.log(document.getElementById("year")) // document.getElementById("year").value='2023年截至6月'; $('#year').on('change', function () { var value = $(this).val(); for (var i = 0; i < jsonData.length; i++) { if (jsonData[i].year == value) { var itemDataHtml = `
  • 城镇新增就业人数
    `+ jsonData[i].employedPerson + `
    万人
  • 城镇登记失业人员就业人数
    `+ jsonData[i].unemployPerson + `
    万人
  • 城镇调查失业率
    `+ jsonData[i].unemployRate + `
    %
  • 创业贷款发放金额
    `+ jsonData[i].ventureFund + `
    万元
  • 参加职业技能等级评价
    `+ jsonData[i].skillIdentification + `
  • 补贴性职业培训人数
    `+ jsonData[i].subsidy + `
    万人
  • ` // PC端表格 var shbzTableHtml = `
    劳动争议案件
    ` // 移动端表格 var shbzTableHtmlm = `
    劳动争议案件
  • 结案数量(件)
  • 仲裁裁决(件)
  • 结案率(%)
  • `+ jsonData[i].casesClose + `
  • `+ jsonData[i].arbitratAward + `
  • `+ jsonData[i].closeRate + `
  • ` $(".itemData").empty().html(itemDataHtml) $(".shbzTable").empty().html(shbzTableHtml) $(".shbzTablem").empty().html(shbzTableHtmlm) } } }) }