浏览代码

4905/4903/4902

luolei 5 年之前
父节点
当前提交
7bc121bae2
共有 2 个文件被更改,包括 10 次插入3 次删除
  1. 9 2
      src/js/console.js
  2. 1 1
      src/js/quexianDetailControl.js

+ 9 - 2
src/js/console.js

@@ -184,6 +184,7 @@ function resizeBox(){
             dateType = 1
             getBarData(1)
             getAverageScoreLis()
+            getEveryDeptLevel()
         })
         $(".monthYear .year").click(function(){
             $(this).css({
@@ -196,8 +197,9 @@ function resizeBox(){
                 backgroundColor:'#203463'
             })
             dateType = 2
-            getAverageScoreLis()
             getBarData(2)
+            getAverageScoreLis()
+            getEveryDeptLevel()
         })
     }
 //控制台数
@@ -1061,6 +1063,11 @@ function barChartLevel(dataX,dataY){
             position: 'right',
             axisPointer: {            // 坐标轴指示器,坐标轴触发有效
                 type: 'line'        // 默认为直线,可选为:'line' | 'shadow'
+            },
+            formatter: function(param) { 
+                return `<div style="color:#fff;">${param[0].name}<br>
+                    <i style="background:#00A1FF;margin-right:5px;display:inline-block;width:8px;height:8px;border-radius:50%"></i>病案首页合格率:${param[0]&&param[0].value}%<br>
+                </div>`
             }
         },
         grid: {
@@ -1119,7 +1126,7 @@ function barChartLevel(dataX,dataY){
             
         ],
         title:[{
-            text: dataX.length>0?'分数':'',
+            text: dataX.length>0?'百分比':'',
             top: 15,
             left: 10,
             textStyle: {

+ 1 - 1
src/js/quexianDetailControl.js

@@ -45,7 +45,7 @@ $(function(){
     }
     $(".selectDepts").html(deptName)
     // if(from == 1){
-        $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="partDetailControl.html">各科室缺陷占比 / </a>缺陷详情`)
+        $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="deptScoreDetailControl.html">各科室缺陷占比 / </a>缺陷详情`)
         $(".partTitle .consoleD").click(function(){
             $(".menu .page",parent.document).removeClass("active").eq(0).addClass("active");
             $(".container",parent.document).addClass("console-cont");