luolei 5 years ago
parent
commit
cf299bc7cc
3 changed files with 13 additions and 10 deletions
  1. 9 7
      src/css/console.less
  2. 2 2
      src/js/console.js
  3. 2 1
      src/js/index.js

+ 9 - 7
src/css/console.less

@@ -26,11 +26,12 @@ body.console {
   background-color: #fff;
 }
 .partWrap {
-  // overflow: auto;
+  overflow: auto;
   height: auto;
   background: @activeBg;
   min-width: 1185px;
   padding: 10px;
+  box-sizing: border-box;
   ul {
     padding: 0 40px;
   }
@@ -207,7 +208,7 @@ body.console {
   padding-right: 30px;
   box-sizing: border-box;
   max-height: 180px;
-  overflow: hidden;
+  overflow: auto;
   table {
     width: 100%;
   }
@@ -260,7 +261,7 @@ body.console {
   border-right: 10px solid @activeBg;
   box-sizing: border-box;
   ul {
-    padding: 28px 20px;
+    padding: 15px 20px;
     border-bottom: 10px solid @activeBg;
     /*background: @themeColor;*/
     li {
@@ -282,15 +283,15 @@ body.console {
   
   .defect {
     /*background-color: @themeColor;*/
-    height: 385px;
+    height: 410px;
     overflow: hidden;
     .list {
-      padding: 13px 5px;
+      padding: 6px 5px;
       width: 100%;
       box-sizing: border-box;
       overflow-y: auto;
       overflow-x: hidden;
-      height: 405px;
+      height: 410px;
     }
     /*.thead {
       td {
@@ -302,10 +303,11 @@ body.console {
       overflow: auto;
       .thead{
         background: #142753;
+        padding: 1px 0;
       }
     }
     td {
-      padding: 8px 10px;
+      padding: 7px 10px;
       color: @themeFontClr;
       i {
         width: 17px;

+ 2 - 2
src/js/console.js

@@ -94,7 +94,7 @@ function hasData(data){
   }
 function resizeBox(){
     $(".partWrap").css({
-        height:$(window).height()-38+'px'
+        height:$(window).height()-84+'px'
     })
 }
 //所有数据切换日期筛选
@@ -310,7 +310,7 @@ function getBarData(type){
             let data = res.data;
             if(data.code == 0){
                 let result1 = data.data['各模块缺陷占比排行']||[];
-                result1.length>8?result1.length=8:"";
+                // result1.length>8?result1.length=8:"";
                 queList(result1)
             }
         })

+ 2 - 1
src/js/index.js

@@ -12,7 +12,7 @@ $(function(){
   //菜单展开收起
   sureChangeWord()
   $(".main").css({
-    height:$(window).height()-70+'px'
+    height:$(window).height()+'px'
   })
   $("body").on('focus',".modalAction input",function(){
     $(this).attr("type","password")
@@ -104,6 +104,7 @@ function initMenu(data,userInfo){
 //获取科室列表
 function getOwnDept(){
   // if(hasData('FUNC000058')){
+      setCookie("deptList",JSON.stringify([]))
       post(api.getDept,{}).then((res)=>{
           let data = res.data;
           if(data.code == 0){