var url = 'report?reportlets=';var depart_id = '&depart_id=' + depart_id;//alert(depart_id);var user_id = '&user_id=' + user_id;//alert(user_id);var pars = '&op=expor&format=excel&sheets=&__filename__=科目余额校验';var path = "${reportName}";var json = ;for (var i = 0; i < area.length; i++) {var sheet = {reportlet: path,地市: area};json.push(sheet);}jsonStr = encodeURIComponent(JSON.stringify(json));///alert(jsonStr);//alert(JSON.stringify(json));url += jsonStr;url += pars;url += depart_id;url += user_id;alert(url);alert(user_id + area);var r = confirm("确认导出!");if (r == true) {//x="你按下了\"确定\"按钮!";window.open(url);} else {//x="你按下了\"取消\"按钮!";}