This commit is contained in:
parent
a574e0eb16
commit
b78c4af105
|
@ -449,7 +449,7 @@ const setChart1 = () => {
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
data.list = props.list;
|
data.list = props.list;
|
||||||
data.month = props.list.month;
|
data.month = props.list.month.map((item) => item + "月");
|
||||||
// console.log(data.list, "生活");
|
// console.log(data.list, "生活");
|
||||||
setChart1();
|
setChart1();
|
||||||
getOption();
|
getOption();
|
||||||
|
|
|
@ -353,7 +353,7 @@ const setChart1 = () => {
|
||||||
data.lineData.push(item.shbtje); //困难残疾人生活补贴金额
|
data.lineData.push(item.shbtje); //困难残疾人生活补贴金额
|
||||||
data.lineData2.push(item.hlbtje); //护理补贴金额
|
data.lineData2.push(item.hlbtje); //护理补贴金额
|
||||||
});
|
});
|
||||||
data.month = data.list.month;
|
data.month = data.list.month.map((item) => item + "月");
|
||||||
// console.log("补贴人2", data.list1, data.list2);
|
// console.log("补贴人2", data.list1, data.list2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ const jzChange = (index, value) => {
|
||||||
} else if (index === 2) {
|
} else if (index === 2) {
|
||||||
const listMap = {
|
const listMap = {
|
||||||
1: data.disabilitySubsidies,
|
1: data.disabilitySubsidies,
|
||||||
2: data.needyWorkers1,
|
2: data.difficultSoldiers,
|
||||||
3: data.needyWorkers,
|
3: data.needyWorkers,
|
||||||
};
|
};
|
||||||
data.list1 = listMap[value];
|
data.list1 = listMap[value];
|
||||||
|
@ -296,7 +296,7 @@ const data = reactive({
|
||||||
month: ["1"],
|
month: ["1"],
|
||||||
},
|
},
|
||||||
//困难军人
|
//困难军人
|
||||||
needyWorkers1: {
|
difficultSoldiers: {
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
nf: "2019", //补贴年份
|
nf: "2019", //补贴年份
|
||||||
|
@ -380,8 +380,8 @@ const getData = async () => {
|
||||||
data.disabilitySubsidies.month =
|
data.disabilitySubsidies.month =
|
||||||
res.data.underprivileged.disabilitySubsidies.month;
|
res.data.underprivileged.disabilitySubsidies.month;
|
||||||
// 困难军人
|
// 困难军人
|
||||||
data.needyWorkers1.data = res.data.underprivileged.difficultSoldiers.data;
|
data.difficultSoldiers.data = res.data.underprivileged.difficultSoldiers.data;
|
||||||
data.needyWorkers1.year =
|
data.difficultSoldiers.year =
|
||||||
res.data.underprivileged.difficultSoldiers.year;
|
res.data.underprivileged.difficultSoldiers.year;
|
||||||
// 困难职工
|
// 困难职工
|
||||||
data.needyWorkers.data = res.data.underprivileged.needyWorkers.data;
|
data.needyWorkers.data = res.data.underprivileged.needyWorkers.data;
|
||||||
|
|
Loading…
Reference in New Issue