luolei 4 年之前
父節點
當前提交
b890984c54
共有 3 個文件被更改,包括 13 次插入13 次删除
  1. 1 1
      src/js/dept/qcListCopyDept.js
  2. 3 3
      src/js/deptConsole.js
  3. 9 9
      src/js/singleVeto.js

+ 1 - 1
src/js/dept/qcListCopyDept.js

@@ -166,7 +166,7 @@ $("#filterToggler").click(function(){
 }
 // 初始化请求列表接口
 function formatPostUrl(type) {
-    if(type==='2'){
+    if(type==='2'||type==3){
         return api.qcResultShortByDeptPage
     } else if (type === '7' || type === '8'){
         return api.qcCheckMRPageByDept

+ 3 - 3
src/js/deptConsole.js

@@ -396,7 +396,7 @@ function lineChartSpecial(result1){
                 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>"
+                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>${hospital=='长兴医院'&&isPlacefile==0?'入院记录24h未完成':'病案首页合格率'}:`+ param[0].value+(hospital=='长兴医院'&&isPlacefile==0?"":"%") + "<br>"
                 '</div>'
             }
         },
@@ -456,7 +456,7 @@ function lineChartSpecial(result1){
             
         ],
         title:[{
-            text: '合格率',
+            text: hospital=='长兴医院'&&isPlacefile==0?'数量':'合格率',
             top: 15,
             left: 10,
             textStyle: {
@@ -467,7 +467,7 @@ function lineChartSpecial(result1){
         }],
         series: [
             {
-                name: '病案首页合格率',
+                name: hospital=='长兴医院'&&isPlacefile==0?'入院记录24h未完成':'病案首页合格率',
                 type: 'bar',
                 barWidth: '23%',
                 data: dataY

+ 9 - 9
src/js/singleVeto.js

@@ -51,14 +51,9 @@ $(function(){
     }
     // YH-ZKK-TMQXZB_XQ
     $(".menu .page", parent.document).removeClass("active")
-    if(deptNameParam){
-        deptName = deptNameTemp = deptNameParam
-        if(from == 2){
-            $(".selectDept").attr({'title':deptName,'data-id':''}).html(deptName).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
-        }
-    }
+
     if(from == 2){
-        getDeptList()
+        getDeptList(deptNameParam)
         $(".typeFilterDept").css("display","inline-block")
         $(parent.document).find(".menu .page[code=YH-KSZR-TMQXZB_XQ]").addClass("active")
         $(".partTitle a").attr("href","deptConsole.html").html("控制台(科室) / ")
@@ -159,10 +154,15 @@ $('.selectDept').on("click", function(e){
       $(".selectDept .arrow").attr("src",iconDown)
   }
 })
-function getDeptList(){
+function getDeptList(dept){
   let str = ``
   if(deptList.length<=0)return
-  deptName = deptNameTemp = deptList[0].deptName
+  if(dept){
+      deptName = deptNameTemp = dept
+      $(".selectDept").attr({'title':deptName,'data-id':''}).html(deptName).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  }else{
+      deptName = deptNameTemp = deptList[0].deptName
+  }
   $(".selectDept").attr("data-id",deptName).find("i").html(deptName)
   for(let i = 0;i < deptList.length;i++){
       let tmp = deptList[i]