提交 72bcca6d 编写于 作者: tony001's avatar tony001

修复关闭页面bug

上级 4a693ee5
......@@ -435,10 +435,10 @@ ${front_block}
}
</#if>
</#if>
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
return result.datas;
});
}
......@@ -478,10 +478,10 @@ ${front_block}
}
</#if>
</#if>
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
return result.datas;
});
}
......@@ -522,10 +522,10 @@ ${front_block}
}
</#if>
</#if>
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
return result.datas;
});
}
......
......@@ -145,10 +145,10 @@
}
<#-- 是否重新加载数据 -->
actionContext.closeView();
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
});
}
const view: any = {
......@@ -167,10 +167,10 @@
}
<#-- 是否重新加载数据 -->
actionContext.closeView();
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
});
}
const view: any = {
......@@ -190,10 +190,10 @@
}
<#-- 是否重新加载数据 -->
actionContext.closeView();
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
});
}
const view: any = {
......
......@@ -92,10 +92,10 @@
<#else>
actionContext.$Notice.success({ title: '成功', desc: '${item.getCaption()}成功!' });
</#if>
if(window.opener){
<#-- if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
} -->
return response;
}).catch((response: any) => {
if (!response || !response.status || !response.data) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册