This commit is contained in:
姚宇浩 2024-06-06 11:41:26 +08:00
parent a574e0eb16
commit b78c4af105
3 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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);
}; };

View File

@ -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;