This commit is contained in:
huangyaohui 2026-03-20 14:15:02 +08:00
parent c36f987c8a
commit b682c92ce4
1 changed files with 13 additions and 1 deletions

View File

@ -1,11 +1,12 @@
<script setup>
import { ref, computed } from 'vue'
import {ref, computed, onMounted} from 'vue'
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import { LineChart, BarChart } from 'echarts/charts'
import { TooltipComponent, GridComponent, MarkAreaComponent, MarkPointComponent, LegendComponent } from 'echarts/components'
import VChart from 'vue-echarts'
import imgAccidentPoint from '@/assets/images/home/sg.png'
import api from "@/api/index.js";
use([
CanvasRenderer,
@ -930,6 +931,17 @@ const accidentImpactOption = computed(() => {
],
}
})
const getPageData = async () => {
const res = await api.getPageData('status')
const data = JSON.parse(res.data)
console.log("🚀 ~ getPageData ~ data: ", data);
}
onMounted(() => {
getPageData()
})
</script>
<template>