Commit 5ec66ada authored by 刘明珠's avatar 刘明珠

配置文件修改;添加一事一评

parent 5b6b21e4
......@@ -13,7 +13,7 @@ function getUrlParam (name) {
}
// 公共配置 生产环境
var config = {
environmental:"production",//production 生产 test 测试
environmental:"test",//production 生产 test 测试
webUrl:"/web/onlineReport/jsp/", // 预生产环境解开
url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"http://sbjs.tjsat.gov.cn",// 局端生产 值为空 其余全部指向在线的域名
......@@ -30,6 +30,6 @@ var config = {
value:'',//加密token
}*/
if(config.environmental=="production" && getUrlParam("djxh")){
window.open(config.webUrl + "/error/newError.html",'_self')
}
// if(config.environmental=="production" && getUrlParam("djxh")){
// window.open(config.webUrl + "/error/newError.html",'_self')
// }
......@@ -1382,6 +1382,10 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
} else { // 申报校验未通过
saveResultHandler(data, operateType, isZcfxtx);
}
if(data.bean.hcpResponse&&data.bean.hcpResponse.responseBean){
var responseBean = data.bean.hcpResponse.responseBean
ysypReview(JSON.parse(responseBean)) //调用好差评 一事一评
}
}
} else {
hideLoading();
......@@ -2430,4 +2434,33 @@ function resolvePostData(flatAllData) {
delete newData.jbxx;
delete newData.jmxz;
return JSON.stringify(newData);
}
// add 20200928 lmz 好差评 一事一评
function ysypReview (hcpResponse) {
var $eleForm = $("<form id='hcpForm' method='post' target='_blank'></form>");
$eleForm.attr("action", hcpResponse.url);
$(document.body).append($eleForm);
var dsfxtDm = $("<input>"); //创建input标签
dsfxtDm.attr("type", "hidden"); //设置隐藏域
dsfxtDm.attr("name", "dsfxtDm"); //设置发送后台数据的参数名
dsfxtDm.attr("value", hcpResponse.dsfxtDm);
$("#hcpForm").append(dsfxtDm);
var sn = $("<input>"); //创建input标签
sn.attr("type", "hidden"); //设置隐藏域
sn.attr("name", "sn"); //设置发送后台数据的参数名
sn.attr("value", hcpResponse.sn);
$("#hcpForm").append(sn);
var data = $("<input>"); //创建input标签
data.attr("type", "hidden"); //设置隐藏域
data.attr("name", "sn"); //设置发送后台数据的参数名
data.attr("value", hcpResponse.data);
$("#hcpForm").append(data);
// 提交表单,实现下载
try {
$eleForm.submit();
} catch (e) {
window.open(config.webUrl + "/error/newError.html",'_self')
}
$("#hcpForm").remove();
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment