Jelajahi Sumber

Merge branch 'version1.2.1' of http://192.168.2.236:10080/zhouna/AIPlatform into version1.2.1

luolei 5 tahun lalu
induk
melakukan
529345fa04
2 mengubah file dengan 32 tambahan dan 5 penghapusan
  1. 19 4
      src/css/qcScore.less
  2. 13 1
      src/js/qcScore.js

+ 19 - 4
src/css/qcScore.less

@@ -43,36 +43,51 @@
     z-index: 1;
   }
   &>ul>li{
-    color: @themeFontClr;
+    color: #E9EBEF;
     &.menu-0{
       background: url("../images/total.png") 20px 9px no-repeat;
       &.active{
         background: url("../images/total_a.png") 20px 9px no-repeat;
       }
+      &.slide-up{
+        background-color: @activeBg;
+      }
     }
     &.menu-6{
        background: url("../images/index.png") 20px 11px no-repeat;
       &.active{
         background: url("../images/index_a.png") 20px 11px no-repeat;
       }
+      &.slide-up{
+        background-color: @activeBg;
+      }
      }
     &.menu-1{
       background: url("../images/inhis.png") 19px 11px no-repeat;
       &.active{
         background: url("../images/inhis_a.png") 19px 11px no-repeat;
       }
+      &.slide-up{
+        background-color: @activeBg;
+      }
     }
     &.menu-37{
       background: url("../images/prod.png") 20px 10px no-repeat;
       &.active{
         background: url("../images/prod_a.png") 20px 10px no-repeat;
       }
+      &.slide-up{
+        background-color: @activeBg;
+      }
     }
     &.menu-5{
       background: url("../images/out.png") 20px 11px no-repeat;
       &.active{
         background: url("../images/out_a.png") 20px 11px no-repeat;
       }
+      &.slide-up{
+        background-color: @activeBg;
+      }
     }
   }
   .active{
@@ -86,7 +101,7 @@
   .list-1{
     position: relative;
     p {
-      color: @themeFontClr;
+      color: #E9EBEF;
       &:hover {
         color: @activeColor;
       }
@@ -109,7 +124,7 @@
       display: none;
       li.page{
         text-indent: 55px;
-        color: @themeFontClr;
+        color: #E9EBEF;
         &.active{
           color: @activeColor;
         }
@@ -124,7 +139,7 @@
   .copy-right{
     position: fixed;
     bottom: 0px;
-    width: @menuWt;
+    width: @menuWt+15;
     text-align: center;
     background: @themeColor;
     padding: 10px 0 20px;

+ 13 - 1
src/js/qcScore.js

@@ -127,7 +127,19 @@ function initContent(data){
       if(global_modules[moduleId]){
         hml=initModuleData(moduleId,obj[k]);
         $.tmpl(hml,info).appendTo("#contentInfo");
-      };
+      }else{
+        const icon=require("../images/empty1.png");
+        const sid=moduleId?"("+moduleId+")":"";
+        const emptyStr=`<div class="empty">
+            <img src="${icon}" alt="空"/>
+            <p>暂无信息~</p>
+        </div>`;
+        if(!$(".content-item[code="+k+"] .empty").length){  //显示一条空提示即可
+          hml='<div class="content-item" code="'+k+'">' +
+            '<h2 class="title">'+k+sid+'</h2>'+emptyStr+'</div>';
+          $.tmpl(hml,{}).appendTo("#contentInfo");
+        }
+      }
     }
   }
   $(".content-item[code="+global_activeTab+"]").show();