20230329数据展示页跳转

This commit is contained in:
2023-03-29 11:01:27 +08:00
parent 692fed9862
commit 968638ee2b
4 changed files with 177 additions and 53 deletions
@@ -42,7 +42,7 @@
Width="130px">
</f:DatePicker>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="close();">
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNew();">
</f:Button>
</Items>
</f:Toolbar>
@@ -120,13 +120,13 @@
}
// 点击标题栏工具图标 - 退出
function close(event) {
function closeNew(event) {
var bConfirmed = confirm('您确定要退出吗?');
if (bConfirmed) { closePage(); }
}
function closePage() {
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
if (navigator.userAgent.indexOf("Firefox") !== -1 || navigator.userAgent.indexOf("Chrome") !== -1) {
window.location.href = "about:blank";
window.close();
} else {