Browse Source

样式调整

luolei 5 years ago
parent
commit
03e364e36b

+ 1 - 0
src/css/abnormal.less

@@ -2,6 +2,7 @@
     width: 100%;
     height: 100%;
     overflow: auto;
+    background-color: #fff;
 }
 .abnormal {
     ul,li{

+ 1 - 0
src/css/dayDetail.less

@@ -4,6 +4,7 @@
     overflow: auto;
 }
 .dayDetail {
+    background-color: #fff;
     .dayFilter {
         .levelList {
             height: 80px;

+ 1 - 0
src/css/deptScoreDetail.less

@@ -2,6 +2,7 @@
     width: 100%;
     height: 100%;
     overflow: auto;
+    background-color: #fff;
 }
 .deptScoreDetail {
     .dayFilter {

+ 1 - 0
src/css/mukuai.less

@@ -2,6 +2,7 @@
     width: 100%;
     height: 100%;
     overflow-y: auto;
+    background-color: #fff;
     .filterDropList{
         position: absolute;
         right: 0;

+ 1 - 0
src/css/partDetail.less

@@ -2,6 +2,7 @@
     width: 100%;
     height: 100%;
     overflow: auto;
+    background-color: #fff;
 }
 .partDetail {
     .dayFilter {

+ 1 - 0
src/css/partDetailControl.less

@@ -2,6 +2,7 @@
     width: 100%;
     height: 100%;
     overflow: auto;
+    background-color: #fff;
 }
 .partDetailControl {
     .dayFilter {

+ 1 - 0
src/css/payDetail.less

@@ -2,6 +2,7 @@
     width: 100%;
     height: 100%;
     overflow: auto;
+    background-color: #fff;
 }
 .payDetail {
     .dayFilter {

+ 1 - 0
src/css/quexianXQ.less

@@ -4,6 +4,7 @@
     overflow: auto;
 }
 .quexianXQ {
+    background-color: #fff;
     .dayFilter {
         .levelList {
             height: 80px;

+ 3 - 0
src/css/reset.less

@@ -334,8 +334,11 @@ input:-ms-input-placeholder{  /* Internet Explorer 10-11 */
   p {
     display: inline-block;
     font-size: 16px;
+    color: #51649C;
     a {
       font-size: 16px;
+      color: #51649C;
+      opacity: 70%;
     }
     span {
       font-size: 16px;

+ 5 - 0
src/js/console.js

@@ -64,18 +64,23 @@ $(function(){
 function getDetails(){
     $(".part02 .bingli,.part02 .bingliLis,.part03 .circle .title,.pubEchartB.paymoney .title").click(function(){
         $(parent.document).find("#contentIframe").attr("src","deptScoreDetailControl.html")
+        $(".container",parent.document).removeClass("console-cont");
     })
     $(".part03 .partTitlePub").click(function(){
         $(parent.document).find("#contentIframe").attr("src",hospital=="台州市立"?"jiaji.html":"partDetailControl.html")
+        $(".container",parent.document).removeClass("console-cont");
     })
     $(".paymoney.pubEchart .title").click(function(){
         $(parent.document).find("#contentIframe").attr("src","dayDetail.html")
+        $(".container",parent.document).removeClass("console-cont");
     })
     $(".defect .partTitlePub").click(function(){//from 1 console / 2  deptConsole
         $(parent.document).find("#contentIframe").attr("src","mukuai.html?from=1&dateType="+dateType)
+        $(".container",parent.document).removeClass("console-cont");
     })
     $(".circleB .title").click(function(){
         $(parent.document).find("#contentIframe").attr("src","tiaomu.html?from=1&dateType="+dateType)
+        $(".container",parent.document).removeClass("console-cont");
     })
 }
 //判断有无某一权限

+ 2 - 0
src/js/index.js

@@ -46,6 +46,7 @@ function initMenu(data,userInfo){
   $("#userName").text(userInfo.linkman);
   //初始菜单选中
   $(".menu .page").eq(0).addClass("active");
+  // if($(".menu .page").eq(0).is(".YH-KZT")||$(".menu .page").eq(0).is(".YH-KZTKS")||$(".menu .page").eq(1).is(".YH-KZTKS")){
   if($(".menu .page").eq(0).is(".YH-KZT")){
     $(".container").addClass("console-cont");
   }
@@ -90,6 +91,7 @@ function initMenu(data,userInfo){
     if(code === 'YH-BLZK-ZKPFGR'){
       url += `?doctorName=${userInfo.linkman}`
     }
+    // if(code === 'YH-KZT'||code === 'YH-KZTKS'){
     if(code === 'YH-KZT'){
       $(".container").addClass("console-cont");
     }else{

+ 2 - 2
src/js/utils.js

@@ -94,11 +94,11 @@ const post = function (url, data) {
   if(!token&&window.location.href.indexOf('login')==-1){
     window.location.href = "../login.html"
   }
-  let need = window.location.href.indexOf('localhost')==-1
+  let need = window.location.href.indexOf('localhost')!=-1
   return new Utils((resolve, reject) => {
     $.ajax({
       method: 'post',
-      url: url,
+      url: (need?baseUrl:'')+url,
       async:true,
       cache: false,
       contentType: false,