diff --git a/frontend/src/components/RightDrawer/index.vue b/frontend/src/components/RightDrawer/index.vue index a42f24d..e95d57e 100644 --- a/frontend/src/components/RightDrawer/index.vue +++ b/frontend/src/components/RightDrawer/index.vue @@ -20,7 +20,7 @@
-
+
diff --git a/frontend/src/components/developStatusChart/index.vue b/frontend/src/components/developStatusChart/index.vue index 4fb4ec9..90b6254 100644 --- a/frontend/src/components/developStatusChart/index.vue +++ b/frontend/src/components/developStatusChart/index.vue @@ -37,50 +37,35 @@ const initChart = () => { chartInstance = echarts.init(chartContainer.value); const option = { - tooltip: { - trigger: 'item', - formatter: '{a}
{b}: {c} ({d}%)', - // position: function (point, params, dom, rect, size) { - - // // 固定在图表右侧显示,再往右挪一点 - // return [size.viewSize.width - 120, point[1]]; - // } - }, + tooltip: { + trigger: 'item', + formatter: '{a}
{b}: {c} ({d}%)', + position: 'right' + }, legend: { - bottom: '25%', - right: '2%', - orient: 'vertical', // 垂直排列 + data: ['已建', '在建'], - itemWidth: 21, - itemHeight: 11, - itemStyle: { - borderRadius: 0 - }, - textStyle: { - fontSize: 11 - }, - itemGap: 12 // 图例项之间的间距 + left: '60%', + orient: 'vertical', + top: 'center', + itemWidth: 20, + itemHeight: 12 }, series: [ { - name: '建设状态', + name: '装机容量', type: 'pie', - radius: ['80%', '95%'], // 外环 - center: ['35%', '50%'], // 整体向下移动一点 - avoidLabelOverlap: false, - itemStyle: { - borderRadius: 0, - borderColor: '#fff', - borderWidth: 1 - }, + radius: ['70%', '90%'], // 外环 + center: ['30%', '50%'], // 整体向下移动一点 + + itemStyle: { + borderRadius: 2, + borderColor: '#fff', + borderWidth: 2 + }, label: { show: false // 不显示外侧标签 }, - emphasis: { - label: { - show: false - } - }, labelLine: { show: false // 不显示引导线 }, @@ -90,24 +75,18 @@ const initChart = () => { ] }, { - name: '中心圆', + name: '数量(座)', type: 'pie', - radius: ['0%', '55%'], // 中心圆 - center: ['35%', '50%'], // 与外环保持一致,整体向下移动 - avoidLabelOverlap: false, + radius: ['0%', '50%'], // 中心圆 + center: ['30%', '50%'], // 与外环保持一致,整体向下移动 itemStyle: { - borderRadius: 0, - borderColor: '#fff', - borderWidth: 0 - }, + borderRadius: 2, + borderColor: '#fff', + borderWidth: 2 + }, label: { show: false }, - emphasis: { - label: { - show: false - } - }, labelLine: { show: false }, @@ -128,13 +107,13 @@ const initChart = () => { }; - \ No newline at end of file diff --git a/frontend/src/modules/huanbaozdjcgzkzQK/index.vue b/frontend/src/modules/huanbaozdjcgzkzQK/index.vue index 5a15bc2..6ddbaf0 100644 --- a/frontend/src/modules/huanbaozdjcgzkzQK/index.vue +++ b/frontend/src/modules/huanbaozdjcgzkzQK/index.vue @@ -1,34 +1,28 @@ +