|
@@ -4,9 +4,15 @@ import { Popup } from 'vant';
|
|
import Highcharts from 'highcharts';
|
|
import Highcharts from 'highcharts';
|
|
import HighchartsMore from 'highcharts/highcharts-more'
|
|
import HighchartsMore from 'highcharts/highcharts-more'
|
|
import HighchartszhCN from '../../../utils/highcahrts-zh_CN'
|
|
import HighchartszhCN from '../../../utils/highcahrts-zh_CN'
|
|
|
|
+import { useRoute } from 'vue-router';
|
|
HighchartszhCN(Highcharts)
|
|
HighchartszhCN(Highcharts)
|
|
HighchartsMore(Highcharts)
|
|
HighchartsMore(Highcharts)
|
|
|
|
|
|
|
|
+const route=useRoute()
|
|
|
|
+
|
|
|
|
+// 是否为pc端展示
|
|
|
|
+const isPcShow=ref(route.query.showType||'')
|
|
|
|
+
|
|
const props=defineProps({
|
|
const props=defineProps({
|
|
keyVal:String,
|
|
keyVal:String,
|
|
data:Object
|
|
data:Object
|
|
@@ -172,7 +178,7 @@ onMounted(()=>{
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <div class="chart-render-box">
|
|
|
|
|
|
+ <div :class="['chart-render-box',isPcShow?'chart-render-box-pc':'']">
|
|
<div class="label-box">
|
|
<div class="label-box">
|
|
<div>
|
|
<div>
|
|
<span class="color-box" :style="{background:colorMap.get(keyVal)[0]}"></span>
|
|
<span class="color-box" :style="{background:colorMap.get(keyVal)[0]}"></span>
|
|
@@ -303,7 +309,7 @@ onMounted(()=>{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@media (min-width: 600px){
|
|
@media (min-width: 600px){
|
|
- .chart-render-box{
|
|
|
|
|
|
+ .chart-render-box-pc{
|
|
.label-box{
|
|
.label-box{
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|