فهرست منبع

科室首页展示

luolei 5 سال پیش
والد
کامیت
61a9aad4bd
5فایلهای تغییر یافته به همراه12 افزوده شده و 9 حذف شده
  1. 2 2
      src/css/console.less
  2. 4 2
      src/css/deptConsole.less
  3. 2 2
      src/js/console.js
  4. 3 3
      src/js/deptConsole.js
  5. 1 0
      src/js/index.js

+ 2 - 2
src/css/console.less

@@ -130,11 +130,11 @@ body.console {
       text-align: center;
       font-weight: normal;
     }
-    .mon {
+    .year {
       background-color: #5A8EEE;
       color: #fff;
     }
-    .year {
+    .mon {
       color: #5A8EEE;
     }
   }

+ 4 - 2
src/css/deptConsole.less

@@ -131,11 +131,11 @@ body.console {
       text-align: center;
       font-weight: normal;
     }
-    .mon {
+    .year {
       background-color: #5A8EEE;
       color: #fff;
     }
-    .year {
+    .mon {
       color: #5A8EEE;
     }
   }
@@ -183,6 +183,7 @@ body.console {
   display: inline-block;
   background-color: #fff;
   box-sizing: border-box;
+  border-top: 10px solid #f5f5f5;
   position: relative;
 }
 .btmWrap {
@@ -346,6 +347,7 @@ body.console {
       font-weight: bold;
       font-size: 16px;
       padding-bottom: 2px;
+      margin-bottom: 10px;
     }
   }
   .panPartPub {

+ 2 - 2
src/js/console.js

@@ -7,7 +7,7 @@ require("../images/arrow_down.png")
 // import 'zrender/lib/svg/svg';
 const echarts = require('echarts');
 const {post,setCookie,delCookie,getCookie} = require('../js/utils.js');
-let payMoney = [],dayLis = [],dateType = 1,slideType = 1;
+let payMoney = [],dayLis = [],dateType = 2,slideType = 1;
 $(function(){
     if(!hasData('YH-KZT')){
         $("body").html('')
@@ -18,7 +18,7 @@ $(function(){
     }, 1000);
     resizeBox()
     initConsole()//质控列表
-    getBarData()//图标数据获取
+    getBarData(2)//图标数据获取
     dateChange()
     $(window).click(function(){
         window.parent.userActionHide()

+ 3 - 3
src/js/deptConsole.js

@@ -7,7 +7,7 @@ require("../images/arrow_down.png")
 // import 'zrender/lib/svg/svg';
 const echarts = require('echarts');
 const {post,setCookie,delCookie,getCookie} = require('../js/utils.js');
-let payMoney = [],dayLis = [],dateType = 1,slideType = 1;
+let payMoney = [],dayLis = [],dateType = 2,slideType = 1;
 $(function(){
     if(!hasData('YH-KZT')){
         $("body").html('')
@@ -18,7 +18,7 @@ $(function(){
     }, 1000);
     // resizeBox()
     initConsole()//质控列表
-    getBarData()//图标数据获取
+    getBarData(2)//图标数据获取
     dateChange()
     $(window).click(function(){
         window.parent.userActionHide()
@@ -38,7 +38,7 @@ $(function(){
 //判断有无某一权限
 function hasData(data){
     let lis = JSON.parse(getCookie("codeLis"))
-    // console.log(lis)
+    console.log(lis)
     if(lis.indexOf(data)>-1){//有权限
         return true
     }

+ 1 - 0
src/js/index.js

@@ -85,6 +85,7 @@ function getAllCode(data){
   let lis = [],personCodeLis=[],deptCodeLis=[],trdObj={}
   for(let i = 0;i < data.length;i++){
     let tmpSon = data[i]
+    lis.push(tmpSon.code)
     if(tmpSon.subMenuList.length > 0){//三层
       for(let j = 0;j<tmpSon.subMenuList.length;j++){//第二层循环
         let tmpGrandSon = tmpSon.subMenuList[j]