图1小程序刚编译的时候有5月这个选项,但是切换一下月份之后就消失了跟图2一样,还有就是开启可视化之后能看到那一些数据对象(图3)关闭之后就看不到了。有大佬帮忙看看吗?,可以有偿,我实在没有找到bug发生在哪,谢谢谢谢
//这是那个界面的js文件
let app = getApp();
Page({
data: {
id:'',//类型id
footerIndex: 1,
amtType:'0',//0支出,1收入
amtTypeArr:['支出','收入'],
dateType:1,//时间范围1月,2年
dateTypeIdx:0,//选中的月或年的idx
chartList:[],
chartListCount:0,
yearArr: ['2023','2024'],
monthArr: [12,11,10,9,8,7,6,5,4,3,2,1],
year:'',
beginMonth:'',
endMonth:''
},
onLoad: function (options) {
if(options.id){
this.setData({
amtType:options.type,
id:options.id,
year:options.year,
beginMonth:options.mon1,
endMonth:options.mon2
});
this.getChartDetail();
}else{
let month = new Date().getMonth() + 1;
let year = new Date().getFullYear();
this.setData({
year:year,
beginMonth:month,
endMonth:month,
monthArr:this.data.monthArr.slice(12-month),
dateTypeIdx:0
});
thi