浏览代码

独占一行靠右显示bug修改

zhouna 5 年之前
父节点
当前提交
faf7cf5855
共有 3 个文件被更改,包括 8 次插入5 次删除
  1. 4 4
      src/css/qcScore.less
  2. 3 0
      src/js/index.js
  3. 1 1
      src/js/qcScore.js

+ 4 - 4
src/css/qcScore.less

@@ -219,6 +219,10 @@
     }
     .info-item{
       border-bottom: 1px @borderColor solid;
+      .text-left{
+        width: 100%;
+        text-align: right;
+      }
       .cont{
         display: inline-block;
         min-width: 33%;
@@ -235,10 +239,6 @@
         .text-indent{
           text-indent: 28px;
         }
-        .text-left{
-          width: 100%;
-          text-align: right;
-        }
         .text-bold{
           font-weight: bold;
         }

+ 3 - 0
src/js/index.js

@@ -83,6 +83,9 @@ function initMenu(data,userInfo){
     if(code === 'YH-BLZK-ZKPFGR'){
       url += `?doctorName=${userInfo.linkman}`
     }
+    if(code === 'YH-KZT'){
+      $("#mainBox").addClass("console-cont");
+    }
     $("#contentIframe").attr("src",url);
   });
 }

+ 1 - 1
src/js/qcScore.js

@@ -408,7 +408,7 @@ function formatFlawKeys(data){
     const lineHml = ('<p class="'+posClass+' '+boldClass+' '+retractClass+'">'+ extractVars(val)+'</p>');
     const txtHml = ('<p style="display: inline;vertical-align: middle;" class="'+posClass+' '+boldClass+' '+retractClass+'">'+ extractVars(val)+'</p>');
 
-    let hml = addLine||monoLine?`<div class="cont" style="width: 100%;" id="anchor${id}">`:`<div class="cont" id="anchor${id}">`;
+    let hml = addLine||monoLine?`<div class="cont ${posClass}" id="anchor${id}">`:`<div class="cont" id="anchor${id}">`;
     hml=hml+`<span class="label">${name}</span>`+ (addLine?lineHml:txtHml)+ `</div>`;
     return hml;
   }