From fd7df752bf195b9975ea48dcf96692f26277f21d Mon Sep 17 00:00:00 2001 From: xinyb <574600396@qq.com> Date: 星期三, 30 八月 2023 10:05:34 +0800 Subject: [PATCH] 调整遮罩层在数据出错时候有关闭按钮 --- WebRoot/js/index/funcLink.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/WebRoot/js/index/funcLink.js b/WebRoot/js/index/funcLink.js index ad96705..b3e7144 100644 --- a/WebRoot/js/index/funcLink.js +++ b/WebRoot/js/index/funcLink.js @@ -2063,9 +2063,22 @@ function showLoading() { $("#loading").show(); } +function closeLoadingButton(){ + let close = $(".loadingClose"); + if (close) {close.remove();} + $(".loadingMsg").after("<p class=\"loadingClose\">" + + "<button class='easyui-linkbutton l-btn l-btn-small' onclick='javascript: closeLoading()'>鍏抽棴" + + "</button></p>"); +} function closeLoading() { $("#loading").hide(); } +//閿欒寮傚父鐨勬崟鑾� xin 2023-8-22 10:34:29 +window.onerror=function (message, source, lineno, colno, error) { + closeLoadingButton(); + console.log(message); + return true; // 闃叉寮傚父鐨勯粯璁よ涓� +} /** ***************************************** */ Object.extend = function(destination, source) { for ( var property in source) { -- Gitblit v1.8.0