var url = 'report?format=excel&__filename__=1';
var path = "${reportName}";//获取模板名称和路径
//获取模板中参数值,以数组形式存储,每个参数值对应一个sheet
var json = [];
for (var i = 0; i < area.length; i++) {
var sheet = {
reportlet: path,
地区: area[i]
};
json.push(sheet);
}
jsonStr = JSON.stringify(json);//对象转字符串
FR.doHyperlinkByPost({
"url":url,
"para":{
reportlets:jsonStr
},
"target":"_blank"
});