| | |
| | | error: function (request, textStatus) { |
| | | } |
| | | }); |
| | | var backend_url_taxi = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_count_all&datatype=" + thisWidget.datatype + "&datatime="+ thisWidget.datatime; |
| | | $.ajax({ |
| | | type: 'get', |
| | | dataType: 'json', |
| | | data: {}, |
| | | async: true,//同步 |
| | | url : backend_url_taxi, |
| | | success: function (data) { |
| | | var cntGroup = data.data.result; |
| | | if (cntGroup != null) { |
| | | for(var i=0;i < cntGroup.length;i++){ |
| | | var cntobj = cntGroup[i] |
| | | $("#count_all").text(cntobj.count_all); |
| | | $("#count_bus").text(cntobj.count_bus); |
| | | $("#count_taxi").text(cntobj.count_taxi); |
| | | $("#countName").text(cntobj.name); |
| | | $("#href4").attr("_code", cntobj.code); |
| | | $("#href4").attr("_name", cntobj.name); |
| | | } |
| | | } |
| | | }, |
| | | error: function (request, textStatus) { |
| | | haoutil.msg("系统后台错误,请联系管理员处理!"); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |