Browse Source

条目缺陷占比详情样式修改

zhangxc 5 years ago
parent
commit
79304a5e0c
4 changed files with 16 additions and 4 deletions
  1. 1 0
      src/css/qcList.less
  2. 11 2
      src/css/qcListCopy.less
  3. 1 1
      src/html/qcListCopy.html
  4. 3 1
      src/js/qcListCopy.js

+ 1 - 0
src/css/qcList.less

@@ -23,6 +23,7 @@ h2{
     margin: 54px 0 0;
     min-width: 1090px;
     min-height: calc(100% - 54px);
+    height: 100%;
     // overflow: auto;
 }
 .borderRight{

+ 11 - 2
src/css/qcListCopy.less

@@ -4,6 +4,8 @@
     height: 100%;
     overflow: auto;
     background: #fff;
+    border-bottom: 10px @disColor solid;
+    box-sizing: border-box;
 }
 ul,li{
     list-style: none;
@@ -11,16 +13,23 @@ ul,li{
 h2{
     .h2;
     border-bottom: 10px @disColor solid;
-    position: absolute;
+    position: fixed;
+    top: 0;
+}
+.partTitle{
+    border-bottom: 10px @disColor solid;
+    height: 54px;
 }
 .main-body{
     .main-body-com;
     border: none;
-    border:10px @disColor solid;
+    // border:10px @disColor solid;
+    border-left:10px @disColor solid;
     margin: 44px 0 0;
     min-width: 1090px;
     min-height: calc(100% - 84px);
     // overflow: auto;
+    height: 100%;
     .selectDefect{
         min-width: 120px;
         width: auto;

+ 1 - 1
src/html/qcListCopy.html

@@ -10,7 +10,7 @@
 </head>
 
 <body>
-    <div class="container">
+    <div class="container qcListCopy">
         <!-- <h2>质控评分</h2>控制台 / 条目缺陷占比 / 缺陷详情 -->
         <div class="partTitle">
             <p class="titlePic"></p>

+ 3 - 1
src/js/qcListCopy.js

@@ -2,7 +2,7 @@ const $ = require('jquery');
 require("../css/qcListCopy.less");
 require('./modal.js');
 const {api} = require('./api.js')
-const {post,getCookie,getUrlArgObjectNew,emptyBox,downloadExportedData,expJson} = require('./utils.js')
+const {post,getCookie,getUrlArgObjectNew,emptyBox,downloadExportedData,expJson,initScroll} = require('./utils.js')
 require('./../resource/jquery-ui/jquery-ui.min.js');
 require('./../resource/jquery-ui/jquery-ui.min.css');
 const iconCheck= require("./../images/icon_check.png")
@@ -226,6 +226,7 @@ function renderTab(data,hisId){
     let hasSelectAll = true;
     if(data.length===0){
       $('.tbody').html(emptyBox(null,showNum+2))
+      initScroll("qcListCopy","YX",1)
       return;
     }
     for(let i = 0; i < data.length; i++){
@@ -274,6 +275,7 @@ function renderTab(data,hisId){
     bindScoreOperaItem()
     bindRecordScoreOper()
     bindScoreDetail(hisId)
+    initScroll("qcListCopy","YX",1)
 }
 
 function isTextCenter(name){