|
@ -216,44 +216,8 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.nowTimes(); |
|
|
this.nowTimes(); |
|
|
this.getEchart(); |
|
|
this.getEchart(); |
|
|
this.ajax2(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
ajax2() { |
|
|
|
|
|
//jquery方式 get请求 |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
type:"GET", |
|
|
|
|
|
url:"http://192.168.31.128:8866/pk/openup/OpenStatisticsController/parkingRanking", |
|
|
|
|
|
data:{"authCode":"712110694681677824"}, |
|
|
|
|
|
async:true, |
|
|
|
|
|
cache:true, |
|
|
|
|
|
dataType:"text", |
|
|
|
|
|
success:function (backdata,status,xmlHttpRequest) { |
|
|
|
|
|
console.log(backdata) |
|
|
|
|
|
}, |
|
|
|
|
|
error:function (msg) { |
|
|
|
|
|
console.log(msg) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//jquery方式 get请求 |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
type:"GET", |
|
|
|
|
|
url:"http://192.168.31.128:8866/pk/openup/OpenStatisticsController/todayTrafficStatistics", |
|
|
|
|
|
data:{"authCode":"712110694681677824"}, |
|
|
|
|
|
async:true, |
|
|
|
|
|
cache:true, |
|
|
|
|
|
dataType:"text", |
|
|
|
|
|
success:function (backdata,status,xmlHttpRequest) { |
|
|
|
|
|
console.log(backdata) |
|
|
|
|
|
}, |
|
|
|
|
|
error:function (msg) { |
|
|
|
|
|
console.log(msg) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
nowTimes() { |
|
|
nowTimes() { |
|
|
this.clear(); |
|
|
this.clear(); |
|
|
let dayjs = this.dayjs() |
|
|
let dayjs = this.dayjs() |
|
|