|
@ -82,6 +82,7 @@ new Vue({
|
|
|
{url:bigDataAPI.getMapJingWeiDuInfo,reqType: 'get',data:{}},//上饶地图经纬度数据
|
|
|
];
|
|
|
httpRequest.getReqPromises(reqUrl).then(function(datas) {
|
|
|
debugger
|
|
|
vm.town = [{
|
|
|
"name": "上饶市",
|
|
|
"id": "0"
|
|
@ -261,7 +262,11 @@ new Vue({
|
|
|
},
|
|
|
setFormater: function(obj) {
|
|
|
for(var c in obj) {
|
|
|
if(obj[c].indexOf(",") == -1){//不存在,,说明要格式化
|
|
|
if(obj[c].toString().indexOf(",") == -1){//不存在,,说明要格式化
|
|
|
var re = /^[0-9]+.?[0-9]*/;//判断字符串是否为数字//判断正整数/[1−9]+[0−9]∗]∗/
|
|
|
if (!re.test(obj[c])) { //不是数字,则不格式化
|
|
|
continue;
|
|
|
}
|
|
|
if(obj[c]>100000){
|
|
|
obj[c] = (obj[c]/10000).toFixed(2)+"万"
|
|
|
}else{
|