This commit is contained in:
duanxiaohai 2024-10-24 15:14:27 +08:00
parent 53589c7ef8
commit e8c33d831b
3 changed files with 0 additions and 30 deletions

View File

@ -619,8 +619,6 @@ onBeforeMount(() => {
// data.xxname = props.list.year; // data.xxname = props.list.year;
data.list = props.list; data.list = props.list;
setChart1() setChart1()
// console.log(666,data.valueList,data.valueList2);
getOption(); getOption();
setChart(); setChart();
}, 800); }, 800);

View File

@ -312,30 +312,17 @@ watch(
(newVal, oldVal) => { (newVal, oldVal) => {
data.list = newVal; data.list = newVal;
data.month = props.month.map((item) => item + "月"); data.month = props.month.map((item) => item + "月");
// console.log("1", data.list);
setChart1(); setChart1();
getOption(); getOption();
setChart(); setChart();
} }
); );
// watch(
// () => props.list,
// (newVal, oldVal) => {
// data.list = newVal;
// // console.log("1", data.list);
// // setChart1();
// // getOption();
// // setChart();
// }
// );
// 使 // 使
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.list = props.list; data.list = props.list;
// data.month = props.month;
data.month = props.month.map((item) => item + "月"); data.month = props.month.map((item) => item + "月");
setChart1(); setChart1();
// console.log("", props.list, data.list1, data.list2);
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);

View File

@ -312,32 +312,17 @@ watch(
() => props.list, () => props.list,
(newVal, oldVal) => { (newVal, oldVal) => {
data.list = newVal; data.list = newVal;
// data.month = props.month;
data.month = props.month.map((item) => item + "月"); data.month = props.month.map((item) => item + "月");
// console.log("1", data.list);
// setChart1(); // setChart1();
getOption(); getOption();
setChart(); setChart();
} }
); );
// watch(
// () => props.list,
// (newVal, oldVal) => {
// data.list = newVal;
// // console.log("1", data.list);
// // setChart1();
// // getOption();
// // setChart();
// }
// );
// 使 // 使
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.list = props.list; data.list = props.list;
// data.month = props.month;
data.month = props.month.map((item) => item + "月"); data.month = props.month.map((item) => item + "月");
// setChart1();
// console.log("", props.list);
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);