Parcourir la source

정렬 초기 설정

isna il y a 2 ans
Parent
commit
7cbe769c44
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      src/main/webapp/js/app/oper/ITP_OPER02010.js

+ 8 - 1
src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -357,12 +357,19 @@ let listObj = {
357 357
 					const self=this;
358 358
 					if(self.sortUse) return;
359 359
 					self.sortUse=true;
360
+					self['sort8']='desc'; 
361
+					const th=$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(8);
362
+					th.find('.s-ico').show();
363
+					th.find('.ui-grid-ico-sort').hide();
364
+					th.find('.glyphicon-triangle-top').show();
365
+					console.log("xxxxx th xxxx", th, self)
366
+					//
360 367
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
361 368
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
362 369
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(8).css('cursor','pointer');
363 370
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
364 371
 						const idx=$(this).index();
365
-						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
372
+						// console.log("xxxx grid header click xxxxxxx index=="+idx, param );
366 373
 						if(idx==2 || idx==8 ) {
367 374
 							var field='',sort=self['sort'+idx];
368 375
 							if(sort ) {