Commit a0ff7e4c by Takumi Imai

#49768 報告フォームのヒストリーバック用

parent 24ef7ad7
...@@ -41,6 +41,11 @@ CONSTANT.ADD_REPORT_FLG = { ...@@ -41,6 +41,11 @@ CONSTANT.ADD_REPORT_FLG = {
ABLE: '1', ABLE: '1',
}; };
CONSTANT.REPLY_NO = {
REPORT: '0',
ANSWER: '1',
};
CONSTANT.URL = { CONSTANT.URL = {
CMS: { CMS: {
// BASE_CMS: 'https://' + location.host + '/checkapi/web/', // BASE_CMS: 'https://' + location.host + '/checkapi/web/',
......
...@@ -510,8 +510,7 @@ OL.sendOperation = function (operationId, operationType, reportType, enableAddRe ...@@ -510,8 +510,7 @@ OL.sendOperation = function (operationId, operationType, reportType, enableAddRe
let params = {}; let params = {};
params.sid = COMMON.getSid(); params.sid = COMMON.getSid();
params.operationId = operationId; params.operationId = operationId;
params.returnUrl = CONSTANT.URL.WEB.BASE + CONSTANT.URL.WEB.OPERATION_LIST; const url = OL.createUrlOfOperation(enableAddReport, reportType, operationId);
const url = OL.createUrlOfOperation(enableAddReport, reportType);
COMMON.postCommunication(url, params); COMMON.postCommunication(url, params);
}; };
...@@ -539,6 +538,7 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) { ...@@ -539,6 +538,7 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
* *
* @param {boolean} enableAddReport * @param {boolean} enableAddReport
* @param {Number} reportType * @param {Number} reportType
* @param {Number} operationId
* @returns url * @returns url
*/ */
OL.createUrlOfOperation = function (enableAddReport, reportType) { OL.createUrlOfOperation = function (enableAddReport, reportType) {
...@@ -546,6 +546,6 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) { ...@@ -546,6 +546,6 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) {
if (reportType == CONSTANT.REPORT_TYPE.ROUTINE || enableAddReport == '1') { if (reportType == CONSTANT.REPORT_TYPE.ROUTINE || enableAddReport == '1') {
return baseUrl + CONSTANT.URL.CMS.HTML.TASK_REPORT_LIST; return baseUrl + CONSTANT.URL.CMS.HTML.TASK_REPORT_LIST;
} else { } else {
return baseUrl + CONSTANT.URL.CMS.HTML.LIST_REPORT_FORM; return baseUrl + CONSTANT.URL.CMS.HTML.LIST_REPORT_FORM + '/' + CONSTANT.REPLY_NO.REPORT;
} }
}; };
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