isna преди 2 години
родител
ревизия
7cbe769c44
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  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
 					const self=this;
357
 					const self=this;
358
 					if(self.sortUse) return;
358
 					if(self.sortUse) return;
359
 					self.sortUse=true;
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
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
367
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
361
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
368
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
362
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(8).css('cursor','pointer');
369
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(8).css('cursor','pointer');
363
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
370
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
364
 						const idx=$(this).index();
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
 						if(idx==2 || idx==8 ) {
373
 						if(idx==2 || idx==8 ) {
367
 							var field='',sort=self['sort'+idx];
374
 							var field='',sort=self['sort'+idx];
368
 							if(sort ) {
375
 							if(sort ) {