|
|
|
|
@ -220,7 +220,7 @@ const mapIconList = ref([{
|
|
|
|
|
relativePer: 152, |
|
|
|
|
changedRate: 100 |
|
|
|
|
}]) |
|
|
|
|
const ProblemTypeRate = ref([]) |
|
|
|
|
|
|
|
|
|
const currentYear = new Date().getFullYear(); |
|
|
|
|
const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); // 年份列表 |
|
|
|
|
const selectedYear = ref('2024'); // 当前选中的年份 |
|
|
|
|
@ -284,7 +284,7 @@ const getMap = async (timeValue) => {
|
|
|
|
|
|
|
|
|
|
const getProblemTypeRate = async (timeValue) => { |
|
|
|
|
const res = await getVideoSuperviseProblemTypeRate(timeValue); |
|
|
|
|
ProblemTypeRate.value = res.videoSuperviseProblemTypeRate |
|
|
|
|
ProblemTypeRateChart.value.series[0].data = res.videoSuperviseProblemTypeRate |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -303,10 +303,10 @@ const getTrend = async(year)=> {
|
|
|
|
|
} |
|
|
|
|
const getData = async () => { |
|
|
|
|
getOverview(time.value); |
|
|
|
|
getProblemTypeRate(time.value); |
|
|
|
|
getRankList(time.value) |
|
|
|
|
getMap(time.value) |
|
|
|
|
getTrend(selectedYear.value) |
|
|
|
|
getProblemTypeRate(time.value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
@ -478,7 +478,7 @@ const ProblemTypeRateChart = ref({
|
|
|
|
|
label: { |
|
|
|
|
color: "#fff", |
|
|
|
|
}, |
|
|
|
|
data: ProblemTypeRate.value, |
|
|
|
|
data: [], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
tooltip: { |
|
|
|
|
|