diff --git a/src/main/resources/static/assets/js/project_budget_plan.js b/src/main/resources/static/assets/js/project_budget_plan.js index d1293a5..61e666d 100644 --- a/src/main/resources/static/assets/js/project_budget_plan.js +++ b/src/main/resources/static/assets/js/project_budget_plan.js @@ -405,6 +405,15 @@ function appendTrBudgetPlan() { ' \n' + ' '; $("#budgetPlanDetailTable").append(template); + // let width=0 + // $('#budgetPlanDetailTable tr').each(function (){ + // width+=$(this).width() + // }) + // $("#planTbodyScrollContent").width(width+'px') + // $('#planTbodyScroll').on('scroll',function(){ + // let left=$('#planTbodyScroll').scrollLeft() + // $('#budgetPlanDetailTable').scrollLeft(left) + // }) //根据前一条数据拿到月份 bindMonth(); //新增的收入与支出默认为0,并更新每一列的数据 diff --git a/src/main/resources/templates/admin/project_budget_edit.ftl b/src/main/resources/templates/admin/project_budget_edit.ftl index 575d291..00c25d2 100644 --- a/src/main/resources/templates/admin/project_budget_edit.ftl +++ b/src/main/resources/templates/admin/project_budget_edit.ftl @@ -102,11 +102,12 @@ display: flex; flex-direction: column; } - #tab6 table#budgetPlanDetailTable tbody{ + + #tab6 table#budgetPlanDetailTable tbody { padding-top: 15px; } - #tab6 table#budgetPlanDetailTable tr{ + #tab6 table#budgetPlanDetailTable tr { position: relative; padding-top: 55px; } @@ -116,6 +117,19 @@ background: #fff; top: 0; } + #planTable{ + position: relative; + } + #planTbodyScroll{ + position: absolute; + z-index: 100; + right: 0; + top: 0; + display: inline-block; + width: calc(100% - 410px); + overflow-x:scroll; + height: 20px; + } @@ -809,7 +823,8 @@ - *是否二次合作: + *是否二次合作: - *是否汇智中标: + *是否汇智中标: