Commit 73a4a403 by Kim Eunchul

#43864 【Check CMS 1.4.0】パフォーマンス改善依頼2(カテゴリー)

#43733【Check CMS 1.4.0】作業期間に含まれる「期間」で検索しても、該当する作業が一覧に表示されない
parent 585bfc60
......@@ -20013,7 +20013,7 @@ button {
}
.drawer-menu dt {
padding: 10px 0 10px 30px;
padding: 10px 0 10px 40px;
font-weight: 400
}
......@@ -20038,51 +20038,51 @@ button {
}
.category-a {
margin-left: 8px;
margin-left: 18px;
}
.group-level-1 {
padding-left: 30px !important;
padding-left: 40px !important;
}
.group-level-2 {
padding-left: 50px !important;
padding-left: 60px !important;
}
.group-level-3 {
padding-left: 70px !important;
padding-left: 80px !important;
}
.group-level-4 {
padding-left: 90px !important;
padding-left: 100px !important;
}
.group-level-5 {
padding-left: 110px !important;
padding-left: 120px !important;
}
.group-level-6 {
padding-left: 130px !important;
padding-left: 140px !important;
}
.group-level-7 {
padding-left: 150px !important;
padding-left: 160px !important;
}
.group-level-8 {
padding-left: 170px !important;
padding-left: 180px !important;
}
.group-level-9 {
padding-left: 190px !important;
padding-left: 200px !important;
}
.group-level-10 {
padding-left: 210px !important;
padding-left: 220px !important;
}
.group-level-11 {
padding-left: 230px !important;
padding-left: 240px !important;
}
.drawer-menu .drawer-menu3 li {
......
......@@ -2961,7 +2961,7 @@ CHK.search = function() {
var operationGroupMasterId = CHK.operationGroupMasterId;
var searchResult;
if(searchStartDate > searchEndDate){
if((searchStartDate && searchEndDate) && (searchStartDate > searchEndDate)){
CHK.displayAlert("dateError");
return;
}
......@@ -2971,12 +2971,16 @@ CHK.search = function() {
if (searchKeyword.length) {
result = result * operation.operationName.includes(searchKeyword);
}
if (searchStartDate.length) {
if (searchStartDate.length && !searchEndDate.length) {
result = result * (operation.operationStartDate >= searchStartDate);
}
if (searchEndDate.length) {
if (searchEndDate.length && !searchStartDate.length) {
result = result * (operation.operationEndDate <= searchEndDate);
}
if (searchStartDate.length && searchEndDate.length) {
result = result * ((operation.operationStartDate <= searchEndDate) && (operation.operationEndDate >= searchStartDate));
}
if (operationGroupMasterId != 0) {
var operationGroupMasterIdList = CHK.operationGroupMasterRelation.operationGroupMasterRelationList.filter(function(operationGroupMasterRelation) {
return operationGroupMasterRelation.operationId == operation.operationId;
......
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