|
|
@ -17,6 +17,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import TitleBox from './titleBox.vue' |
|
|
|
import TitleBox from './titleBox.vue' |
|
|
|
|
|
|
|
import { ScreenApi } from '@/api/screen' |
|
|
|
|
|
|
|
|
|
|
|
const rightWrapperRef = ref() |
|
|
|
const rightWrapperRef = ref() |
|
|
|
|
|
|
|
|
|
|
@ -382,6 +383,28 @@ const row2Chart = ref() |
|
|
|
const row3Chart = ref() |
|
|
|
const row3Chart = ref() |
|
|
|
const initChart = () => {} |
|
|
|
const initChart = () => {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const queryParams:any = ref() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//左一数据 |
|
|
|
|
|
|
|
// const rightFirst = async() => { |
|
|
|
|
|
|
|
// const data:any = await ScreenApi.getRightFirst(queryParams.value); |
|
|
|
|
|
|
|
// row1Options.value.xAxis.data = data.map(i=>i.name) |
|
|
|
|
|
|
|
// row1Options.value.series[0].data = data.map(i=>i.value) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//左二数据 |
|
|
|
|
|
|
|
const rightSecond = async() => { |
|
|
|
|
|
|
|
const data = await ScreenApi.getRightSecond(queryParams.value); |
|
|
|
|
|
|
|
row2Options.value.series[0].data = data |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//左三数据 |
|
|
|
|
|
|
|
// const rightThird = async() => { |
|
|
|
|
|
|
|
// const data = await ScreenApi.getRightThird(queryParams.value); |
|
|
|
|
|
|
|
// row3Options.value.yAxis[0].data = data.map(i=>i.name) |
|
|
|
|
|
|
|
// row3Options.value.yAxis[1].data = data.map(i=>i.finishCount) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
const handlerResize = () => { |
|
|
|
const handlerResize = () => { |
|
|
|
unref(row1Chart).resizeHandler() |
|
|
|
unref(row1Chart).resizeHandler() |
|
|
|
unref(row2Chart).resizeHandler() |
|
|
|
unref(row2Chart).resizeHandler() |
|
|
@ -390,6 +413,7 @@ const handlerResize = () => { |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
onMounted(() => { |
|
|
|
initChart() |
|
|
|
initChart() |
|
|
|
|
|
|
|
rightSecond() |
|
|
|
observer = new ResizeObserver(handlerResize) |
|
|
|
observer = new ResizeObserver(handlerResize) |
|
|
|
observer.observe(rightWrapperRef.value) |
|
|
|
observer.observe(rightWrapperRef.value) |
|
|
|
handlerResize() |
|
|
|
handlerResize() |
|
|
|