Commit 39f76b03 by Takumi Imai

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

Feature/1.0 check web dev

See merge request !124
parents 1dbc8433 95bd5b9c
......@@ -8,7 +8,7 @@ var DASHBOARD = {};
DASHBOARD.pickupItems = [
{ id: 'newReport', href: "javascript:DASHBOARD.goPickup('newReport');", count: 0, enabled: true, img: { src: '../common/img/dahboard_icon_new.svg' }, msg: 'newRegistrationTitle' },
{ id: 'continousWork', href: "javascript:DASHBOARD.goPickup('continousWork');", count: 0, enabled: true, img: { src: '../common/img/dahboard_icon_proccess.svg' }, msg: 'continousWorkTitle' },
{ id: 'warningReport', href: "javascript:DASHBOARD.goPickup('reportWarning');", count: 0, enabled: true, img: { src: '../common/img/dahboard_icon_alert.svg' }, msg: 'reportWarningTitle' },
{ id: 'warningReport', href: "javascript:DASHBOARD.goPickup('warningReport');", count: 0, enabled: true, img: { src: '../common/img/dahboard_icon_alert.svg' }, msg: 'reportWarningTitle' },
];
/** comunication dashboard configuration */
......@@ -23,9 +23,8 @@ DASHBOARD.defaultDashboard = {
newReport: 0,
continousWork: 0,
warningReport: 0,
pushMesage: 0
}
pushMesage: 0,
},
};
DASHBOARD.getDataApiUrl = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.DASHBOARD;
......@@ -36,7 +35,7 @@ DASHBOARD.getDataApiUrl = COMMON.format(ClientData.conf_checkApiUrl(), ClientDat
*/
DASHBOARD.getDashboardData = function (callback) {
let param = {
sid: COMMON.getSid()
sid: COMMON.getSid(),
};
COMMON.cmsAjax(
DASHBOARD.getDataApiUrl,
......@@ -132,14 +131,12 @@ DASHBOARD.init = function () {
COMMON.checkAuth(false);
sessionStorage.activeHomePage = CONSTANT.PAGE_TAB.DASHBOARD;
sessionStorage.removeItem("operationId");
sessionStorage.removeItem("RL_searchWord");
sessionStorage.removeItem('operationId');
sessionStorage.removeItem('RL_searchWord');
DASHBOARD.loadCommon();
DashboardSetting.getSettingData(function (settings) {
DASHBOARD.getDashboardData(function (dataDashboard)
{
if(!dataDashboard.dashboard || jQuery.isEmptyObject(dataDashboard.dashboard ) )
dataDashboard.dashboard = DASHBOARD.defaultDashboard.dashboard;
DASHBOARD.getDashboardData(function (dataDashboard) {
if (!dataDashboard.dashboard || jQuery.isEmptyObject(dataDashboard.dashboard)) dataDashboard.dashboard = DASHBOARD.defaultDashboard.dashboard;
DASHBOARD.updateDataPickups(settings, dataDashboard);
DASHBOARD.initPickups();
DASHBOARD.updateDataCommunications(dataDashboard);
......
......@@ -216,7 +216,7 @@ PICKUP.settingActivePickup = function (pickupActive) {
$('#tab-content-ContinousWork').addClass('active show');
return;
}
if (pickupActive == 'reportWarning') {
if (pickupActive == 'warningReport') {
$('#liTabReportWithWarning a').addClass('active');
$('#tab-content-ReportWithWarnings').addClass('active show');
return;
......@@ -607,7 +607,9 @@ PICKUP.initWarningReportWithAnswerReportType = function (report, reportType, rep
report.operationId +
"'," +
PICKUP.REPORT_TYPE.WITHREPLY +
',\'' + report.taskKey +"', null,null," +
",'" +
report.taskKey +
"', null,null," +
reportType +
");\" class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'>" +
"<div class='position-absolute translate-middle top-50 left-0 ml-3'><div class='type-icon'>" +
......@@ -714,7 +716,7 @@ PICKUP.createReportWithWarningList = function (operationListOld) {
if (operationList[i].taskType == PICKUP.REPLYREPORT_TASK_TYPE.REPORT) {
operationNameLi = PICKUP.initWarningReportWithAnswerReportType(operationList[i], PICKUP.REPLYREPORT_TASK_TYPE.REPORT, msgLevelReport);
} else {
operationNameLi = PICKUP.initWarningReportWithAnswerReportType(operationList[i],PICKUP.REPLYREPORT_TASK_TYPE.ANSWER, msgLevelAnswer);
operationNameLi = PICKUP.initWarningReportWithAnswerReportType(operationList[i], PICKUP.REPLYREPORT_TASK_TYPE.ANSWER, msgLevelAnswer);
}
break;
case PICKUP.REPORT_TYPE.WORKFLOW: // continouswork
......
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