This commit is contained in:
duanxiaohai 2024-06-04 11:25:28 +08:00
parent 02662c734d
commit d7260b40b7
4 changed files with 30 additions and 30 deletions

View File

@ -302,7 +302,7 @@ onBeforeMount(() => {
setTimeout(() => {
data.list = props.list;
setChart1();
console.log(data.list, "教育");
// console.log(data.list, "");
getOption();
setChart();
}, 600);

View File

@ -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}<br/> {a0}:{c0}<br/>{a1}:{c1}<br/>{a2}:{c2}<br/>{a3}:{c3}<br/>{a4}:{c4}",
"{b0}<br/> {a0}:{c0}<br/>{a1}:{c1}<br/>{a2}:{c2}<br/>{a3}:{c3}<br/>{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();

View File

@ -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) => {

View File

@ -71,7 +71,7 @@
<i></i>
</div>
</div>
<eP3 :list="data.lifeAssistance1"></eP3>
<eP3 :list="data.salvation"></eP3>
</div>
<div class="flex1">
<div class="fundingBox">
@ -272,19 +272,18 @@ const data = reactive({
btje: "11515620", //
},
],
}, //
lifeAssistance1: {
subsidyInformation: [
}, //
salvation: {
data: [
{
nf: "2019", //
btsx: "11", //
btje1: "22", //
btje2: "33", //
btje3: "44", //
btje4: "55", //
tkjzje:"868.4888", //
tkjzrs: "9430", //
dbjzrs: "9430", //
dbjzje: "868.4888", //
dibianJzrs: "2310", //
},
],
year: ["2019"],
month: ["1"],
}, //
difficultSoldiers: {
data: [
@ -369,6 +368,8 @@ const getData = async () => {
data.lifeAssistance.subsidyInformation[index].btje =
addThousandSeparator((item.btje / 10000).toFixed(2));
});
//
data.salvation = res.data.lifeAssistance.jz;
//
// &&
//