|
@ -22,7 +22,7 @@ const searchTime = ref([]); |
|
|
|
|
|
|
|
|
// 月份柱状图 |
|
|
// 月份柱状图 |
|
|
const getMiddleBarObj = ref({ |
|
|
const getMiddleBarObj = ref({ |
|
|
updateType: "充值", |
|
|
|
|
|
|
|
|
updateType: 0, |
|
|
}); |
|
|
}); |
|
|
const getMiddleBarData = ref({}); |
|
|
const getMiddleBarData = ref({}); |
|
|
const middleTotalRecharge = ref(0); |
|
|
const middleTotalRecharge = ref(0); |
|
@ -35,7 +35,7 @@ const middleTask = ref([]); |
|
|
|
|
|
|
|
|
// 地区排名 |
|
|
// 地区排名 |
|
|
const getAreaRankObj = ref({ |
|
|
const getAreaRankObj = ref({ |
|
|
updateType: "充值", |
|
|
|
|
|
|
|
|
updateType: 0, |
|
|
}); |
|
|
}); |
|
|
const getMediumArea = ref([]); |
|
|
const getMediumArea = ref([]); |
|
|
const areaRank = ref([]); |
|
|
const areaRank = ref([]); |
|
@ -365,7 +365,7 @@ const get = async function () { |
|
|
// 获取中间柱状图数据 |
|
|
// 获取中间柱状图数据 |
|
|
const getMiddleBar = async function () { |
|
|
const getMiddleBar = async function () { |
|
|
const result = await API.post( |
|
|
const result = await API.post( |
|
|
"http://192.168.8.147:10010/statistics/getCoinTime", |
|
|
|
|
|
|
|
|
"http://192.168.8.93:10010/statistics/getCoinTime", |
|
|
getMiddleBarObj.value |
|
|
getMiddleBarObj.value |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
@ -407,7 +407,7 @@ const getMiddleBar = async function () { |
|
|
console.log("middleTotalFree", middleTotalFree.value); |
|
|
console.log("middleTotalFree", middleTotalFree.value); |
|
|
console.log("middleTotalTask", middleTotalTask.value); |
|
|
console.log("middleTotalTask", middleTotalTask.value); |
|
|
|
|
|
|
|
|
if (getMiddleBarObj.value.updateType == "充值") { |
|
|
|
|
|
|
|
|
if (getMiddleBarObj.value.updateType == 0) { |
|
|
// 基于准备好的dom,初始化echarts实例 |
|
|
// 基于准备好的dom,初始化echarts实例 |
|
|
var recharge = echarts.init(document.getElementById("recharge")); |
|
|
var recharge = echarts.init(document.getElementById("recharge")); |
|
|
const option = { |
|
|
const option = { |
|
@ -617,11 +617,11 @@ const changeGoldType = function () { |
|
|
// 点击标签页初始化 |
|
|
// 点击标签页初始化 |
|
|
const handleChange = function () { |
|
|
const handleChange = function () { |
|
|
if (activeName.value == "recharge") { |
|
|
if (activeName.value == "recharge") { |
|
|
getMiddleBarObj.value.updateType = "充值"; |
|
|
|
|
|
getAreaRankObj.value.updateType = "充值"; |
|
|
|
|
|
|
|
|
getMiddleBarObj.value.updateType = 0; |
|
|
|
|
|
getAreaRankObj.value.updateType = 0; |
|
|
} else { |
|
|
} else { |
|
|
getMiddleBarObj.value.updateType = "消费"; |
|
|
|
|
|
getAreaRankObj.value.updateType = "消费"; |
|
|
|
|
|
|
|
|
getMiddleBarObj.value.updateType = 1; |
|
|
|
|
|
getAreaRankObj.value.updateType = 1; |
|
|
} |
|
|
} |
|
|
getAreaRankObj.value.type = ""; |
|
|
getAreaRankObj.value.type = ""; |
|
|
goldType.value = "全部类型"; |
|
|
goldType.value = "全部类型"; |
|
|