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(() => { setTimeout(() => {
data.list = props.list; data.list = props.list;
setChart1(); setChart1();
console.log(data.list, "教育"); // console.log(data.list, "");
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);

View File

@ -37,7 +37,7 @@ const data = reactive({
list3: [], list3: [],
lineData: [], lineData: [],
lineData1: [], lineData1: [],
year: [], month: [],
option: {}, option: {},
initialLegendData: ["特困救助金额", "低保救助金额"], initialLegendData: ["特困救助金额", "低保救助金额"],
initialLegendData1: ["特困救助人次", "低保救助人次", "低边救助人次"], initialLegendData1: ["特困救助人次", "低保救助人次", "低边救助人次"],
@ -72,7 +72,7 @@ const getOption = () => {
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
formatter: 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: [ legend: [
{ {
@ -118,12 +118,12 @@ const getOption = () => {
axisTick: { axisTick: {
show: false, // show: false, //
}, },
data: data.year, data: data.month,
}, },
{ {
type: "category", type: "category",
show: false, show: false,
data: data.year, data: data.month,
}, },
], ],
yAxis: [ yAxis: [
@ -354,7 +354,7 @@ const getOption = () => {
itemStyle: { itemStyle: {
color: "rgba(180, 180, 180, 0.2)", // color: "rgba(180, 180, 180, 0.2)", //
}, },
data: data.list.subsidyInformation.map(() => 100), data: data.list.data.map(() => 100),
barWidth: 60, // barWidth: 60, //
emphasis: { emphasis: {
itemStyle: { itemStyle: {
@ -436,21 +436,20 @@ const setChart1 = () => {
data.list3 = []; data.list3 = [];
data.lineData = []; data.lineData = [];
data.lineData1 = []; data.lineData1 = [];
data.list.subsidyInformation.forEach((item) => { data.list.data.forEach((item) => {
data.list1.push(item.btsx); // data.lineData.push(item.tkjzje); //
data.list2.push(item.btje1); // data.lineData1.push(item.dbjzje); //
data.list3.push(item.btje2); // data.list1.push(item.tkjzrs); //
data.lineData.push(item.btje3); // data.list2.push(item.dbjzrs); //
data.lineData1.push(item.btje4); // data.list3.push(item.dibianJzrs); //
}); });
// console.log("2", data.list1, data.list2);
}; };
// 使 // 使
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.list = props.list; data.list = props.list;
data.year = props.list.year; data.month = props.list.month;
// console.log(data.list, ""); // console.log(data.list, "");
setChart1(); setChart1();
getOption(); getOption();

View File

@ -250,11 +250,11 @@ onBeforeMount(async () => {
}); });
onMounted(() => { onMounted(() => {
startAutoScroll(); startAutoScroll();
console.log( // console.log(
mainRef.value.scrollTop, // mainRef.value.scrollTop,
mainRef.value.scrollHeight, // mainRef.value.scrollHeight,
mainRef.value.clientHeight // mainRef.value.clientHeight
); // );
}); });
const getData = async () => { const getData = async () => {
await http.get("/api/ggfwyth/health").then((res) => { await http.get("/api/ggfwyth/health").then((res) => {

View File

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