diff --git a/public/dashboard/index.html b/public/dashboard/index.html index a2e5537..fd847b0 100644 --- a/public/dashboard/index.html +++ b/public/dashboard/index.html @@ -36,7 +36,7 @@
- 驾驶舱1 + 驾驶舱
@@ -293,9 +293,29 @@ ]; $(function () { + getStatistic() initMap(); }); + // http://tiantian2.langye.net/admin/statistic + function getStatistic(){ + var url = "/admin/statistic"; + var data = {} + $.ajax({ + type: "get", + timeout: 15000, + contentType: 'application/json', + data: JSON.stringify(data), + url: url, + dataType: "json", + success: function (result, textStatus, xhr) { + console.log("result",result) + }, + complete: function (xhr, textStatus) { + // + } + }); + }, function initMap() { var center = new TMap.LatLng(31.77956, 119.960747); //初始化地图