This commit is contained in:
duanxiaohai 2024-04-16 09:01:43 +08:00
parent 23ac9c636e
commit ec8d1dabcd
6 changed files with 52 additions and 36 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 200px"></div> <div ref="chart" style="width: 100%; height: 28vh"></div>
</template> </template>
<script setup > <script setup >

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 200px"></div> <div ref="chart" style="width: 100%; height: 20vh"></div>
</template> </template>
<script setup > <script setup >

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 200px"></div> <div ref="chart" style="width: 100%; height: 25vh"></div>
</template> </template>
<script setup > <script setup >

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 220px"></div> <div ref="chart" style="width: 100%; height: 34vh"></div>
</template> </template>
<script setup> <script setup>

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 150px"></div> <div ref="chart" style="width: 100%; height: 20vh"></div>
</template> </template>
<script setup> <script setup>
@ -16,11 +16,6 @@ const data = [
"庙下乡", "庙下乡",
"溪口镇", "溪口镇",
"罗家乡", "罗家乡",
"罗家乡",
"罗家乡",
"罗家乡",
"罗家乡",
"罗家乡",
]; ];
let zoomShow = false; let zoomShow = false;
if (data.length > 7) { if (data.length > 7) {
@ -79,6 +74,18 @@ let option = {
], ],
calculable: true, calculable: true,
color: "rgba(0, 252, 255, 1)", color: "rgba(0, 252, 255, 1)",
// label: {
// normal: {
// show: true,
// lineHeight: 10,
// formatter: '{c}',
// position: 'right',
// textStyle: {
// color: '#fff',
// fontSize: 10
// }
// }
// },
xAxis: {}, xAxis: {},
yAxis: { yAxis: {
type: "category", type: "category",
@ -90,6 +97,17 @@ let option = {
data: [2, 4, 7, 23, 25, 250], data: [2, 4, 7, 23, 25, 250],
barWidth: 15,// barWidth: 15,//
itemStyle: { itemStyle: {
// barBorderRadius: [0, 20, 20, 0],
// color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [ // color
// {
// offset: 0,
// color: '#FFF1AD'
// },
// {
// offset: 1,
// color: '#FC5090'
// }
// ]),
normal: { normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="module"> <div class="module">
<div class="displayFlex left_bg" > <div class="displayFlex left_bg">
<div class="flex1" > <div class="flex1">
<div class="yd_title left_1"> <div class="yd_title left_1">
<span class="text"> <span class="text">
<img <img
@ -28,10 +28,10 @@
/> />
</span> </span>
</div> </div>
<ePie v-if="leftchoose.first == '1'" ></ePie> <ePie v-if="leftchoose.first == '1'"></ePie>
<ePie2 v-else></ePie2> <ePie2 v-else></ePie2>
</div> </div>
<div class="flex1" style="margin-top:10px;"> <div class="flex1" style="margin-top: 10px">
<div class="yd_title left_2"> <div class="yd_title left_2">
<span class="text"> <span class="text">
<img <img
@ -59,9 +59,9 @@
</span> </span>
</div> </div>
<eP2 v-if="leftchoose.second == '1'"></eP2> <eP2 v-if="leftchoose.second == '1'"></eP2>
<eP2_2 v-else/> <eP2_2 v-else />
</div> </div>
<div class="flex1" style="margin-top:10px;"> <div class="flex1" style="margin-top: 10px">
<div class="yd_title left_3"> <div class="yd_title left_3">
<span class="text"> <span class="text">
<img <img
@ -94,8 +94,7 @@
</div> </div>
<div class="displayFlex center_bg"> <div class="displayFlex center_bg">
<div class="flex1"> <div class="flex1">
<div class="yd_title center_1"> <div class="yd_title center_1"></div>
</div>
<div class="minTopPart"> <div class="minTopPart">
<div class="mtpImg1"></div> <div class="mtpImg1"></div>
<div class="mtpImg2"></div> <div class="mtpImg2"></div>
@ -106,10 +105,9 @@
<ePie3d></ePie3d> <ePie3d></ePie3d>
</div> </div>
<div class="flex1"> <div class="flex1">
<div class="yd_title familyPlanning"> <div class="yd_title familyPlanning"></div>
<!-- <span class="text">计划生育</span> --> <!-- 计划生育 -->
</div> <div style="width: 100%; ">
<div style="width: 100%; height: 280px">
<ylJHSY></ylJHSY> <ylJHSY></ylJHSY>
</div> </div>
</div> </div>
@ -151,7 +149,7 @@
<div class="serviceTop"> <div class="serviceTop">
<div class="visit"> <div class="visit">
<img class="serviceimg" src="@/assets/YLimg/ylimg8.png" alt="" /> <img class="serviceimg" src="@/assets/YLimg/ylimg8.png" alt="" />
<div style="width: 340px;height: 220px"> <div style="width: 340px;">
<ylSMFW></ylSMFW> <ylSMFW></ylSMFW>
</div> </div>
</div> </div>
@ -169,7 +167,7 @@
src="@/assets/YLimg/ylimg7.png" src="@/assets/YLimg/ylimg7.png"
alt="" alt=""
/> />
<div style="width: 490px;height: 150px"> <div style="width: 490px; ">
<ylXZZC></ylXZZC> <ylXZZC></ylXZZC>
</div> </div>
</div> </div>
@ -207,7 +205,7 @@ const change = (name, index) => {
<style lang="scss" scoped> <style lang="scss" scoped>
.displayFlex { .displayFlex {
box-sizing: border-box; box-sizing: border-box;
// height: 90vh; height: 90vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
// flex: 1; // flex: 1;
@ -283,7 +281,7 @@ const change = (name, index) => {
.serviceTop { .serviceTop {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 10px 36px 0px 20px ; padding: 10px 36px 0px 20px;
box-sizing: border-box; box-sizing: border-box;
.visit { .visit {
display: flex; display: flex;
@ -358,21 +356,21 @@ const change = (name, index) => {
} }
.left_bg { .left_bg {
width:642px; width: 642px;
// height: 100%; // height: 100%;
box-sizing: border-box; box-sizing: border-box;
padding-left:50px; padding-left: 50px;
margin-right:28px; margin-right: 28px;
background-image: url(@/assets/images/left_bg.png); background-image: url(@/assets/images/left_bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.center_bg{ .center_bg {
width:582px; width: 582px;
height: 100%; // height: 100%;
box-sizing: border-box; box-sizing: border-box;
padding-left:10px; padding-left: 10px;
margin-right:28px; margin-right: 28px;
background-image: url(@/assets/images/center_bg.png); background-image: url(@/assets/images/center_bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
@ -685,7 +683,7 @@ const change = (name, index) => {
line-height: 30px; line-height: 30px;
font-weight: bold; font-weight: bold;
font-size: 26px; font-size: 26px;
color: #FFFFFF; color: #ffffff;
} }
.mtpText2 { .mtpText2 {
width: 140px; width: 140px;
@ -697,7 +695,7 @@ const change = (name, index) => {
line-height: 30px; line-height: 30px;
font-weight: bold; font-weight: bold;
font-size: 26px; font-size: 26px;
color: #FFFFFF; color: #ffffff;
} }
} }
</style> </style>