Commit a0ff7e4c by Takumi Imai

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

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