//data为集合
data.forEach(function(item, index) {
//item 就是当日按循环到的对象
//index是循环的索引,从0开始
})
//定义班次详细数组
var bcglxiangxiList = new Array();
//定义班次详细对象
var bcxiangxi = {};
//循环传递的参数
bcglXiangXiListParam.forEach(element => {
bcxiangxi.xh = element.xh;
bcxiangxi.bcbh = data.bcbh;
bcxiangxi.dkkssj = element.sjfw[0];
bcxiangxi.dkjssj = element.sjfw[1];
bcxiangxi.ts = element.ts;
bcxiangxi.dkdd = element.dkdd;
bcxiangxi.zxjxljsj = element.jxsjfw[0];
bcxiangxi.zdjxljsj = element.jxsjfw[1];
//将班次详细对象存进班次详细数组
bcglxiangxiList.push(bcxiangxi);
});