// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
Date.prototype.Format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"H+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
};
//var nowTime=new Date();
//nowTime.setMonth(nowTime.getMonth()-1);
//alert(nowTime.Format("yyyy-MM-dd HH:mm:ss"))//上月当前时间
var startMonth = new Date().Format("yyyy-MM") + "-01 00:00:00"; //月初
var startDay = new Date().Format("yyyy-MM-dd") + " 00:00:00";//今天开始
var endDate = new Date().Format("yyyy-MM-dd HH:mm:ss");//当前时间
$(function() {
var initData = function (startDate, endDate) {
//订单数
$.get("order/sumOrder",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000" && result.data != null) {
//{"SUM":35877}
$("#sumOrder").text(result.data.SUM);
}
});
//仓库数量
$.get("houseware/sumHouseWareVehicle",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000" && result.data != null) {
//{"WSY":826}
$("#sumHouseWareVehicle").text(result.data.WSY);
}
});
//调度车辆数
$.get("vehicle/sumDispatchVehicle",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000" && result.data != null) {
//{"ZH":254}
$("#sumDispatchVehicle").text(result.data.ZH);
}
});
/* //结算金额
$.get("balance/sumBalance",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000") {
//{"SUM":46789994.2538}
$("#sumBalance").text(result.data == null ? 0 : result.data.SUM.toFixed(2));
}
});
//车辆公里数
$.get("vehicle/sumVehicleKm",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000") {
//{"ZH":55088157}
$("#sumVehicleKm").text(result.data == null ? 0 : result.data.ZH);
}
});*/
//入库数量
$.get("houseware/intHouseWareVehicle",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000" && result.data != null) {
//{"COUNT":10608}
$("#intHouseWareVehicle").text(result.data.COUNT);
}
});
//出库数量
$.get("houseware/outHouseWareVehicle",{startDate:startDate, endDate:endDate},function (result) {
if(result.code == "0000" && result.data != null) {
//{"COUNT":11294}
$("#outHouseWareVehicle").text(result.data.COUNT);
}
});
//订单完成率
finishRate.showLoading({
text: '加载中...', textColor: '#fff', maskColor: 'rgba(0, 0, 0, 0.1)'
});
$.get("order/sumOrderStatus",{startDate:startDate, endDate:endDate},function (result) {
finishRate.hideLoading();
if(result.code == "0000" && result.data != null) {
// [{TITLE: "未完成", ZH: 0}, {TITLE: "已完成", ZH: 0}]
var data = result.data;
for(var i = 0, size = data.length; i < size; i++) {
if(data[i].TITLE == '已完成') {
finishRateOpt.series[0].data[0].value = data[i].ZH;
} else if(data[i].TITLE == '未完成') {
finishRateOpt.series[0].data[1].value = data[i].ZH;
}
}
finishRate.setOption(finishRateOpt);
}
});
//已完成订单车辆种类
finished.showLoading({
text: '加载中...', textColor: '#fff', maskColor: 'rgba(0, 0, 0, 0.1)'
});
$.get("order/sumOrderCompleteVehicleType",{startDate:startDate, endDate:endDate},function (result) {
finished.hideLoading();
if(result.code == "0000" && result.data != null) {
//[{"ZH":191},{"VCCARTYPE":"H31:轻型普通货车","ZH":576},{"VCCARTYPE":"H32:轻型厢式货车","ZH":37},{"VCCARTYPE":"K31:小型普通客车","ZH":1565},{"VCCARTYPE":"K21:中型普通客车","ZH":1}]
var shadowData = [], nameData = [], valueData = [];
var data = result.data, size = data.length;
var maxValue = 10;
for(var i = 0; i < size; i++) {
nameData[i] = data[i].VCCARTYPE ? data[i].VCCARTYPE : '其它';
valueData[i] = data[i].ZH;
maxValue = maxValue > data[i].ZH ? maxValue : data[i].ZH;
}
maxValue += 10;
for(var i = 0; i < size; i++) {
shadowData[i] = maxValue;
}
finishedOpt.yAxis.data = nameData;
finishedOpt.series[0].data = shadowData;
finishedOpt.series[1].data = valueData;
finished.setOption(finishedOpt);
}
});
//订单来源
orderSource.showLoading({
text: '加载中...', textColor: '#fff', maskColor: 'rgba(0, 0, 0, 0.1)'
});
$.get("order/sumOrderFrom",{startDate:startDate, endDate:endDate},function (result) {
orderSource.hideLoading();
if(result.code == "0000" && result.data != null) {
//[{"COUNT(*)":2},{"COUNT(*)":1,"VCCUSTNAME":"股份"},{"COUNT(*)":2,"VCCUSTNAME":"新疆瑞福顺隆汽车销售服务有限责任公司"},{"COUNT(*)":9,"VCCUSTNAME":"江西华泽汽车销售有限责任公司jiangxihuaze"},{"COUNT(*)":4,"VCCUSTNAME":"徐汇江铃销售服务有限公司"},{"COUNT(*)":2,"VCCUSTNAME":"新疆全顺江铃汽车销售有限公司"},{"COUNT(*)":1,"VCCUSTNAME":"河南裕华丰汇汽车销售服务有限公司 Henan Yuhuafenghui"}]
var nameData = [], valueData = [];
var data = result.data, size = data.length;
for(var i = 0; i < size; i++) {
nameData[i] = data[i].VCCUSTNAME ? data[i].VCCUSTNAME : '其它';
valueData[i] = data[i].COUNT;
}
orderSourceOpt.xAxis[0].data = nameData;
orderSourceOpt.series[0].data = valueData;
orderSource.setOption(orderSourceOpt);
}
});
//车辆总数
vehicleCount.showLoading({
text: '加载中...', textColor: '#fff', maskColor: 'rgba(0, 0, 0, 0.1)'
});
$.get("vehicle/sumVihicleType",{startDate:startDate, endDate:endDate},function (result) {
vehicleCount.hideLoading();
if(result.code == "0000" && result.data != null) {
//[{"VCLPATTERN":"虚拟","ZH":542},{"ZH":479},{"VCLPATTERN":"无效","ZH":120}]
var legendData = [];
var seriesData = [];
var data = result.data;
for(var i = 0, size = data.length; i < size; i++) {
没有合适的资源?快使用搜索试试~ 我知道了~
echarts地图全国市县地理数据
共345个文件
json:344个
js:1个
2星 需积分: 9 7 下载量 11 浏览量
2017-11-30
14:59:26
上传
评论 2
收藏 1.88MB ZIP 举报
温馨提示
被百度禁止下载的echarts地图全国市县地理数据,文件名是行政编号,有不会的可以留言交流
资源推荐
资源详情
资源评论
收起资源包目录
echarts地图全国市县地理数据 (345个子文件)
charts.js 32KB
500100.json 95KB
542300.json 94KB
150700.json 91KB
542400.json 88KB
513300.json 85KB
542500.json 75KB
632700.json 66KB
542100.json 64KB
652800.json 62KB
513200.json 57KB
632800.json 56KB
230100.json 53KB
360700.json 52KB
150400.json 50KB
513400.json 49KB
653100.json 49KB
710000.json 48KB
542600.json 47KB
152500.json 45KB
460300.json 44KB
653200.json 44KB
130600.json 43KB
522600.json 42KB
610600.json 42KB
520300.json 42KB
610800.json 40KB
451200.json 40KB
542200.json 40KB
632600.json 39KB
469000.json 39KB
130700.json 38KB
150900.json 38KB
654000.json 38KB
451000.json 37KB
654300.json 37KB
522700.json 37KB
411300.json 36KB
652900.json 36KB
431200.json 36KB
222400.json 36KB
230200.json 36KB
623000.json 35KB
450300.json 35KB
130800.json 35KB
530800.json 35KB
150500.json 34KB
532500.json 34KB
231000.json 34KB
130100.json 33KB
150600.json 33KB
350400.json 33KB
230700.json 33KB
231100.json 33KB
350100.json 33KB
620900.json 32KB
141000.json 32KB
532300.json 32KB
350900.json 32KB
532900.json 32KB
360800.json 32KB
361100.json 32KB
431100.json 32KB
610700.json 32KB
140900.json 31KB
450100.json 30KB
420300.json 30KB
350700.json 30KB
130500.json 30KB
530600.json 30KB
130400.json 30KB
220200.json 30KB
152200.json 30KB
431000.json 30KB
110100.json 29KB
530100.json 29KB
530300.json 29KB
231200.json 29KB
430500.json 29KB
420500.json 28KB
141100.json 28KB
510100.json 28KB
532600.json 28KB
621200.json 28KB
230800.json 28KB
130200.json 27KB
130900.json 27KB
654200.json 27KB
621000.json 26KB
610900.json 26KB
522200.json 26KB
422800.json 26KB
620700.json 26KB
220100.json 26KB
330300.json 26KB
610300.json 25KB
653000.json 25KB
370700.json 25KB
540100.json 25KB
331000.json 25KB
共 345 条
- 1
- 2
- 3
- 4
资源评论
- Aerostato_rosso2017-12-15别下不好用,数据划的太细
Golotus
- 粉丝: 1
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功