This commit is contained in:
parent
02662c734d
commit
d7260b40b7
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
|
@ -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;
|
||||||
// 弱势群体补贴
|
// 弱势群体补贴
|
||||||
// 困难残疾人&困难军人&困难职工
|
// 困难残疾人&困难军人&困难职工
|
||||||
// 困难军人
|
// 困难军人
|
||||||
|
|
Loading…
Reference in New Issue