Commit b49949ef3ffe1a48388a3ba3d245c1fddc59ba91

Authored by 徐烜
1 parent 4ed5d6c8

Update

src/main/resources/static/pages/scheduleApp/module/common/dts2/ttinfotable/saTimeTableScrolly1.js
@@ -30,6 +30,7 @@ angular.module('ScheduleApp').directive( @@ -30,6 +30,7 @@ angular.module('ScheduleApp').directive(
30 //console.log("s top=" + element.scrollTop()); 30 //console.log("s top=" + element.scrollTop());
31 31
32 angular.element(".tt_table_head").css("top", element.scrollTop()); 32 angular.element(".tt_table_head").css("top", element.scrollTop());
  33 + angular.element(".tt_table_head:eq(0)").css("left", element.scrollLeft());
33 angular.element(".tt_table_body:eq(0)").css("left", element.scrollLeft()); 34 angular.element(".tt_table_body:eq(0)").css("left", element.scrollLeft());
34 35
35 }); 36 });
src/main/resources/static/pages/scheduleApp/module/common/dts2/ttinfotable/saTimeTableTemplate.html
@@ -305,6 +305,19 @@ @@ -305,6 +305,19 @@
305 <div class="detail-body"> 305 <div class="detail-body">
306 <div class="tt_table_wrap table_scrollbar" sa-tscrolly1> 306 <div class="tt_table_wrap table_scrollbar" sa-tscrolly1>
307 <div class="tt_table"> 307 <div class="tt_table">
  308 +
  309 + <div class="tt_table_head" style="z-index: 120; top: 0;">
  310 + <dl style="height: 36px; border-bottom: 2px solid #96b9d7;">
  311 + <dt style="width: 50px;">
  312 + 序号
  313 + </dt>
  314 + <dt style="width: 55px; border-right: 2px solid #96b9d7;">
  315 + 路牌
  316 + </dt>
  317 + </dl>
  318 + </div>
  319 +
  320 +
308 <div class="tt_table_head" style="z-index: 110; top: 0;"> 321 <div class="tt_table_head" style="z-index: 110; top: 0;">
309 <dl> 322 <dl>
310 <dt> 323 <dt>
src/main/resources/static/pages/scheduleApp/module/common/prj-common-directive.js
@@ -4236,48 +4236,49 @@ angular.module(&#39;ScheduleApp&#39;).directive( @@ -4236,48 +4236,49 @@ angular.module(&#39;ScheduleApp&#39;).directive(
4236 ] 4236 ]
4237 ); 4237 );
4238 4238
4239 -/**  
4240 - * 滚动事件控制指令。  
4241 - */  
4242 -angular.module('ScheduleApp').directive(  
4243 - 'saTscrolly1',  
4244 - [  
4245 - function() {  
4246 - return {  
4247 - restrict: 'A',  
4248 -  
4249 - compile: function(tElem, tAttrs) {  
4250 -  
4251 - return {  
4252 - pre: function(scope, element, attr) {  
4253 - // TODO:  
4254 - //alert(element.find("#tooltipTest").html());  
4255 - //$compile(element.find("#tooltipTest"))(scope);  
4256 -  
4257 - },  
4258 -  
4259 - post: function(scope, element, attr) {  
4260 - //var head = element[0];  
4261 -  
4262 - //console.log("llllllllload");  
4263 - //console.log(element.name);  
4264 -  
4265 - element.bind('scroll', function() {  
4266 - //console.log("top=", angular.element(".tt_table_head").css("top"));  
4267 - //console.log("left=", angular.element(".tt_table_head").css("left"));  
4268 - //console.log("s top=" + element.scrollTop());  
4269 -  
4270 - angular.element(".tt_table_head").css("top", element.scrollTop());  
4271 - angular.element(".tt_table_body:eq(0)").css("left", element.scrollLeft());  
4272 -  
4273 - });  
4274 - }  
4275 -  
4276 - };  
4277 - }  
4278 - }  
4279 - }  
4280 - ] 4239 +/**
  4240 + * 滚动事件控制指令。
  4241 + */
  4242 +angular.module('ScheduleApp').directive(
  4243 + 'saTscrolly1',
  4244 + [
  4245 + function() {
  4246 + return {
  4247 + restrict: 'A',
  4248 +
  4249 + compile: function(tElem, tAttrs) {
  4250 +
  4251 + return {
  4252 + pre: function(scope, element, attr) {
  4253 + // TODO:
  4254 + //alert(element.find("#tooltipTest").html());
  4255 + //$compile(element.find("#tooltipTest"))(scope);
  4256 +
  4257 + },
  4258 +
  4259 + post: function(scope, element, attr) {
  4260 + //var head = element[0];
  4261 +
  4262 + //console.log("llllllllload");
  4263 + //console.log(element.name);
  4264 +
  4265 + element.bind('scroll', function() {
  4266 + //console.log("top=", angular.element(".tt_table_head").css("top"));
  4267 + //console.log("left=", angular.element(".tt_table_head").css("left"));
  4268 + //console.log("s top=" + element.scrollTop());
  4269 +
  4270 + angular.element(".tt_table_head").css("top", element.scrollTop());
  4271 + angular.element(".tt_table_head:eq(0)").css("left", element.scrollLeft());
  4272 + angular.element(".tt_table_body:eq(0)").css("left", element.scrollLeft());
  4273 +
  4274 + });
  4275 + }
  4276 +
  4277 + };
  4278 + }
  4279 + }
  4280 + }
  4281 + ]
4281 ); 4282 );
4282 /** 4283 /**
4283 * saScpdate指令(非通用指令,只在排版计划form中使用)。 4284 * saScpdate指令(非通用指令,只在排版计划form中使用)。