|
@@ -468,14 +468,20 @@ let listObj = {
|
468
|
468
|
const self=this;
|
469
|
469
|
if(self.sortUse) return;
|
470
|
470
|
self.sortUse=true;
|
471
|
|
- $(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
472
|
|
- $(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(4).css('cursor','pointer');
|
473
|
|
- $(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(5).css('cursor','pointer');
|
474
|
|
- $(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(6).css('cursor','pointer');
|
|
471
|
+ self['sort4']='desc';
|
|
472
|
+ const th=$(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(4);
|
|
473
|
+ th.find('.s-ico').show();
|
|
474
|
+ th.find('.ui-grid-ico-sort').hide();
|
|
475
|
+ th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
|
|
476
|
+ //$(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
|
477
|
+ $(LOANMNG03010_GRID_LIST).find('th').eq(4).css({cursor:'pointer',background:'#FFEBCD'});
|
|
478
|
+ $(LOANMNG03010_GRID_LIST).find('th').eq(5).css({cursor:'pointer',background:'#FFEBCD'});
|
|
479
|
+ $(LOANMNG03010_GRID_LIST).find('th').eq(6).css({cursor:'pointer',background:'#FFEBCD'});
|
|
480
|
+ $(LOANMNG03010_GRID_LIST).find('th').eq(8).css({cursor:'pointer',background:'#FFEBCD'});
|
475
|
481
|
$(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
|
476
|
482
|
const idx=$(this).index();
|
477
|
483
|
console.log("xxxx grid header click xxxxxxx index=="+idx, param );
|
478
|
|
- if(idx==4 || idx==5 || idx==6) {
|
|
484
|
+ if(idx==4 || idx==5 || idx==6 || idx==8) {
|
479
|
485
|
var field='',sort=self['sort'+idx];
|
480
|
486
|
if(sort ) {
|
481
|
487
|
sort=sort=='asc'?'desc':'asc';
|
|
@@ -491,6 +497,8 @@ let listObj = {
|
491
|
497
|
field='loanDvsnNm';
|
492
|
498
|
} else if(idx==6) {
|
493
|
499
|
field='sttlMgntUnqNo';
|
|
500
|
+ } else if(idx==8) {
|
|
501
|
+ field='sttlReqDt';
|
494
|
502
|
}
|
495
|
503
|
param.page=1;
|
496
|
504
|
param.sidx=field;
|
|
@@ -653,7 +661,12 @@ let viewObj = {
|
653
|
661
|
const self=this;
|
654
|
662
|
if(self.sortUse) return;
|
655
|
663
|
self.sortUse=true;
|
656
|
|
- $(LOANMNG03010_VIEW_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
|
664
|
+ self['sort6']='asc';
|
|
665
|
+ const th=$(LOANMNG03010_VIEW_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(6);
|
|
666
|
+ th.find('.s-ico').show();
|
|
667
|
+ th.find('.ui-grid-ico-sort').hide();
|
|
668
|
+ th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
|
|
669
|
+ //$(LOANMNG03010_VIEW_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
657
|
670
|
$(LOANMNG03010_VIEW_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(6).css('cursor','pointer');
|
658
|
671
|
$(LOANMNG03010_VIEW_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
|
659
|
672
|
const idx=$(this).index();
|