var today = new Date();
var currentMonth = today.getMonth() + 1; // 获取当前月份(从 0 开始计数)
var daysInMonth = new Date(today.getFullYear(), currentMonth, 0).getDate()
var currentDay = today.getDate(); // 获取当前日期
today.setDate(currentDay - 1); // 将日期设置为当前日期减去1
param['day' = today.getDate();
////
var today = new Date();
var currentMonth = today.getMonth() + 1; // 获取当前月份(从 0 开始计数)
var daysInMonth = new Date(today.getFullYear(), currentMonth, 0).getDate()
param['a'] = daysInMonth //获取当前月份对应的最大天数
门户问题: 要把报告拖入导航那一栏才行,空白页面没用。
rept(' ',(col['指标层级'-1)*2)+col['指标名称'
先选择一个下拉参数组件,然后拖进去数据集里的“日期” var data = 日期.getObjects()
var list = []
for(var i = 0; i < data.length; i++){
if(indexOf(data[i][0, '月阶段') > 0){
list.push(data[i][0)
}
}
param['汇总' = list