From 422807e150f2391de4bcdf67bc3fb978ccb89073 Mon Sep 17 00:00:00 2001 From: lx <826276471@qq.com> Date: Fri, 25 Apr 2025 09:07:46 +0800 Subject: [PATCH 1/4] feat --- src/views/land/components/landPlan.vue | 226 +++++++++++++------------ 1 file changed, 117 insertions(+), 109 deletions(-) diff --git a/src/views/land/components/landPlan.vue b/src/views/land/components/landPlan.vue index 0918cba..ab861e5 100644 --- a/src/views/land/components/landPlan.vue +++ b/src/views/land/components/landPlan.vue @@ -1,114 +1,122 @@ - - - From f0b7af263729b36a6be704f3607223db8ab9f876 Mon Sep 17 00:00:00 2001 From: wangzenghua <1048523306@qq.com> Date: Fri, 25 Apr 2025 03:39:31 +0100 Subject: [PATCH 2/4] fix:padding --- src/layouts/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 1c35e7b..9ad1828 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -57,12 +57,13 @@ onMounted(() => { url('@/assets/images/basic/containerBotBG.png') no-repeat bottom center; &-header { width: 100%; - height: 60px; - // margin-bottom: 60px; + margin-bottom: 16px; } &-main { flex: 1; - min-height: calc(100vh - 60px); + min-height: calc(100vh - 90px - 16px); + padding: 0 40px; + box-sizing: border-box; } .base-laytout-header { height: 90px; From d28fc434ba9beb51c0f3046e913402c6e971c61f Mon Sep 17 00:00:00 2001 From: wangzenghua <1048523306@qq.com> Date: Fri, 25 Apr 2025 03:58:00 +0100 Subject: [PATCH 3/4] use font --- src/styles/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/style.scss b/src/styles/style.scss index 015508b..69ee739 100644 --- a/src/styles/style.scss +++ b/src/styles/style.scss @@ -5,7 +5,7 @@ position: relative; width: 100%; height: 100%; - font-family: Avenir, sans-serif; + font-family: JinBuTi, Sans, Avenir, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background-color: #000; From 3677c1e953ef29b395d5f95ca4a8c5fdfccb8864 Mon Sep 17 00:00:00 2001 From: lx <826276471@qq.com> Date: Fri, 25 Apr 2025 11:37:59 +0800 Subject: [PATCH 4/4] feat --- components.d.ts | 2 + .../custom-echart-hyaline-cake/index.vue | 282 ++++++++++++++++++ src/components/index.js | 2 + src/views/land/components/LandAera.vue | 2 - src/views/land/components/cake.vue | 44 +++ src/views/land/components/landPlan.vue | 112 +++---- src/views/land/index.vue | 3 +- 7 files changed, 380 insertions(+), 67 deletions(-) create mode 100644 src/components/custom-echart-hyaline-cake/index.vue create mode 100644 src/views/land/components/cake.vue diff --git a/components.d.ts b/components.d.ts index ad4a9b7..921970b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -16,6 +16,8 @@ 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'] + 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'] CustomEchartLineLine: typeof import('./src/components/custom-echart-line-line/index.vue')['default'] CustomEchartMaps: typeof import('./src/components/custom-echart-maps/index.vue')['default'] diff --git a/src/components/custom-echart-hyaline-cake/index.vue b/src/components/custom-echart-hyaline-cake/index.vue new file mode 100644 index 0000000..f0d2d69 --- /dev/null +++ b/src/components/custom-echart-hyaline-cake/index.vue @@ -0,0 +1,282 @@ + + diff --git a/src/components/index.js b/src/components/index.js index d6b1e00..5923fa1 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -20,6 +20,7 @@ import CustomEchartWordCloud from './custom-echart-word-cloud'; 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'; export { SvgIcon, @@ -44,4 +45,5 @@ export { customEchartScatterBlister, customEchartMaps, customScrollTitle, + customEchartHyalineCake, }; diff --git a/src/views/land/components/LandAera.vue b/src/views/land/components/LandAera.vue index 0e42772..9f1ee21 100644 --- a/src/views/land/components/LandAera.vue +++ b/src/views/land/components/LandAera.vue @@ -60,7 +60,6 @@ watch( }; }); list.value.sort((a, b) => b.value - a.value); - console.log('list', list.value); }, { immediate: true, @@ -83,7 +82,6 @@ function handleAc(val) { } const _circleNum = computed(() => { let s = ((currNum.value / allNum.value) * 100).toFixed(1); - console.log('s----------', currNum.value, allNum.value, s); return s + '%'; }); diff --git a/src/views/land/components/cake.vue b/src/views/land/components/cake.vue new file mode 100644 index 0000000..6ad0481 --- /dev/null +++ b/src/views/land/components/cake.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/src/views/land/components/landPlan.vue b/src/views/land/components/landPlan.vue index ab861e5..931a907 100644 --- a/src/views/land/components/landPlan.vue +++ b/src/views/land/components/landPlan.vue @@ -5,6 +5,17 @@ import { reactive } from 'vue'; const state = reactive({ + data: [ + { value: 20, name: '耿马镇' }, + { value: 15, name: '勐撒镇' }, + { value: 12, name: '勐永镇' }, + { value: 16, name: '孟定镇' }, + { value: 8, name: '勐简乡' }, + { value: 12, name: '贺派乡' }, + { value: 10, name: '四排山乡' }, + { value: 9, name: '芒洪乡' }, + { value: 8, name: '大兴乡' }, + ], option: { grid: { left: '5%', @@ -28,9 +39,10 @@ const state = reactive({ }, }, barStyle: { - barWidth: 15, + barWidth: 14, itemStyle: { - borderRadius: [8, 8, 0, 0], // 设置柱子的圆角半径 + borderWidth: 14, + borderRadius: [8, 8, 8, 8], // 设置柱子的圆角半径 }, color: { type: 'linear', @@ -47,76 +59,48 @@ const state = reactive({ }, xAxis: { type: 'value', - // name: '面积', - // splitLine: { - // show: false, - // lineStyle: { - // type: 'dashed', - // color: '', - // width: 1, - // }, - // }, - axisTick: { + splitLine: { show: false, - alignWithLabel: false, - interval: 'auto', - inside: false, - length: 5, lineStyle: { - type: 'solid', - width: 1, - color: 'rgba(28, 158, 222, 1)', + type: 'dashed', + color: '#E5E5E5', }, }, - // axisLine: { - // show: true, - // lineStyle: { - // type: 'solid', - // width: 1, - // // color: '#000', - // }, - // }, - // axisLabel: { - // margin: 8, - // interval: 'auto', - // rotate: 0, - // fontSize: 10, - // color: '#fff', - // }, + axisLabel: { + show: false, + textStyle: { + color: '#424242', + }, + }, + show: false, + axisLine: { + show: true, + }, + axisTick: { + show: false, + }, }, yAxis: { type: 'category', - // name: '面积(万亩)', + data: ['耿马镇', '勐撒镇', '勐永镇', '孟定镇', '勐简乡', '贺派乡', '四排山乡', '芒洪乡', '大兴乡'], + axisTick: { + show: false, + }, + splitLine: { + show: false, + }, + axisLine: { + show: false, + }, }, - // label: { - // show: true, - // position: 'insideTop', - // distance: -10, - // formatter: () => { - // return `{z|}{a|}`; - // }, - // rich: { - // a: { - // widht: 18, - // height: 18, - // backgroundColor: { - // image: - // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKUSURBVHgBpVPPaxNBFH4zszubTTY2sSRSrFCC1dIepChoD9JgKwiem6s3vYl4lyb/QS/+wJPnBPQ/0LQ91KsHe5BaWo3Yupqk6WZ3Z3Z2xt2tKUUNHnww8OB775tv3nwP4D8DDQOqqoqh9iuPjlpeVkkxQurvBAoiREGlUcHbpUWcHaWkoGUivAWOPyUt5iiYgbABS/IkCTp5YxMAF1rTui36Rt70acipFmOEcqE8n+vaWZbf74jnl++KAQlOLlcKNZuA6X7JcPw9K2uSPOd68bY1NXtJL0zGeWiO5h3fsbxxk5abNRIrPlawVK8TmGtRx89ZJIVy93NzC9et0sMU6JMxzkF+XXc/1Fbab1+bmuq2RNcZ39jg9UojTBTkSx3spIu6oaHMLevC9E3r4tNBcxwU8NhCeurZg9y1GwRYJucX9e2lRYwi5TiW8nmEYe6FusIsfWfkyjIMiauZ0j2PozRJ92lxi2E1mAGcB8jwjoakQS1EZ4cRxBg1McUMkzNaFqEBgbeTTWYhlZChUs4wghCUw5gh43xnIv75mACBKkxkpKFbARiYtUNnbRhBW7hrUvicUCoK73flsQK7uSlZCgXI892X7uZjEU3992auwr1Xh++eEKr3fY8E9sx8YiiSyHlRhrFvPQT0NOyGP3puwDfO0XwuYseRf9mnoFtfOVx9tM6/fGShOPRhxy/ndsWbWvPI3rGRKtDAkWspQM8MkUpHtk6L0NIlOkAIpRhnro8Mo38Kep493guaUA3j5ydPiCpUAyrS3toMbEFcQke6ppWxteDAlszYV9L7zk9Bh4mWmzTXqlLB0Tr8uY3RTpQjWxcK09gx9hLcYm1l2/OyXF6VVVSViY0RKPhHHJGrpHTo2v8EGgI2uB3r9kQAAAAASUVORK5CYII=', - // }, - // }, - // }, - // }, + series: [ + { + type: 'bar', + // barWidth: '40%', // 设置柱的宽度 + // barMinHeight: 2, // 设置柱的最小高度 + // barGap: '20%', // 设置柱之间的间隙 + }, + ], }, - data: [ - { value: 20, name: '耿马镇' }, - { value: 15, name: '勐撒镇' }, - { value: 12, name: '勐永镇' }, - { value: 16, name: '孟定镇' }, - { value: 8, name: '勐简乡' }, - { value: 12, name: '贺派乡' }, - { value: 10, name: '四排山乡' }, - { value: 9, name: '芒洪乡' }, - { value: 8, name: '大兴乡' }, - ], }); diff --git a/src/views/land/index.vue b/src/views/land/index.vue index 2654ed9..8e26ef7 100644 --- a/src/views/land/index.vue +++ b/src/views/land/index.vue @@ -44,7 +44,7 @@
@@ -60,6 +60,7 @@ import landCirculation from './components/landCirculation.vue'; import landPlan from './components/landPlan.vue'; import landPatrol from './components/landPatrol.vue'; import LandAera from './components/LandAera.vue'; +import cake from './components/cake.vue';