Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
姚宇浩 2024-04-18 10:46:54 +08:00
commit 7ba76e796a
4 changed files with 149 additions and 41 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%;height: calc(100% - 70px)"></div> <div ref="chart" style="width: 100%;height: calc(100% - 70px);min-height: 205px"></div>
</template> </template>
<script setup> <script setup>

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 50%; height: 50%; min-height: 205px"></div> <div ref="chart" style="width: 100%; height: 50%; min-height: 205px"></div>
</template> </template>
<script setup> <script setup>
@ -11,7 +11,7 @@ const chart = ref(); // 创建DOM引用
const datas = { const datas = {
value: 18, value: 18,
text: "留 守 儿 童", // text: " ",
}; };
let option = { let option = {
@ -27,7 +27,7 @@ let option = {
// //
{ {
type: "pie", type: "pie",
center: ["60%", "55%"], center: ["50%", "50%"],
radius: ["50%", "82%"], radius: ["50%", "82%"],
hoverAnimation: false, hoverAnimation: false,
clockWise: false, clockWise: false,
@ -67,7 +67,7 @@ let option = {
}, },
radius: ["50%", "70%"], radius: ["50%", "70%"],
hoverAnimation: false, hoverAnimation: false,
center: ["60%", "55%"], center: ["50%", "50%"],
data: [ data: [
// { // {
// value: datas.value, // value: datas.value,

View File

@ -1,8 +1,11 @@
<template> <template>
<div ref="chart" style="width: 50%; height: calc(100% - 46px);min-height:205px;"></div> <div
ref="chart"
style="width: 50%; height: calc(100% - 46px); min-height: 205px"
></div>
</template> </template>
<script setup > <script setup>
import { onMounted, reactive, ref } from "vue"; import { onMounted, reactive, ref } from "vue";
// echarts // echarts
import * as echarts from "echarts"; import * as echarts from "echarts";
@ -12,7 +15,7 @@ const chart = ref(); // 创建DOM引用
let option = { let option = {
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
formatter: "{b0}<br />{a0}:{c0} <br />{a1}:{c1} ", formatter: "{b0}<br />{a0}:{c0} <br />{a1}:{c1}<br />{a2}:{c2} ",
}, },
legend: { legend: {
top: "8%", top: "8%",
@ -38,12 +41,15 @@ let option = {
color: "#ccc", color: "#ccc",
}, },
}, },
data: ["小学", "初中", "高中",], axisTick: {
show: false, //
},
data: ["小学", "初中", "高中"],
}, },
{ {
axisTick: false, axisTick: false,
type: "category", type: "category",
data: ["小学", "初中", "高中", ], data: ["小学", "初中", "高中"],
axisLabel: { axisLabel: {
show: false, show: false,
}, },
@ -97,7 +103,7 @@ let option = {
{ {
name: "城市", name: "城市",
type: "bar", type: "bar",
data: [2.0, 4.9, 7.0,], data: [2.0, 4.9, 7.0],
barWidth: "18%", barWidth: "18%",
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -115,7 +121,7 @@ let option = {
{ {
name: "县镇", name: "县镇",
type: "bar", type: "bar",
data: [2.6, 5.9, 9.0,], data: [2.6, 5.9, 9.0],
barWidth: "18%", barWidth: "18%",
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -133,7 +139,7 @@ let option = {
{ {
name: "农村", name: "农村",
type: "bar", type: "bar",
data: [2.6, 5.9, 9.0,], data: [2.6, 5.9, 9.0],
barWidth: "18%", barWidth: "18%",
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -155,7 +161,7 @@ let option = {
itemStyle: { itemStyle: {
color: "rgba(221, 242, 255, 0.1)", color: "rgba(221, 242, 255, 0.1)",
}, },
data: ["2019", "2020", "2021",].map(() => 100), data: ["2019", "2020", "2021"].map(() => 100),
barWidth: 50, barWidth: 50,
}, },
], ],
@ -179,5 +185,4 @@ onMounted(() => {
}); });
</script> </script>
<style scoped> <style scoped></style>
</style>

View File

@ -61,12 +61,16 @@
<div class="schoolaBox"> <div class="schoolaBox">
<div class="schoola"> <div class="schoola">
<span>1,211</span> <span>1,211</span>
<span>学校总数</span> <span class="schoola1">学校总数</span>
</div> </div>
<div class="schoola"><span>46,718</span> <span>学生总数</span></div>
<div class="schoola"><span>883</span> <span>班级总数</span></div>
<div class="schoola"> <div class="schoola">
<span>4,381</span> <span>教职工总数</span> <span>46,718</span> <span class="schoola1">学生总数</span>
</div>
<div class="schoola">
<span>883</span> <span class="schoola1">班级总数</span>
</div>
<div class="schoola">
<span>4,381</span> <span class="schoola1">教职工总数</span>
</div> </div>
</div> </div>
<div class="schoolb"> <div class="schoolb">
@ -87,7 +91,7 @@
</div> </div>
</div> </div>
<div class="grade grade1"> <div class="grade grade1">
<div class="schoolbs schoolbs1"> <div class="schoolbs">
<span class="spot">幼儿园</span> <span>7</span> <span class="spot">幼儿园</span> <span>7</span>
</div> </div>
<div class="schoolbs"> <div class="schoolbs">
@ -107,7 +111,20 @@
" "
> >
<edie></edie> <edie></edie>
<div class="rating">
<edXX></edXX> <edXX></edXX>
<div class="ratingBtn">
<div class="onImg" id="img1">
<span>城市</span>
</div>
<div class="onImg">
<span>县镇</span>
</div>
<div class="onImg">
<span>农村</span>
</div>
</div>
</div>
</div> </div>
</div> </div>
<div class="flex1"> <div class="flex1">
@ -185,7 +202,9 @@
<div class="czrBox"> <div class="czrBox">
<div class="situation situation1"></div> <div class="situation situation1"></div>
<div class="column"> <div class="column">
<div v-for="item in 20">测试信息</div> <div v-for="item in 3">
作为侦探在做推理的时候心里也有很多地方隐藏著不安担心可能会疏忽某些地方而导致还存在另一种可能性所以说当自己的推理正中靶心的时候这种成就感就无与伦比
</div>
</div> </div>
</div> </div>
<div class="czrBox"> <div class="czrBox">
@ -324,9 +343,6 @@ onBeforeMount(() => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
.displayFlex { .displayFlex {
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
@ -822,13 +838,14 @@ onBeforeMount(() => {
// box-sizing: border-box; // box-sizing: border-box;
.czrBox { .czrBox {
height: 8vh; height: 7vh;
.column { .column {
height: calc(100% - 26px); height: calc(100% - 26px);
overflow-y: auto; overflow-y: auto;
font-size: 14px; font-size: 14px;
color: #ffffff; color: #ffffff;
padding-left: 18px; padding-left: 18px;
padding-right: 18px;
} }
} }
@ -863,7 +880,7 @@ onBeforeMount(() => {
width: 124px; width: 124px;
height: 79px; height: 79px;
margin-top: 20px; margin-top: 20px;
padding: 10px 0 14px 0; padding: 2px 0 14px 0;
box-sizing: border-box; box-sizing: border-box;
background-image: url(@/assets/eduImg/jyImg3.png); background-image: url(@/assets/eduImg/jyImg3.png);
background-repeat: no-repeat; background-repeat: no-repeat;
@ -874,12 +891,33 @@ onBeforeMount(() => {
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
span { span {
font-weight: 500; // font-weight: 500;
font-size: 14px; // font-size: 14px;
// color: #ffffff;
// letter-spacing: 4px;
// font-style: normal;
// font-family: PingFangSC, PingFang SC;
font-family: DINAlternate, DINAlternate;
// font-weight: bold;
font-size: 23px;
color: #ffffff; color: #ffffff;
letter-spacing: 4px; line-height: 30px;
letter-spacing: 1px;
text-shadow: 0px 0px 23px rgba(0, 52, 52, 0.5);
text-align: center;
font-style: normal; font-style: normal;
}
.schoola1 {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 500;
font-size: 16px;
color: #ffffff;
line-height: 22px;
letter-spacing: 3px;
text-shadow: 0px 0px 4px rgba(60, 145, 249, 0.65);
text-align: center;
font-style: normal;
} }
} }
.schoolb { .schoolb {
@ -907,9 +945,9 @@ onBeforeMount(() => {
justify-content: space-between; justify-content: space-between;
padding: 36px 0 0px 18px; padding: 36px 0 0px 18px;
.schoolbs { .schoolbs {
width: 128px; // width: 128px;
height: 41px; height: 41px;
padding: 6px 0 30px 0 0; padding: 0px 20px 0 30px;
background-image: url(@/assets/eduImg/jyImg1.png); background-image: url(@/assets/eduImg/jyImg1.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
@ -929,18 +967,17 @@ onBeforeMount(() => {
top: 50%; top: 50%;
left: -16px; /* 调整圆点的位置 */ left: -16px; /* 调整圆点的位置 */
transform: translateY(-50%); transform: translateY(-50%);
width: 8px; width: 6px;
height: 8px; height: 6px;
background-color: rgba(0, 230, 255, 1); background-color: rgba(0, 230, 255, 1);
border-radius: 50%; border-radius: 50%;
box-shadow: 0px 0px 7px 0px #00ffd3;
filter: blur(0px);
} }
} }
.grade1 { .grade1 {
padding: 18px 130px 0 150px; padding: 12px 110px 0 138px;
box-sizing: border-box; box-sizing: border-box;
.schoolbs1 {
margin-right: 50px;
}
} }
} }
} }
@ -988,6 +1025,7 @@ onBeforeMount(() => {
margin-top: 10px; margin-top: 10px;
width: 92%; width: 92%;
height: 34px; height: 34px;
padding: 6px 0;
box-sizing: border-box; box-sizing: border-box;
background-image: url(@/assets/eduImg/jyImg16.png); background-image: url(@/assets/eduImg/jyImg16.png);
@ -1003,6 +1041,49 @@ onBeforeMount(() => {
} }
} }
} }
.rating {
width: 50%;
display: flex;
flex-direction: column;
align-items: center;
.ratingBtn {
display: flex;
// align-items: center;
.ratingImg {
width: 62px;
height: 29px;
background-image: url(@/assets/eduImg/jyImg18.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}
.onImg {
width: 62px;
height: 29px;
background-image: url(@/assets/eduImg/jyImg19.png);
background-repeat: no-repeat;
background-size: 100% 100%;
cursor: pointer; /* 添加指针样式以指示可点击 */
}
.onImg.active {
width: 62px;
height: 29px;
background-image: url(@/assets/eduImg/jyImg18.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}
span {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 400;
font-size: 14px;
color: #ffffff;
letter-spacing: 1px;
font-family: PingFangSC, PingFang SC;
}
}
}
.selectLint { .selectLint {
width: 94%; width: 94%;
@ -1017,6 +1098,28 @@ onBeforeMount(() => {
background-size: 100% 100%; background-size: 100% 100%;
} }
} }
.column::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
/* 滚动条整体部分 */
.rolling::-webkit-scrollbar {
width: 5px;
// height: 10px;
}
/* 滚动槽 */
.rolling::-webkit-scrollbar-track {
border-radius: 1px;
background: rgba(0, 128, 231, 0.56);
-webkit-box-shadow: inset 0 0 6px rgba(139, 139, 139, 0.3);
}
/* 滚动条滑块样式 */
.rolling::-webkit-scrollbar-thumb {
background-clip: content-box;
border-radius: 6px;
background: rgba(0, 162, 231, 1);
-webkit-box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.3);
}
</style> </style>
<style lang="scss"> <style lang="scss">
.selectBox { .selectBox {