Commit c23f327c by Kang Donghun

clean up codes

parent 991a9a5d
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
var RL = {}; var RL = {};
RL.isQuickReport;
/** /**
* init * init
*/ */
...@@ -18,7 +20,6 @@ RL.init = function () { ...@@ -18,7 +20,6 @@ RL.init = function () {
COMMON.checkQuickReport(operationId, function (result) { COMMON.checkQuickReport(operationId, function (result) {
RL.isQuickReport = result.isQuickReport; RL.isQuickReport = result.isQuickReport;
}) })
RL.checkQuickReport();
RL.loadCommon(); RL.loadCommon();
RL.initTaskReportList(); RL.initTaskReportList();
COMMON.closeLoading(); COMMON.closeLoading();
...@@ -67,35 +68,6 @@ RL.initBreadcrumb = function () { ...@@ -67,35 +68,6 @@ RL.initBreadcrumb = function () {
TEMPLATE.loadMainNavsTitle('#includedMainTitle', CONSTANT.PAGE_NAME.REPORT_LIST, navs, RL.loadMainTitleCallback); TEMPLATE.loadMainNavsTitle('#includedMainTitle', CONSTANT.PAGE_NAME.REPORT_LIST, navs, RL.loadMainTitleCallback);
} }
RL.isQuickReport;
/**
* check quick report
*/
RL.checkQuickReport = function () {
if (sessionStorage.getItem("operationId")) {
let params = {};
params.sid = COMMON.getSid();
params.operationId = sessionStorage.getItem("operationId");
let url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.IS_QUICK_REPORT;
COMMON.cmsAjax(
url,
params,
false,
function (result) {
RL.isQuickReport = result.isQuickReport;
},
function () {
COMMON.showAlert('msgOperationEmpty');
COMMON.avwScreenMove('index.html');
},
);
} else {
COMMON.showAlert('error');
COMMON.avwScreenMove('index.html');
}
};
/** /**
* init task report list * init task report list
*/ */
......
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