|
|
@ -4,6 +4,7 @@ import { ref, onMounted, reactive, computed } from "vue"; |
|
|
|
import { VscInfo } from 'vue-icons-plus/vsc' |
|
|
|
import { Bs1CircleFill, Bs2CircleFill, Bs3CircleFill, Bs4Circle, Bs5Circle, Bs6Circle, Bs7Circle, Bs8Circle } from 'vue-icons-plus/bs' |
|
|
|
import axios, { all } from 'axios'; |
|
|
|
import API from "../../api/index"; |
|
|
|
|
|
|
|
// 变量 |
|
|
|
// 加载对象 |
|
|
@ -96,28 +97,28 @@ const list = ref([]); |
|
|
|
const get = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result1 = await axios.post('http://192.168.8.147:10070/statistics/getSumCoin'); |
|
|
|
const result2 = await axios.post('http://192.168.8.174:10070/statistics/a'); |
|
|
|
const result3 = await axios.post('http://192.168.8.147:10070/statistics/getYearConsumeCoin'); |
|
|
|
const result4 = await axios.post('http://192.168.8.147:10070/statistics/getDayConsumeCoin'); |
|
|
|
const result5 = await axios.post('http://192.168.8.147:10070/statistics/getMediumAreaPay'); |
|
|
|
const result6 = await axios.post('http://192.168.8.147:10070/statistics/getMediumAreaConsume'); |
|
|
|
const result7 = await axios.post('http://192.168.8.147:10070/statistics/getMediuPayCoin'); |
|
|
|
const result8 = await axios.post('http://192.168.8.147:10070/statistics/getMediuConsumeCoin'); |
|
|
|
const result9 = await axios.post('http://192.168.8.174:10070/statistics/b'); |
|
|
|
const result1 = await API.post('http://192.168.8.93:10040/statistics/getSumCoin'); |
|
|
|
const result2 = await API.post('http://192.168.8.93:10040/statistics/a'); |
|
|
|
const result3 = await API.post('http://192.168.8.93:10040/statistics/getYearConsumeCoin'); |
|
|
|
const result4 = await API.post('http://192.168.8.93:10040/statistics/getDayConsumeCoin'); |
|
|
|
const result5 = await API.post('http://192.168.8.93:10040/statistics/getMediumAreaPay'); |
|
|
|
const result6 = await API.post('http://192.168.8.93:10040/statistics/getMediumAreaConsume'); |
|
|
|
const result7 = await API.post('http://192.168.8.93:10040/statistics/getMediuPayCoin'); |
|
|
|
const result8 = await API.post('http://192.168.8.93:10040/statistics/getMediuConsumeCoin'); |
|
|
|
const result9 = await API.post('http://192.168.8.93:10040/statistics/b'); |
|
|
|
|
|
|
|
// 将响应结果存储到响应式数据中 |
|
|
|
getSumCoin.value = result1.data.data; |
|
|
|
statistics.value = result2.data.data; |
|
|
|
getYearConsumeCoin.value = result3.data.data; |
|
|
|
getDayConsumeCoin.value = result4.data.data; |
|
|
|
getMediumAreaPay.value = result5.data.data; |
|
|
|
getSumCoin.value = result1.data; |
|
|
|
statistics.value = result2.data; |
|
|
|
getYearConsumeCoin.value = result3.data; |
|
|
|
getDayConsumeCoin.value = result4.data; |
|
|
|
getMediumAreaPay.value = result5.data; |
|
|
|
areaSizePay.value = getMediumAreaPay.value.length; |
|
|
|
getMediumAreaConsume.value = result6.data.data; |
|
|
|
getMediumAreaConsume.value = result6.data; |
|
|
|
areaSizeConsume.value = getMediumAreaConsume.value.length; |
|
|
|
getMediuPayCoin.value = result7.data.data; |
|
|
|
getMediuConsumeCoin.value = result8.data.data; |
|
|
|
platformData.value = result9.data.data; |
|
|
|
getMediuPayCoin.value = result7.data; |
|
|
|
getMediuConsumeCoin.value = result8.data; |
|
|
|
platformData.value = result9.data; |
|
|
|
|
|
|
|
|
|
|
|
console.log('getSumCoin', getSumCoin.value); |
|
|
|