From 2566b67acf159e03a4ea5c0df78f958d827eaaab Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Sat, 13 Jul 2024 13:37:35 +0800 Subject: [PATCH] gx --- src/view/echarts_education/edXS2.vue | 11 +++++++-- src/view/echarts_education/pie.vue | 1 + src/view/echarts_education/pie5.vue | 2 ++ src/view/education.vue | 35 +++++++++++++++------------- src/view/sy.vue | 8 +------ src/view/work.vue | 2 +- 6 files changed, 33 insertions(+), 26 deletions(-) diff --git a/src/view/echarts_education/edXS2.vue b/src/view/echarts_education/edXS2.vue index 32294c6..8967746 100644 --- a/src/view/echarts_education/edXS2.vue +++ b/src/view/echarts_education/edXS2.vue @@ -24,7 +24,7 @@ const data = reactive({ option: {}, bg: [], }); - +const max=ref(100); const getOption = () => { data.option = { tooltip: { @@ -62,6 +62,7 @@ const getOption = () => { }, yAxis: { type: "value", + max:max, splitLine: { show: true, lineStyle: { @@ -94,9 +95,10 @@ const getOption = () => { symbol: "emptyCircle", symbolSize: 10, - label: { + label: { show: true, color: "#ffffff", + fontSize:17, position:'top', formatter: function (data) { return data.value; @@ -138,6 +140,9 @@ const getOption = () => { ], }; }; +const getMaxValue=(arr)=> { + return Math.max(...arr); +} const setChart = () => { // Vue3中: 需要引入 var myChart = echarts.init(chart.value); @@ -150,6 +155,8 @@ onBeforeMount(() => { setTimeout(() => { data.list = props.list; data.year = props.month; + max.value=getMaxValue(data.list); + max.value=max.value+20; // console.log(data.list,props.month,'教育'); data.year.forEach(() => { data.bg.push(0); diff --git a/src/view/echarts_education/pie.vue b/src/view/echarts_education/pie.vue index 60cc04a..4d1b8fc 100644 --- a/src/view/echarts_education/pie.vue +++ b/src/view/echarts_education/pie.vue @@ -157,6 +157,7 @@ const getOption = () => { show: true, position: "top", color: "#ffffff", + fontSize:'17', formatter: function (data) { return data.value; }, diff --git a/src/view/echarts_education/pie5.vue b/src/view/echarts_education/pie5.vue index 7668c8e..eca87f8 100644 --- a/src/view/echarts_education/pie5.vue +++ b/src/view/echarts_education/pie5.vue @@ -121,6 +121,7 @@ const getOption = () => { show: true, position: "right", color: "#ffffff", + fontSize: 17, formatter: function (data) { return data.value; }, @@ -148,6 +149,7 @@ const getOption = () => { show: true, position: "right", color: "#ffffff", + fontSize: 17, formatter: function (data) { return data.value; }, diff --git a/src/view/education.vue b/src/view/education.vue index d4e5e10..982826d 100644 --- a/src/view/education.vue +++ b/src/view/education.vue @@ -96,15 +96,15 @@ class="schoolbs" @click="showDialog('学校', '/api/ggfwyth/schoolList')" > - 初中 - {{ data.xxgk.czxxsl }} + 初中 + {{ data.xxgk.czxxsl }}
- 高中 - {{ data.xxgk.gzxxsl }} + 高中 + {{ data.xxgk.gzxxsl }}
@@ -112,15 +112,15 @@ class="schoolbs" @click="showDialog('学校', '/api/ggfwyth/schoolList')" > - 小学 - {{ data.xxgk.xxxxsl }} + 小学 + {{ data.xxgk.xxxxsl }}
- 中职 - {{ data.xxgk.zzxxsl }} + 中职 + {{ data.xxgk.zzxxsl }}
@@ -128,16 +128,16 @@ class="schoolbs" @click="showDialog('学校', '/api/ggfwyth/schoolList')" > - 幼儿园 - {{ data.xxgk.yeyxxsl }} + 幼儿园 + {{ data.xxgk.yeyxxsl }}
特殊教育 - {{ data.xxgk.tsjyxxsl }} + {{ data.xxgk.tsjyxxsl }}
@@ -226,7 +226,7 @@
- 绿色预警 + 绿色预警
@@ -236,7 +236,7 @@
- 黄色预警 + 黄色预警
@@ -246,7 +246,7 @@
- 红色预警 + 红色预警
@@ -1819,7 +1819,9 @@ onMounted(() => { } } } - +.font{ + font-size: 16px !important; +} :deep(.el-table) { background: rgba(32, 64, 115, 1); @@ -1867,4 +1869,5 @@ onMounted(() => { font-size: 18px !important; } } + diff --git a/src/view/sy.vue b/src/view/sy.vue index 8ffb515..d29f2aa 100644 --- a/src/view/sy.vue +++ b/src/view/sy.vue @@ -566,13 +566,7 @@ @handle="handlePagination" >