Bläddra i källkod

造价文件库 右侧底栏默认不显示

Chente 7 år sedan
förälder
incheckning
4c6fd81942
3 ändrade filer med 15 tillägg och 9 borttagningar
  1. 4 1
      css/main.css
  2. 2 1
      js/global.js
  3. 9 7
      my-Library-detail2.html

+ 4 - 1
css/main.css

@@ -21,9 +21,12 @@ body {
   overflow-y: auto;
 }
 .sjs-bottom-2{
-  height:360px;
   overflow-y: auto;
 }
+.sjs-bottom-4
+{
+  height:360px
+}
 .form-signin {
     max-width: 500px;
     margin: 150px auto;

+ 2 - 1
js/global.js

@@ -3,8 +3,9 @@ function autoFlashHeight(){
     var cHeader = $(".c-header").height();
     var toptitle = $(".top-title").height();
     var bottomtitle = $(".bottom-title").height();
+    var sjsbottom = $(".sjs-bottom-2").height();
     $(".sjs-height-1").height($(window).height()-cHeader-160);
-    $(".sjs-height-3").height($(window).height()-cHeader-toptitle-bottomtitle-552);
+    $(".sjs-height-3").height($(window).height()-cHeader-toptitle-bottomtitle-sjsbottom-192);
 };
 $(window).resize(autoFlashHeight);
 /*全局自适应高度结束*/

+ 9 - 7
my-Library-detail2.html

@@ -9,7 +9,7 @@
     <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
     <link rel="stylesheet" href="css/main.css">
     <link rel="stylesheet" href="css/font-awesome/font-awesome.min.css">
-	<link rel="stylesheet" href="css/spreadjs/sheets/gc.spread.sheets.excelsmartcost.css">
+    <link rel="stylesheet" href="css/spreadjs/sheets/gc.spread.sheets.excelsmartcost.css">
 </head>
 
 <body>
@@ -39,7 +39,7 @@
 			<div class="nav-top">
         <ul class="nav nav-pills flex-column bg-nav">
           <li class="nav-item"><a href="template.html"title="指标模板"><i class="fa fa-file-text-o"></i> 指标模板</a></li>
-          <li class="nav-item active"><a href="my-Library.html"title="指标库"><i class="fa fa-list-ul"></i> 指标库</a></li>
+          <li class="nav-item active"><a href="my-Library.html"title="指标库"><i class="fa fa-list-ul"></i> 造价文件库</a></li>
           <li class="nav-item"><a href="search-Library.html"title="指标对比"><i class="fa fa-search"></i> 指标对比</a></li>
         </ul>
 			</div>
@@ -103,11 +103,12 @@
                 <!--bottom-->
                 <div>
                   <div class="bottom-title mt-3">
-                    <h5>填写参数</h5>
+                    <h5 class="d-flex justify-content-between">填写参数 <a href="">展开</a></h5>
                   </div>
                   <div class="sjs-bottom-2">
                     <!--本节点参数-->
-                    <table class="table table-bordered table-sm table-hover">
+                    <div class="sjs-bottom-4" style="display:none">
+                      <table class="table table-bordered table-sm table-hover">
                         <tr><th colspan="4" class="text-center">1-1 项目节 参数</th></tr>
                         <tr class="text-center">
                           <th>参数name</th><th>绑定分项节点</th><th>参数数值</th>
@@ -125,6 +126,7 @@
                           <td>边沟圬工体积</td><td></td><td><input class="form-control form-control-sm text-right"></td>
                         </tr>
                       </table>
+                    </div>
                   </div>
                 </div>
               </div>
@@ -191,8 +193,8 @@
     autoFlashHeight();
     </script>
     <script src="js/spreadjs/sheets/gc.spread.sheets.all.10.0.1.min.js"></script>
-<script>
-  $(document).ready(function () {
+    <script>
+      $(document).ready(function () {
       const data = [
           {
               code: '1',
@@ -387,7 +389,7 @@
       });
       spread.getActiveSheet().setDataSource(data);
   })
-</script>
+    </script>
 </body>
 
 </html>