Commit e823297c by NGO THI HONG

#19123 fix bug show period

parent 33e74e47
......@@ -282,7 +282,7 @@ CHK_pu.createReportWithWarning = function(operationList, isSearched = false) {
+ "'><a href=\"javascript:CHK_L.sendAppCommand('goOperation', '" + operationList[i].operationId + "', '" + operationList[i].contentId
+ " ', null ,'DETAIL_FORM_INPUT' ,'REPORT_WARNING','" + operationList[i].warningReportList[j].taskKey + "');\" class='d-block px-3 py-2 text-decoration-none text-dark'>"
+"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>" + operationList[i].operationName
+ "</div> <div class='sub-title-wrap'> <div class='fs-8 text-secondary mr-2'><div class='period'>" + CHK_pu.getInspectDate(operationList[i].operationStartDate) + " ~ " + CHK_pu.getInspectDate(operationList[i].operationEndDate)
+ "</div> <div class='sub-title-wrap'> <div class='fs-8 text-secondary mr-2'><div class='period'>" + CHK_pu.getInspectDate(operationList[i].warningReportList[j].reportStartDateString) + " ~ " + CHK_pu.getInspectDate(operationList[i].warningReportList[j].reportEndDateString)
+ "</div></div> </div> <i class='fas fa-chevron-right fs-12''></i> </a></li>");
break;
case 2:
......@@ -336,5 +336,6 @@ CHK_pu.createReportWithWarning = function(operationList, isSearched = false) {
CHK_pu.getInspectDate = function(dateString) {
var date = new Date(dateString)
return date.getFullYear() + "/" + ("0" + (date.getMonth() + 1)).slice(-2) + "/" + ("0" + date.getDate()).slice(-2);
return date.getFullYear() + "/" + ("0" + (date.getMonth() + 1)).slice(-2) + "/" + ("0" + date.getDate()).slice(-2) + " "
+ ("0" + date.getHours()).slice(-2) + ":" + ("0" + date.getMinutes()).slice(-2);
}
\ No newline at end of file
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