| | |
| | | //加载count |
| | | function loadCountByUserid() { |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_all_count_by_id&userid=" + thisWidget.userid; |
| | | var backend_url_taxi = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_count_all&datatime=" + thisWidget.datatime + "&datatype=" + thisWidget.datatype; |
| | | console.log(backend_url_taxi) |
| | | $.ajax({ |
| | | type: 'get', |
| | | dataType: 'json', |
| | |
| | | $("#href" + j).attr("_code", cntObj.code); |
| | | $("#href" + j).attr("_name", cntObj.name); |
| | | } |
| | | } |
| | | }, |
| | | error: function (request, textStatus) { |
| | | } |
| | | }); |
| | | $.ajax({ |
| | | type: 'get', |
| | | dataType: 'json', |
| | | data: {}, |
| | | async: true,//同步 |
| | | url: backend_url_taxi, |
| | | success: function (data) { |
| | | var cntGroup = data.data.result; |
| | | console.log(cntGroup) |
| | | if (cntGroup != null) { |
| | | $("#count4").html(""); |
| | | $("#count4").append(cntGroup.count_all); |
| | | // $("#countName4").text(cntGroup.name); |
| | | // $("#href4").attr("_code", cntGroup.code); |
| | | // $("#href4").attr("_name", cntGroup.name); |
| | | } |
| | | }, |
| | | error: function (request, textStatus) { |