var path = "https://data.cqna.gov.cn"; console.log(window.setInterval("initDate(1)",1000*30 )); console.log(window.setInterval("date()",1000*30 )); console.log(window.setInterval("initProcessingList(1) ",1000*10 )); function southload() { initDate(1) } function initProcessingList(area) { console.log(area) $.ajax({ url: path + "/department/getListMatterRank", //url地址 dataType: "json", //返回的数据类型 type: "get", //发起请求的方式 async: false, data: { "area": area }, success: function(data) { console.log(data) handlingInfo(data.data) } }); } function initDate(area) { $.ajax({ url: path + "/department/queryDepartmentItemRankByArea", //url地址 dataType: "json", //返回的数据类型 type: "get", //发起请求的方式 async: false, data: { "area": area }, success: function(data) { var listWeb = data.data.listWeb loadDataSort(data.data.listRank, data.data.listMatterRank) application(data.data.listWeb) total(data.data.conutNumbers) handlingInfo(data.data.processingList) return listWeb; }, error: function() { alert('网络错误,请稍后再试!'); } }); } //愉快办加载 $("#handling_info").ready(function() { initProcessingList(1) }); function handlingInfo(processingList){ var coutent='' if(processingList){ for(var i=0;i" }else{ coutent+="
  • "+processingList[i].state+"
  • " } coutent+="
  • "+processingList[i].acceptedDepartment+"
  • " coutent+="
  • "+ processingList[i].handlingName.length > 6 ? processingList[i].handlingName.substring(0, 6) : processingList[i].handlingName + "
  • " coutent+="
  • "+processingList[i].acceptDate+"
  • " coutent+="
  • "+processingList[i].commitmentDate+"
  • " } } $("#handling_info").html(coutent) // } //加载排序 function loadDataSort(listRank, listMatterRank) { // listRank=data.data.listRank; // console.log(listRank[listRank.length-1].firstNumber) $("#first_number").html("" + listRank.firstNumber) $("#first_name").html("重庆市南岸区交通局") $("#second_number").html() $("#second_name").html("重庆市南岸区城市管理局") $("#third_number").html() $("#third_name").html("重庆市南岸区卫生健康委员会") $("#matter_sort_one").html("出租汽车驾驶员从业资格注册"); $("#matter_sort_one_number").html("" ); $("#matter_sort_two").html("户外招牌设置备案"); $("#matter_sort_two_number").html(); $("#matter_sort_three").html("执业医师注册"); $("#matter_sort_three_number").html(); } //加载南岸区四窗同办 function application(listWeb) { // $("#timer10").html(listWeb.applicationNumber); // $("#timer11").html(listWeb.acceptNumber); // $("#timer12").html(listWeb.rejectionNumber); // $("#timer13").html(listWeb.serialNumber); } //加载总数 function total(conutNumbers) { var coutent = ''; for (var i = 0; i < conutNumbers.length; i++) { if (conutNumbers[i] == '0' || conutNumbers[i] == "0") { coutent = coutent + "" + conutNumbers[i] + "" } else { coutent = coutent + "" + conutNumbers[i] + "" } } coutent = coutent + "" // $("#totals").html(coutent) } //本月加载 $("#month").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,2) $("#monthDeclare").html(data.applicationNumberNetwork+data.applicationNumberWindow) $("#monthAcceptance").html(data.acceptNumber) $("#monthConclude").html(data.serialNumber) }); //本周加载 $("#week").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,1) $("#weekDeclare").html(data.applicationNumberNetwork+data.applicationNumberWindow) $("#weekAcceptance").html(data.acceptNumber) $("#weekConclude").html(parseInt(data.serialNumber)) }); //本年加载 $("#year").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,3) $("#yearDeclare").html(data.applicationNumberNetwork+data.applicationNumberWindow) $("#yearAcceptance").html(data.acceptNumber) $("#yearConclude").html(data.serialNumber) }); //日期加载 function date(){ //本月加载 $("#month").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,2) $("#monthDeclare").html(data.applicationNumberNetwork+data.applicationNumberWindow) $("#monthAcceptance").html(data.acceptNumber) $("#monthConclude").html(data.serialNumber) }); //本周加载 $("#week").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,1) $("#weekDeclare").html(data.applicationNumberNetwork+data.applicationNumberWindow) $("#weekAcceptance").html(data.acceptNumber) $("#weekConclude").html(parseInt(data.serialNumber)) }); //本年加载 $("#week").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,3) $("#yearDeclare").html(data.applicationNumberNetwork+data.applicationNumberWindow) $("#yearAcceptance").html(data.acceptNumber) $("#yearConclude").html(data.serialNumber) }); } //本年加载 $("#web").ready(function() { // stop // setInterval( "initMain1()", iFrequency1 ); // run var data= handlingNumber(1,3) $("#timer14").html(data.applicationNumberNetwork) $("#timer15").html(data.applicationNumberWindow) }); //办件数加载 function handlingNumber(area,timeType){ var data1='' $.ajax({ url: path + "/department/getOfficeNumberByAreaInfo", //url地址 dataType: "json", //返回的数据类型 type: "get", //发起请求的方式 cache: false, async: false, data: { "area": area, "timeType":timeType }, success: function(data) { data1=data.data }, error: function() { alert('网络错误,请稍后再试!'); } }); return data1; }