This commit is contained in:
李想 2025-04-25 14:10:23 +08:00
parent 5d1e1a15a3
commit 46cd37074c
7 changed files with 489 additions and 456 deletions

1
components.d.ts vendored
View File

@ -16,6 +16,7 @@ declare module 'vue' {
CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default']
CustomEchartBar: typeof import('./src/components/custom-echart-bar/index.vue')['default']
CustomEchartBubble: typeof import('./src/components/custom-echart-bubble/index.vue')['default']
CustomEchartColumnLine: typeof import('./src/components/custom-echart-column-line/index.vue')['default']
CustomEchartHyaline: typeof import('./src/components/custom-echart-hyaline/index.vue')['default']
CustomEchartHyalineCake: typeof import('./src/components/custom-echart-hyaline-cake/index.vue')['default']
CustomEchartLine: typeof import('./src/components/custom-echart-line/index.vue')['default']

View File

@ -0,0 +1,219 @@
<template>
<div ref="chartRef" :style="{ height, width }"></div>
</template>
<script>
import { ref, reactive, watchEffect, watch } from 'vue';
import { cloneDeep } from 'lodash';
import { useEcharts } from '@/hooks/useEcharts';
export default {
name: 'CustomEchartLine',
props: {
chartData: {
type: Array,
default: () => [],
required: true,
},
option: {
type: Object,
default: () => ({}),
},
type: {
type: String,
default: 'line',
},
width: {
type: String,
default: '100%',
},
height: {
type: String,
default: 'calc(100vh - 78px)',
},
},
emits: ['click'],
setup(props, { emit }) {
const chartRef = ref(null);
const { setOptions, getInstance, startAutoPlay } = useEcharts(chartRef);
const option = reactive({
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow',
label: {
show: true,
backgroundColor: '#333',
},
},
},
legend: {
top: 30,
},
grid: {
top: 60,
},
xAxis: {
type: 'category',
data: [],
},
yAxis: {
type: 'value',
},
series: [],
});
const xData = ref([]);
const yDataColumn = ref([]);
const yDataLine = ref([]);
watchEffect(() => {
props.chartData && initCharts();
});
watch(
() => props.chartData,
() => {
console.info('props.chartData变化', props.chartData);
props.chartData && initCharts();
},
{
deep: true,
immediate: true,
}
);
function hexToRGBA(hex, alpha = 1) {
let hexCode = hex.replace('#', '');
if (hexCode.length === 3) {
hexCode = hexCode
.split('')
.map((char) => char + char)
.join('');
}
const r = parseInt(hexCode.slice(0, 2), 16);
const g = parseInt(hexCode.slice(2, 4), 16);
const b = parseInt(hexCode.slice(4, 6), 16);
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
}
function setAreaStyle(color) {
return {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: hexToRGBA(color, 1),
},
{
offset: 1,
color: hexToRGBA(color, 0.2),
},
],
},
};
}
function initCharts() {
xData.value = props.chartData.map((item) => item.name);
yDataColumn.value = props.chartData.map((item) => item.value1);
yDataLine.value = props.chartData.map((item) => item.value);
if (props.option) {
Object.assign(option, cloneDeep(props.option));
}
option.series = [
{
name: '总产量(吨)',
type: 'bar',
data: yDataColumn.value,
barWidth: '15px',
barGap: '50%',
itemStyle: {
normal: {
borderColor: '#3681FF',
// color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
// {
// offset: 0,
// color: 'rgba(15, 51, 82, 1)',
// },
// {
// offset: 1,
// color: 'rgba(0, 168, 255, 1)',
// },
// ]),
},
},
label: {
show: false,
position: 'top',
fontSize: 12,
color: '#F5F5F5',
offset: [0, -5],
formatter: '{c}',
},
},
{
name: '平均产量(吨)',
type: 'line',
yAxisIndex: 1,
showSymbol: true,
symbolSize: 8,
smooth: true,
symbol: 'circle',
lineStyle: {
normal: {
color: '#02D6B0',
},
},
itemStyle: {
color: '#02D6B0',
borderColor: '#fff',
borderWidth: 1,
},
// areaStyle: {
// normal: {
// color: new echarts.graphic.LinearGradient(
// 0,
// 0,
// 0,
// 1,
// [
// {
// offset: 0,
// color: 'rgba(0, 255, 246, 0)',
// },
// {
// offset: 1,
// color: 'rgba(0, 255, 246, 0.5)',
// },
// ],
// false
// ),
// },
// },
data: yDataLine.value, // 线
},
];
option.xAxis.data = xData.value;
setOptions(option);
// startAutoPlay({
// interval: 2000,
// seriesIndex: 0,
// showTooltip: true,
// });
getInstance()?.off('click', onClick);
getInstance()?.on('click', onClick);
}
function onClick(params) {
emit('click', params);
}
return { chartRef };
},
};
</script>

View File

@ -21,6 +21,7 @@ import customEchartScatterBlister from './custom-echart-scatter-blister';
import customEchartMaps from './custom-echart-maps';
import customScrollTitle from './custom-scroll-title';
import customEchartHyalineCake from './custom-echart-hyaline-cake';
import customEchartColumnLine from './custom-echart-column-line';
export {
SvgIcon,
@ -46,4 +47,5 @@ export {
customEchartMaps,
customScrollTitle,
customEchartHyalineCake,
customEchartColumnLine,
};

View File

@ -25,12 +25,12 @@ export default {
component: () => import('@/views/inputs/index.vue'),
meta: { title: '投入品监管', icon: '' },
},
// {
// path: 'entities',
// name: 'entities',
// component: () => import('@/views/entities/index.vue'),
// meta: { title: '', icon: '' },
// },
{
path: 'entities',
name: 'entities',
component: () => import('@/views/entities/index.vue'),
meta: { title: '生产经营主体', icon: '' },
},
// {
// path: 'breed',
// name: 'breed',

View File

@ -1,355 +1,113 @@
<template>
<div class="entities-category-charts">
<custom-echart-pie-3d :chart-data="chartsData.valData" height="100%" :option="chartsData.option" />
</div>
<custom-echart-line :chart-data="dataList" height="100%" :option="state.option" />
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue';
const dataList = reactive([
{ name: '肉类', val: 1230, itemStyle: { color: 'rgba(56, 136, 235, 1)' } },
{ name: '水果', val: 300, itemStyle: { color: 'rgba(113, 70, 159, 1)' } },
{ name: '蔬菜', val: 800, itemStyle: { color: 'rgba(237, 171, 87, 1)' } },
{ name: '水产', val: 500, itemStyle: { color: 'rgba(231, 89, 77, 1)' } },
{ name: '谷物', val: 600, itemStyle: { color: 'rgba(231, 89, 77, 1)' } },
import { reactive } from 'vue';
let dataList = reactive([
{
value: 10,
name: '2020',
},
{
value: 66,
name: '2021',
},
{
value: 100,
name: '2022',
},
{
value: 120,
name: '2023',
},
{
value: 150,
name: '2024',
},
{
value: 80,
name: '2025',
},
]);
const heightProportion = ref(0.3); //
// series-surface.parametricEquation
// #region
const getParametricEquation = (startRatio, endRatio, isSelected, isHovered, k, height, radiusScale) => {
//
let midRatio = (startRatio + endRatio) / 3;
let startRadian = startRatio * Math.PI * 2;
let endRadian = endRatio * Math.PI * 2;
let midRadian = midRatio * Math.PI * 2;
//
if (startRatio === 0 && endRatio === 1) {
isSelected = false;
}
// / k 1/3
k = typeof k !== 'undefined' ? k : 1 / 3;
// x y 0
let offsetX = isSelected ? Math.cos(midRadian) * 0.1 : 0;
let offsetY = isSelected ? Math.sin(midRadian) * 0.1 : 0;
// 1
let hoverRate = isHovered ? 1.1 : 1;
//
return {
u: {
min: -Math.PI,
max: Math.PI * 3,
step: Math.PI / 32,
},
v: {
min: 0,
max: Math.PI * 2,
step: Math.PI / 20,
},
x: function (u, v) {
if (u < startRadian) {
return offsetX + Math.cos(startRadian) * (1 + Math.cos(v) * k) * hoverRate * radiusScale;
}
if (u > endRadian) {
return offsetX + Math.cos(endRadian) * (1 + Math.cos(v) * k) * hoverRate * radiusScale;
}
return offsetX + Math.cos(u) * (1 + Math.cos(v) * k) * hoverRate * radiusScale;
},
y: function (u, v) {
if (u < startRadian) {
return offsetY + Math.sin(startRadian) * (1 + Math.cos(v) * k) * hoverRate * radiusScale;
}
if (u > endRadian) {
return offsetY + Math.sin(endRadian) * (1 + Math.cos(v) * k) * hoverRate * radiusScale;
}
return offsetY + Math.sin(u) * (1 + Math.cos(v) * k) * hoverRate * radiusScale;
},
z: function (u, v) {
if (u < -Math.PI * 0.5) {
return Math.sin(u);
}
if (u > Math.PI * 2.5) {
return Math.sin(u);
}
return Math.sin(v) > 0 ? heightProportion.value * height : -1;
},
};
};
// #endregion
// 3D
const getPie3D = (pieData, internalDiameterRatio, radiusScale = 1.8) => {
let series = [];
let sumValue = 0;
let startValue = 0;
let endValue = 0;
let legendData = [];
let linesSeries = []; // line3Dlabel线
let k = typeof internalDiameterRatio !== 'undefined' ? (1 - internalDiameterRatio) / (1 + internalDiameterRatio) : 1 / 3;
// series-surface
for (let i = 0; i < pieData.length; i++) {
sumValue += pieData[i].value;
let seriesItem = {
name: typeof pieData[i].name === 'undefined' ? `series${i}` : pieData[i].name,
type: 'surface',
parametric: true,
wireframe: {
show: false,
},
pieData: pieData[i],
pieStatus: {
selected: false,
hovered: false,
k: k,
},
};
if (typeof pieData[i].itemStyle != 'undefined') {
let itemStyle = {};
typeof pieData[i].itemStyle.color != 'undefined' ? (itemStyle.color = pieData[i].itemStyle.color) : null;
typeof pieData[i].itemStyle.opacity != 'undefined' ? (itemStyle.opacity = pieData[i].itemStyle.opacity) : null;
seriesItem.itemStyle = itemStyle;
}
series.push(seriesItem);
}
// 使 sumValue getParametricEquation
// series-surface series-surface.parametricEquation
for (let i = 0; i < series.length; i++) {
endValue = startValue + series[i].pieData.value;
// console.log(series[i]);
series[i].pieData.startRatio = startValue / sumValue;
series[i].pieData.endRatio = endValue / sumValue;
series[i].parametricEquation = getParametricEquation(
series[i].pieData.startRatio,
series[i].pieData.endRatio,
false,
false,
k,
series[i].pieData.value,
radiusScale
);
startValue = endValue;
// label线
//
const midRadian = (series[i].pieData.startRatio + series[i].pieData.endRatio) * Math.PI;
// v=0
const radius = 1 + k; //
const posX = Math.cos(midRadian) * radius * radiusScale;
const posY = Math.sin(midRadian) * radius * radiusScale;
//
const posZ = heightProportion.value * series[i].pieData.value;
let flag = (midRadian >= 0 && midRadian <= Math.PI / 2) || (midRadian >= (3 * Math.PI) / 2 && midRadian <= Math.PI * 2) ? 1 : -1;
let color = pieData[i].itemStyle.color;
let turningPosArr = [posX * 1.1 + i * 0.1 * flag + (flag < 0 ? -0.2 : 0), posY * 1.1 + i * 0.1 * flag + (flag < 0 ? -0.2 : 0), posZ * 1];
let endPosArr = [posX * 1.2 + i * 0.1 * flag + (flag < 0 ? -0.2 : 0), posY * 1.2 + i * 0.1 * flag + (flag < 0 ? -0.2 : 0), posZ * 3];
linesSeries.push(
{
type: 'line3D',
lineStyle: {
color: color,
},
data: [[posX, posY, posZ], turningPosArr, endPosArr],
},
// https://www.isqqw.com/assets/layout/images/person.png
{
type: 'scatter3D',
label: {
show: true, //label
distance: 0,
position: 'center',
textStyle: {
color: '#ffffff',
backgroundColor: color,
borderWidth: 2,
fontSize: 8,
padding: 4,
borderRadius: 4,
},
formatter: '{b}',
},
symbolSize: 0,
data: [{ name: series[i].name + '\n' + series[i].pieData.val, value: endPosArr }],
}
);
legendData.push(series[i].name);
}
series = series.concat(linesSeries);
// k
const baseScale = 2; //
const scaleForBase = baseScale * (1 + k); //
//
series.push({
name: 'mouseoutSeries',
type: 'surface',
parametric: true,
wireframe: {
show: false,
},
itemStyle: {
opacity: 0.75,
color: 'rgba(51, 135, 146, 0.75)',
},
parametricEquation: {
u: {
min: 0,
max: Math.PI * 2,
step: Math.PI / 20,
},
v: {
min: 0,
max: Math.PI,
step: Math.PI / 20,
},
x: function (u, v) {
return ((Math.sin(v) * Math.sin(u) + Math.sin(u)) / Math.PI) * scaleForBase;
},
y: function (u, v) {
return ((Math.sin(v) * Math.cos(u) + Math.cos(u)) / Math.PI) * scaleForBase;
},
z: function (u, v) {
return Math.cos(v) > 0 ? -0 : -3.5;
},
},
});
series.push({
name: 'bottomRing',
type: 'surface',
parametric: true,
wireframe: {
show: false,
},
itemStyle: {
opacity: 0.6,
color: 'rgba(255, 255, 255, 1)',
},
parametricEquation: {
u: {
min: 0.94, // 92%
max: 0.95, // 100%
step: 0.0001,
},
v: {
min: 0,
max: Math.PI * 2, //
step: Math.PI / 20,
},
x: function (u, v) {
// +
return u * scaleForBase * 1.0 * Math.cos(v);
},
y: function (u, v) {
return u * scaleForBase * 1.0 * Math.sin(v);
},
z: function () {
//
return -3.6;
},
},
});
let maxHeight = Math.max(...pieData.map((item) => item.value)) * heightProportion.value;
series.push({
name: 'topRing',
type: 'surface',
parametric: true,
wireframe: {
show: false,
},
itemStyle: {
opacity: 0.6,
color: 'rgba(255, 255, 255, 1)',
},
parametricEquation: {
u: {
min: 0.94, // 92%
max: 0.95, // 100%
step: 0.0001,
},
v: {
min: 0,
max: Math.PI * 2, //
step: Math.PI / 20,
},
x: function (u, v) {
// +
return u * scaleForBase * 1.0 * Math.cos(v);
},
y: function (u, v) {
return u * scaleForBase * 1.0 * Math.sin(v);
},
z: function () {
//
return maxHeight + 0.1;
},
},
});
return series;
};
let total = 0;
dataList.forEach((item) => {
total += item.val;
});
const chartsData = reactive({
const state = reactive({
option: {
xAxis3D: {
min: -1.5,
max: 1.5,
},
yAxis3D: {
min: -1.5,
max: 1.5,
},
zAxis3D: {
min: -1,
max: 1,
},
grid3D: {
show: false,
boxHeight: 4,
color: ['#35D0C0'],
grid: {
left: '5%',
right: '5%',
bottom: '5%',
top: '10%',
viewControl: {
distance: 380,
alpha: 25,
beta: 60,
autoRotate: true, //
containLabel: true,
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow',
},
formatter: (data) => {
const params = data[0];
let str = `<div class="custom-echarts-tips">
<span>${params.name}</span><br/>
<span>${params.marker} ${params.data} 万元</span>
</div>`;
return str;
},
},
xAxis: {
type: 'category',
// name: '',
axisTick: {
show: false,
alignWithLabel: false,
interval: 'auto',
inside: false,
length: 5,
lineStyle: {
type: 'solid',
width: 1,
color: 'rgba(28, 158, 222, 1)',
},
},
},
yAxis: {
type: 'value',
// name: '',
},
},
valData: [],
data: dataList,
});
onMounted(() => {
chartsData.valData = getPie3D(
dataList.map((item) => {
item.value = Number(((item.val / total) * 100).toFixed(2));
return item;
}),
0
);
const refresData = () => {
console.info('landPatrol********************refresData');
state.data = dataList = reactive([
{
value: 20,
name: '2020',
},
{
value: 86,
name: '2021',
},
{
value: 120,
name: '2022',
},
{
value: 140,
name: '2023',
},
{
value: 170,
name: '2024',
},
{
value: 100,
name: '2025',
},
]);
};
defineExpose({
refresData,
});
</script>
<style lang="scss" scoped>
.entities-category-charts {
height: 100%;
}
</style>

View File

@ -1,79 +1,132 @@
<template>
<div class="entities-statistics">
<custom-echart-mixin :chart-data="chartsData.valData" :option="chartsData.option" height="100%" />
</div>
<custom-echart-column-line :chart-data="state.data" height="100%" :option="state.option" />
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue';
const chartsData = reactive({
import { reactive } from 'vue';
const state = reactive({
data: [
{ value: 333, value1: 208, name: '耿马镇' },
{ value: 222, value1: 157, name: '勐撒镇' },
{ value: 123, value1: 125, name: '勐永镇' },
{ value: 156, value1: 146, name: '孟定镇' },
{ value: 112, value1: 86, name: '勐简乡' },
{ value: 123, value1: 172, name: '贺派乡' },
{ value: 121, value1: 180, name: '四排山乡' },
{ value: 143, value1: 99, name: '芒洪乡' },
{ value: 123, value1: 84, name: '大兴乡' },
],
option: {
color: ['#3685fe', '#41b879', '#ffd500', '#e57373'],
title: {
text: ' ',
textStyle: {
color: '#333',
},
grid: {
left: '5%',
right: '5%',
bottom: '5%',
top: '10%',
containLabel: true,
},
legend: {
show: true,
data: ['个体户', '村集体', '合作社', '经营企业', '趋势'],
left: '0', // 10%
top: '0', //
itemWidth: 15, //
itemHeight: 8, //
textStyle: {
fontSize: 10, //
color: '#fff', //
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow',
},
formatter: (data) => {
const params = data[0];
let str = `<div class="custom-echarts-tips">
<span>${params.name}</span><br/>
<span>${params.marker} ${params.data} 万亩</span>
</div>`;
return str;
},
},
barStyle: {
barWidth: 18,
barWidth: 15,
itemStyle: {
borderRadius: [8, 8, 0, 0],
},
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: '#35D0C0' },
{ offset: 1, color: '#35D0C0' },
],
global: false,
},
},
xAxis: {
type: 'category',
axisTick: {
show: false,
alignWithLabel: false,
interval: 'auto',
inside: false,
length: 5,
lineStyle: {
type: 'solid',
width: 1,
color: 'rgba(28, 158, 222, 1)',
},
},
},
yAxis: [
{
type: 'value',
name: '数量',
name: '人数 / 千人',
splitNumber: 5,
nameTextStyle: {
color: '#fff',
fontSize: 12,
align: 'center',
padding: [0, 20, 5, 0],
},
axisLabel: {
formatter: '{value}',
color: 'rgba(95, 187, 235, 1)',
textStyle: {
fontSize: 14,
color: '#fff',
lineHeight: 16,
},
},
axisTick: {
show: false,
},
splitLine: {
show: true,
lineStyle: {
color: 'rgba(28, 130, 197, .3)',
type: 'dashed',
},
},
itemStyle: { fontSize: 10 },
},
{
splitNumber: 5,
type: 'value',
name: '占比',
min: 0,
max: 100,
axisLabel: {
formatter: '{value} %',
nameTextStyle: {
color: '#fff',
fontSize: 12,
align: 'center',
padding: [0, 0, 5, 0],
},
axisLabel: {
show: true,
fontSize: 12,
color: '#fff',
},
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
show: false,
},
itemStyle: { fontSize: 10 },
},
],
grid: {
x: '10%',
x2: '15%',
y: '20%',
y2: '20%',
},
},
valData: [
{ name: '耿马', value: 40, type: '个体户', seriesType: 'bar', stack: '耿马' },
{ name: '耿马', value: 30, type: '村集体', seriesType: 'bar', stack: '耿马' },
{ name: '耿马', value: 100, type: '合作社', seriesType: 'bar', stack: '耿马' },
{ name: '耿马', value: 60, type: '经营企业', seriesType: 'bar', stack: '耿马', itemStyle: { borderRadius: [8, 8, 0, 0] } },
{ name: '耿马', value: 10, type: '趋势', seriesType: 'line' },
{ name: '大香乡', value: 20, type: '个体户', seriesType: 'bar', stack: '大香乡' },
{ name: '大香乡', value: 20, type: '村集体', seriesType: 'bar', stack: '大香乡' },
{ name: '大香乡', value: 80, type: '合作社', seriesType: 'bar', stack: '大香乡' },
{ name: '大香乡', value: 40, type: '经营企业', seriesType: 'bar', stack: '大香乡', itemStyle: { borderRadius: [8, 8, 0, 0] } },
{ name: '大香乡', value: 50, type: '趋势', seriesType: 'line' },
],
});
onMounted(() => {});
</script>
<style lang="scss" scoped>
.entities-statistics {
height: 100%;
}
</style>

View File

@ -1,57 +1,55 @@
<template>
<div class="data-home-index">
<el-row style="width: 100%; height: 100%">
<el-col :span="6" class="left-charts">
<div class="left-charts-item">
<customBack top-title="生产经营主体类别统计" :top-postion="'left'">
<template #back>
<entitiesCategoryCharts></entitiesCategoryCharts>
</template>
</customBack>
</div>
<div class="left-charts-item">
<customBack top-title="各乡镇经营主体统计" :top-postion="'left'">
<template #back>
<entitiesStatistics></entitiesStatistics>
</template>
</customBack>
</div>
<div class="left-charts-item">
<customBack top-title="生产经营主体信息" :top-postion="'left'">
<template #back>
<entitieslist></entitieslist>
</template>
</customBack>
</div>
</el-col>
<el-col :span="12">
<centerMap></centerMap>
</el-col>
<el-col :span="6" class="right-charts">
<div class="right-charts-item">
<customBack top-title="经营类目统计" :top-postion="'right'">
<template #back>
<categoryCharts></categoryCharts>
</template>
</customBack>
</div>
<div class="right-charts-item">
<customBack top-title="类目效益统计(亿元)" :top-postion="'right'">
<template #back>
<benefitCharts></benefitCharts>
</template>
</customBack>
</div>
<div class="right-charts-item">
<customBack top-title="热门产品" :top-postion="'right'">
<template #back>
<hotCharts></hotCharts>
</template>
</customBack>
</div>
</el-col>
</el-row>
</div>
<el-row class="data-home-index">
<el-col :span="6" class="left-charts">
<div class="left-charts-item">
<customBack top-title="全县历年产值对比" :top-postion="'left'">
<template #back>
<entitiesCategoryCharts></entitiesCategoryCharts>
</template>
</customBack>
</div>
<div class="left-charts-item">
<customBack top-title="全县各作物产值对比" :top-postion="'left'">
<template #back>
<entitiesStatistics></entitiesStatistics>
</template>
</customBack>
</div>
<div class="left-charts-item">
<customBack top-title="全县作物产量对比" :top-postion="'left'">
<template #back>
<entitiesStatistics></entitiesStatistics>
</template>
</customBack>
</div>
</el-col>
<el-col :span="12">
<centerMap></centerMap>
</el-col>
<el-col :span="6" class="right-charts">
<div class="right-charts-item">
<customBack top-title="经营主体产值对比" :top-postion="'right'">
<template #back>
<categoryCharts></categoryCharts>
</template>
</customBack>
</div>
<div class="right-charts-item">
<customBack top-title="作物市场价格" :top-postion="'right'">
<template #back>
<benefitCharts></benefitCharts>
</template>
</customBack>
</div>
<div class="right-charts-item">
<customBack top-title="作物品质情况" :top-postion="'right'">
<template #back>
<hotCharts></hotCharts>
</template>
</customBack>
</div>
</el-col>
</el-row>
</template>
<script setup>
import centerMap from '@/components/centerMap.vue';
@ -64,6 +62,8 @@ import entitiesCategoryCharts from './components/entitiesCategoryCharts.vue';
</script>
<style lang="scss" scoped>
.data-home-index {
width: 100%;
height: 100%;
.left-charts {
display: flex;
justify-content: space-around;