Commit 09e8d8c2 by Kang Donghun

Merge branch 'feature/1.0_check_web_dev_imai' into 'feature/1.0_check_web_dev'

Feature/1.0 check web dev imai

See merge request !113
parents f1c7941f 4646bbf9
...@@ -122,12 +122,17 @@ RF.initFormView = function () { ...@@ -122,12 +122,17 @@ RF.initFormView = function () {
if (reportStartDate) params.reportStartDate = reportStartDate; if (reportStartDate) params.reportStartDate = reportStartDate;
const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.HTML.BASE + CONSTANT.URL.CMS.HTML.LIST_REPORT_FORM; const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.HTML.BASE + CONSTANT.URL.CMS.HTML.LIST_REPORT_FORM;
$('#report-form').load(url, params, function () { $('#report-form').load(url, params, function (data, status) {
initPageLoad(); if (status === 'success') {
COMMON.closeLoading(); initPageLoad();
COMMON.closeLoading();
} else {
RF.backPage();
COMMON.closeLoading();
}
}); });
} else { } else {
COMMON.avwScreenMove('index.html'); RF.backPage();
} }
}; };
...@@ -137,21 +142,19 @@ RF.initFormView = function () { ...@@ -137,21 +142,19 @@ RF.initFormView = function () {
RF.backPage = function () { RF.backPage = function () {
// need to save Data // need to save Data
setTimeout(function () { setTimeout(function () {
RF.initFormView(); if (sessionStorage.activeHomePage == CONSTANT.PAGE_TAB.DASHBOARD) {
}, 750); if (sessionStorage.getItem('pickUpType') == CONSTANT.PICK_UP_TYPE.NEW_REPORT) {
COMMON.avwScreenMove('reportList.html');
if (sessionStorage.activeHomePage == CONSTANT.PAGE_TAB.DASHBOARD) { } else {
if (sessionStorage.getItem('pickUpType') == CONSTANT.PICK_UP_TYPE.NEW_REPORT) { COMMON.avwScreenMove('pickup.html');
COMMON.avwScreenMove('reportList.html'); }
} else { } else {
COMMON.avwScreenMove('pickup.html'); const reportType = sessionStorage.getItem('reportType');
if (addReportFlg == 1 || reportType == CONSTANT.REPORT_TYPE_INT.ROUTINE) {
COMMON.avwScreenMove('reportList.html');
} else {
COMMON.avwScreenMove('index.html');
}
} }
} else { }, 750);
const reportType = sessionStorage.getItem('reportType');
if (addReportFlg == 1 || reportType == CONSTANT.REPORT_TYPE_INT.ROUTINE) {
COMMON.avwScreenMove('reportList.html');
} else {
COMMON.avwScreenMove('index.html');
}
}
}; };
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