Commit ed9a5f33 by Takumi Imai

テスト

parent 77b91919
......@@ -35,6 +35,7 @@
<!-- report list -->
<main>
<div class="container-wrap">
<div id="main-ttl">
<!-- breadcrumb -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb px-0 mb-0">
......@@ -55,6 +56,7 @@
</div>
</div>
</div>
</div>
</main>
<div class="mb-5" id="report-form"></div>
......
......@@ -12,36 +12,25 @@ RF.init = function () {
//Check if user is logged in
COMMON.checkAuth(false);
RF.loadCommon();
TEMPLATE.loadHearder('#includedHeader');
TEMPLATE.loadConfirmModal('#includedConfirmModal');
RF.initFormView();
};
/**
* load common
*/
RF.loadCommon = function () {
$('#includedHeader').load('../common/html/header.html', function () {
I18N.initi18n();
HEADER.init();
});
$('#includedConfirmModal').load('../html/common/confirm-modal.html', function () {
I18N.initi18n();
});
};
/**
* iinit form view
*/
RF.initFormView = function () {
const urlParameterList = COMMON.getUrlParameter();
const operationId = urlParameterList['operationId'];
sessionStorage.setItem(['operationId'], operationId);
if (operationId) {
let params = {};
const taskKey = urlParameterList['taskKey'];
const replyNo = urlParameterList['replyNo'];
const processKey = urlParameterList['processKey'];
const phaseNo = urlParameterList['phaseNo'];
const reportStartDate = urlParameterList['reportStartDate'];
params.sid = COMMON.getSid();
params.operationId = operationId;
......@@ -50,11 +39,13 @@ RF.initFormView = function () {
if (replyNo) params.replyNo = replyNo;
if (processKey) params.processKey = processKey;
if (phaseNo) params.phaseNo = phaseNo;
if (reportStartDate) prarams.reportStartDate = reportStartDate;
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 () {
initPageLoad();
COMMON.closeLoading();
$('#contentFieldOrverlay').show();
//COMMON.closeLoading();
});
} else {
COMMON.avwScreenMove('index.html');
......
......@@ -6,7 +6,7 @@ var TEMPLATE = {};
/** template load header */
TEMPLATE.loadHearder = function (elmentId) {
COMMON.showLoading();
// COMMON.showLoading();
$(elmentId).load('../common/html/header.html', function () {
$('#iconHomeDashboard').removeClass('active');
$('#iconHomeWorkList').removeClass('active');
......
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