This commit is contained in:
duanxiaohai 2024-04-16 09:59:35 +08:00
parent ea4bb0bd30
commit 8fedef4eb4
3 changed files with 65 additions and 73 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 220px"></div> <div ref="chart" style="width: 340px;height: calc(100% - 38px)"></div>
</template> </template>
<script setup> <script setup>
@ -51,13 +51,14 @@ const option = {
}, },
legend: { legend: {
data: ["上门服务时长", "上门服务次数"], data: ["上门服务时长", "上门服务次数"],
top: "8%", // top: "8%",
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,
color: "#ffffff", color: "#ffffff",
}, },
}, },
grid: { grid: {
top: "18%",
left: "3%", left: "3%",
right: "6%", right: "6%",
bottom: "0%", bottom: "0%",
@ -70,7 +71,6 @@ const option = {
xAxis: [ xAxis: [
{ {
type: "category", type: "category",
// name: "/",
axisLabel: { axisLabel: {
// //
textStyle: { textStyle: {
@ -90,7 +90,7 @@ const option = {
{ {
type: "value", type: "value",
scale: true, scale: true,
name: "上门服务时长", name: "时长/小时",
max: max, max: max,
splitLine: { splitLine: {
show: false, show: false,
@ -118,7 +118,7 @@ const option = {
{ {
type: "value", type: "value",
scale: true, scale: true,
name: "上门服务次数", name: "次数/次",
min: 0, min: 0,
max: max, max: max,
splitLine: {//线 splitLine: {//线

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height: 20vh"></div> <div ref="chart" style="width: 490px; height: calc(100% - 38px)"></div>
</template> </template>
<script setup> <script setup>
@ -9,14 +9,7 @@ import * as echarts from "echarts";
const chart = ref(null); // DOM const chart = ref(null); // DOM
const data = [ const data = ["大街乡", "社阳乡", "沐尘畲族乡", "庙下乡", "溪口镇", "罗家乡"];
"大街乡",
"社阳乡",
"沐尘畲族乡",
"庙下乡",
"溪口镇",
"罗家乡",
];
let zoomShow = false; let zoomShow = false;
if (data.length > 7) { if (data.length > 7) {
zoomShow = true; zoomShow = true;
@ -93,7 +86,8 @@ let option = {
color: "#ffffff", color: "#ffffff",
}, },
}, },
splitLine: {//线 splitLine: {
//线
show: true, show: true,
lineStyle: { lineStyle: {
color: "rgba(255, 255, 255, 0.2)", color: "rgba(255, 255, 255, 0.2)",
@ -104,14 +98,16 @@ let option = {
yAxis: { yAxis: {
type: "category", type: "category",
data: data, data: data,
splitLine: {//线 splitLine: {
//线
show: false, show: false,
lineStyle: { lineStyle: {
color: "#ffffff", color: "#ffffff",
width: 1, width: 1,
}, },
}, },
axisLabel: {//y axisLabel: {
//y
textStyle: { textStyle: {
color: "#ffffff", color: "#ffffff",
}, },

View File

@ -113,7 +113,7 @@
</div> </div>
</div> </div>
<div class="displayFlex center_bg"> <div class="displayFlex center_bg">
<div class="flex2"> <div class="flex1">
<div class="yd_title mechanism"> <div class="yd_title mechanism">
<!-- <span class="text">养老机构</span> --> <!-- <span class="text">养老机构</span> -->
</div> </div>
@ -142,17 +142,13 @@
</div> </div>
</div> </div>
<div class="flex1"> <div class="flex1">
<div class="yd_title service"> <div class="yd_title service"></div>
<!-- <span class="text">助老服务</span> -->
</div>
<div class="serviceBox"> <div class="serviceBox">
<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;">
<ylSMFW></ylSMFW> <ylSMFW></ylSMFW>
</div> </div>
</div>
<div class="medicalService"> <div class="medicalService">
<img class="serviceimg" src="@/assets/YLimg/ylimg9.png" alt="" /> <img class="serviceimg" src="@/assets/YLimg/ylimg9.png" alt="" />
<div class="medicalServiceTop"> <div class="medicalServiceTop">
@ -161,16 +157,17 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div class="flex1">
<div class="mealAssistance"> <div class="mealAssistance">
<img <img
class="mealAssistanceimg" class="mealAssistanceimg"
src="@/assets/YLimg/ylimg7.png" src="@/assets/YLimg/ylimg7.png"
alt="" alt=""
/> />
<div style="width: 490px; "> <ePie2 ></ePie2>
<ylXZZC></ylXZZC> <!-- <ylXZZC></ylXZZC> -->
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -319,7 +316,7 @@ const change = (name, index) => {
} }
} }
} }
}
.mealAssistance { .mealAssistance {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -331,7 +328,6 @@ const change = (name, index) => {
height: 35px; height: 35px;
} }
} }
}
.left_1 { .left_1 {
background-image: url(@/assets/images/ylbx.png); background-image: url(@/assets/images/ylbx.png);