Finereprot 报表sheet页隐藏

需求:根据表格的月份(mouth == 3 || mouth == 6 || mouth == 9 || mouth == 12)显示sheet页,其他月份不显示
Finereprot 报表sheet页隐藏


var a=contentPane.$contentPane.data('TabPane').tabBtns[contentPane.selectedIndex].options.name; //获取当前sheet的名字 
if(a == "在建工程项目月度统计"){//这句判断特别标注一下:因为当我们获取某个单元格值时候 每个sheet页面相同的位置都会获取到,但是我只需要第一个sheet页面这个位置的值所以加了一句这个判断
	var v2=contentPane.curLGP.getCellValue(2,2);
	var mouth=v2.split("-");
	mouth=mouth[1].split('');
	if(mouth[0]== 0){
		mouth = mouth[1]
	}else if(mouth[0]== 1){
		mouth = mouth[0]+mouth[1]
	}else{
		mouth = mouth
	}
	if(mouth == 3 || mouth == 6 || mouth == 9 || mouth == 12 ){
		$('[title="房建、超高层、高速、管廊统计表"]').show()
		$('[title="农民工工作信息统计表"]').show()
	}else{
		$('[title="房建、超高层、高速、管廊统计表"]').hide()
		$('[title="农民工工作信息统计表"]').hide()
	}
}