Ver código fonte

4639/4638/4637/4636/4635/4634/4625

luolei 5 anos atrás
pai
commit
0e3a2ddd63

+ 3 - 0
src/css/console.less

@@ -297,6 +297,9 @@ body.console {
       }
       .smp {
         width: 100px;
+        &:hover {
+          color: @activeColor;
+        }
       }
     }
     .deptNum {

+ 2 - 2
src/html/tiaomu.html

@@ -26,7 +26,7 @@
         <div class="main-body">
             <div class="filterBox">
                 <span class="filterItem">
-                    <span>条目名称:</span>
+                    <span>缺陷名称:</span>
                     <span class="">
                         <input class="moduleItemInp" type="text" placeholder="请输入条目名称">
                     </span>
@@ -44,7 +44,7 @@
             <table>
                 <thead>
                     <th class="moduleName" style="width: 65px;">序号</th>
-                    <th class="moduleItemName">条目名称</th>
+                    <th class="moduleItemName">缺陷名称</th>
                     <th class="moduleItemName">数量</th>
                     <th class="moduleScore" style="width: 80px;">缺陷占比</th>
                 </thead>

+ 2 - 2
src/html/tiaomuControl.html

@@ -26,7 +26,7 @@
         <div class="main-body">
             <div class="filterBox">
                 <span class="filterItem">
-                    <span>条目名称:</span>
+                    <span>缺陷名称:</span>
                     <span class="">
                         <input class="moduleItemInp" type="text" placeholder="请输入条目名称">
                     </span>
@@ -44,7 +44,7 @@
             <table>
                 <thead>
                     <th class="moduleName" style="width: 65px;">序号</th>
-                    <th class="moduleItemName">条目名称</th>
+                    <th class="moduleItemName">缺陷名称</th>
                     <th class="moduleItemName">数量</th>
                     <th class="moduleScore" style="width: 80px;">缺陷占比</th>
                 </thead>

+ 11 - 6
src/js/console.js

@@ -13,7 +13,6 @@ $(function(){
     if(!hasData('YH-KZT')){
         $("body").html('')
     }
-    console.log(hospital)
     if(hospital == "台州市立"){
         $(".part03 .partTitlePub .name").html('各科室甲级病例占比')
         $(".innerOuter").css("display","block")
@@ -53,8 +52,9 @@ $(function(){
                 return
             }
             slideType = 1
-            $(".pubEchart .title sppan").html("科室平均住院天数柱状图")
+            $(".pubEchart .title span").html("科室平均住院天数柱状图")
             barChart(dayLis,dateType)
+            $(this).parent().slideToggle().prev().find("span").html(str)
         }else if(type == 2){
             if(!hasData('FUNC000046')){
                 return
@@ -62,20 +62,22 @@ $(function(){
             slideType = 2
             $(".pubEchart .title span").html("科室平均住院花费柱状图")
             barChart(payMoney,dateType)
+            $(this).parent().slideToggle().prev().find("span").html(str)
         }else if(type == 3){//科室平均分内科
             if(!hasData('FUNC000091')){
                 return
             }
             deptType="内科"
             getAverageScoreLis()
+            $(this).parent().slideToggle().prev().find("span").html(str+"系统")
         }else if(type == 4){//科室平均分外科
             if(!hasData('FUNC000091')){
                 return
             }
             deptType="外科"
             getAverageScoreLis()
+            $(this).parent().slideToggle().prev().find("span").html(str+"系统")
         }
-        $(this).parent().slideToggle().prev().find("span").html(str+"系统")
     })
     getDetails()
     getAverageScoreLis()
@@ -369,12 +371,12 @@ function getBarData(type){
 //part01
 function personNum(data){
     if(data['总人数']==0){
-        $(".chuyuan").css("display","none")
+        $(".chuyuan,.personNum").css("display","none")
         picEmptyData(".chuyuanEmpty")
         return
     }else{
         $(".chuyuanEmpty").css("display","none")
-        $(".chuyuan").css("display","block")
+        $(".chuyuan,.personNum").css("display","block")
     }
     $(".personNum").html("总人数:"+data['总人数'])
     $(".died").html(data['死亡人数'])
@@ -492,7 +494,6 @@ function lineChart(dataX,dataY){
         $(".barChartLine").css("display","block")
         $(".barChartLineEmpty").css("display","none")
     }
-
     var myCharts = echarts.init(document.getElementById('lineChart'));
     $(window).resize(function(){
         myCharts.resize()
@@ -617,6 +618,10 @@ function lineChartSpecial(dataX,dataY){
             position: 'right',
             axisPointer: {            // 坐标轴指示器,坐标轴触发有效
                 type: 'line'        // 默认为直线,可选为:'line' | 'shadow'
+            },
+            formatter: function(param) {           
+                return '<div style="color:#fff;">'+ param[0].name + "<br>" +'<i style="background:#37C4FC;margin-right:5px;display:inline-block;width:8px;height:8px;border-radius:50%"></i>病案首页合格率:'+ param[0].value+"%" + "<br>"
+                '</div>'
             }
         },
         grid: {

+ 4 - 0
src/js/deptConsole.js

@@ -311,6 +311,10 @@ function lineChartSpecial(dataX,dataY){
             position: 'right',
             axisPointer: {            // 坐标轴指示器,坐标轴触发有效
                 type: 'line'        // 默认为直线,可选为:'line' | 'shadow'
+            },
+            formatter: function(param) {           
+                return '<div style="color:#fff;">'+ param[0].name + "<br>" +'<i style="background:#37C4FC;margin-right:5px;display:inline-block;width:8px;height:8px;border-radius:50%"></i>病案首页合格率:'+ param[0].value+"%" + "<br>"
+                '</div>'
             }
         },
         grid: {

+ 0 - 2
src/js/utils.js

@@ -116,8 +116,6 @@ const post = function (url, data) {
       },
       error: function (error) {
         if(error.status===403||error.status===401){
-          console.log(url)
-          return
           const wd = window.parent.window||window;
           wd.location.href = "../login.html";
         }