From d7260b40b7c4cde67f6eee7ede885307262806fa Mon Sep 17 00:00:00 2001
From: duanxiaohai <1812246227@qq.com>
Date: Tue, 4 Jun 2024 11:25:28 +0800
Subject: [PATCH] gx
---
src/view/echarts_work/eP1.vue | 2 +-
src/view/echarts_work/eP3.vue | 25 ++++++++++++-------------
src/view/hygiene.vue | 10 +++++-----
src/view/work.vue | 23 ++++++++++++-----------
4 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/src/view/echarts_work/eP1.vue b/src/view/echarts_work/eP1.vue
index a289c4b..a0b9597 100644
--- a/src/view/echarts_work/eP1.vue
+++ b/src/view/echarts_work/eP1.vue
@@ -302,7 +302,7 @@ onBeforeMount(() => {
setTimeout(() => {
data.list = props.list;
setChart1();
- console.log(data.list, "教育");
+ // console.log(data.list, "教育");
getOption();
setChart();
}, 600);
diff --git a/src/view/echarts_work/eP3.vue b/src/view/echarts_work/eP3.vue
index 8e3aa16..f8ed792 100644
--- a/src/view/echarts_work/eP3.vue
+++ b/src/view/echarts_work/eP3.vue
@@ -37,7 +37,7 @@ const data = reactive({
list3: [],
lineData: [],
lineData1: [],
- year: [],
+ month: [],
option: {},
initialLegendData: ["特困救助金额", "低保救助金额"],
initialLegendData1: ["特困救助人次", "低保救助人次", "低边救助人次"],
@@ -72,7 +72,7 @@ const getOption = () => {
tooltip: {
trigger: "axis",
formatter:
- "{b0}
{a0}:{c0}
{a1}:{c1}
{a2}:{c2}
{a3}:{c3}
{a4}:{c4}",
+ "{b0}月
{a0}:{c0}
{a1}:{c1}
{a2}:{c2}
{a3}:{c3}
{a4}:{c4}",
},
legend: [
{
@@ -118,12 +118,12 @@ const getOption = () => {
axisTick: {
show: false, // 设置轴刻度不显示
},
- data: data.year,
+ data: data.month,
},
{
type: "category",
show: false,
- data: data.year,
+ data: data.month,
},
],
yAxis: [
@@ -354,7 +354,7 @@ const getOption = () => {
itemStyle: {
color: "rgba(180, 180, 180, 0.2)", //外阴影背景
},
- data: data.list.subsidyInformation.map(() => 100),
+ data: data.list.data.map(() => 100),
barWidth: 60, //外阴影背景宽
emphasis: {
itemStyle: {
@@ -436,21 +436,20 @@ const setChart1 = () => {
data.list3 = [];
data.lineData = [];
data.lineData1 = [];
- data.list.subsidyInformation.forEach((item) => {
- data.list1.push(item.btsx); //特困补贴金额
- data.list2.push(item.btje1); //低保补贴金额
- data.list3.push(item.btje2); //特困补贴人数
- data.lineData.push(item.btje3); //低保补贴人数
- data.lineData1.push(item.btje4); //低边补贴人数
+ data.list.data.forEach((item) => {
+ data.lineData.push(item.tkjzje); //特困救助金额
+ data.lineData1.push(item.dbjzje); //低保救助金额
+ data.list1.push(item.tkjzrs); //特困救助人数
+ data.list2.push(item.dbjzrs); //低保救助人数
+ data.list3.push(item.dibianJzrs); //低边救助人数
});
- // console.log("补贴人2", data.list1, data.list2);
};
// 使用生命钩子
onBeforeMount(() => {
setTimeout(() => {
data.list = props.list;
- data.year = props.list.year;
+ data.month = props.list.month;
// console.log(data.list, "生活");
setChart1();
getOption();
diff --git a/src/view/hygiene.vue b/src/view/hygiene.vue
index d7db145..e69238e 100644
--- a/src/view/hygiene.vue
+++ b/src/view/hygiene.vue
@@ -250,11 +250,11 @@ onBeforeMount(async () => {
});
onMounted(() => {
startAutoScroll();
- console.log(
- mainRef.value.scrollTop,
- mainRef.value.scrollHeight,
- mainRef.value.clientHeight
- );
+ // console.log(
+ // mainRef.value.scrollTop,
+ // mainRef.value.scrollHeight,
+ // mainRef.value.clientHeight
+ // );
});
const getData = async () => {
await http.get("/api/ggfwyth/health").then((res) => {
diff --git a/src/view/work.vue b/src/view/work.vue
index a2dc84e..e2754c3 100644
--- a/src/view/work.vue
+++ b/src/view/work.vue
@@ -71,7 +71,7 @@
-