yuwandanmian 1 anno fa
parent
commit
6a4ddcec4e

+ 61 - 3
src/views/encoder/components/index/DoctorRank.vue

@@ -37,12 +37,17 @@
         return arr
       }
     },
+    data() {
+      return {
+        barDom: null
+      }
+    },
     mounted() {
       this.renderChart()
     },
     methods: {
       renderChart() {
-        var myChart = this.$echarts.init(document.getElementById('rank_chart'))
+        this.barDom = this.$echarts.init(document.getElementById('rank_chart'))
         var option = {
           tooltip: {
             trigger: 'axis',
@@ -93,11 +98,64 @@
             }
           ]
         };
-        myChart.setOption(option)
+        this.barDom.setOption(option)
         // 窗口大小改变 重新渲染
         window.addEventListener('resize', () => {
-          myChart.resize()
+          this.barDom.resize()
         })
+      },
+      updata() {
+        var option = {
+          tooltip: {
+            trigger: 'axis',
+            axisPointer: {
+              type: 'shadow'
+            }
+          },
+          color: ['#54C5A0', '#5B8EC3'],
+          legend: {},
+          grid: {
+            left: '3%',
+            right: '4%',
+            bottom: '3%',
+            containLabel: true
+          },
+          xAxis: {
+            type: 'value'
+          },
+          yAxis: {
+            type: 'category',
+            data: this.yNames,
+            axisLine: {
+              lineStyle: {
+                color: '#CFCFCF'
+              }
+            },
+            axisTick: {
+              show: false
+            },
+            axisLabel: {
+              color: '#333333'
+            }
+          },
+          series: [
+            {
+              name: '缺陷病历',
+              type: 'bar',
+              stack: 'total',
+              barWidth: '20',
+              data: this.qxCounts
+            },
+            {
+              name: '病历总数',
+              type: 'bar',
+              stack: 'total',
+              barWidth: '20',
+              data: this.blCounts
+            }
+          ]
+        };
+        this.barDom.setOption(option)
       }
     }
   }

+ 14 - 2
src/views/encoder/index.vue

@@ -323,7 +323,7 @@
               </div>
             </el-col>
             <el-col :span="10">
-              <DoctorRankVue v-if="doctor_tableData.length" :data="doctor_tableData" />
+              <DoctorRankVue v-if="doctor_tableData.length" :data="doctor_tableData" ref="barRank" />
             </el-col>
           </el-row>
         </div>
@@ -388,7 +388,7 @@ import { bmyDoctorRanking } from '@/api/excel'
         paginationDataDoctor: {
           page: 1,
           size: 10,
-          total: 0
+          total: 11
         },
         doctor_tableData: [],
         // doctor_tableData: [
@@ -491,6 +491,16 @@ import { bmyDoctorRanking } from '@/api/excel'
         //     "kf_score": 642,
         //     "proportion": "77.07",
         //     "avg_score": 88
+        //   },
+        //   {
+        //     "docker_name": "杜晓峰",
+        //     "bl_sum": 28,
+        //     "qx_sum": 22,
+        //     "sum_score": 2800,
+        //     "df_score": 2158,
+        //     "kf_score": 642,
+        //     "proportion": "77.07",
+        //     "avg_score": 88
         //   }
         // ],
       }
@@ -788,6 +798,7 @@ import { bmyDoctorRanking } from '@/api/excel'
           ...this.formInline,
           is_export: 0
         }
+        this.doctor_tableData = []
         this.$axios_new.post('/api/bmy/doctorRanking', params).then(res => {
           const { count } = res.data
           if (count < 10) {
@@ -805,6 +816,7 @@ import { bmyDoctorRanking } from '@/api/excel'
           }
           this.doctor_tableData = res.data.list
           this.paginationDataDoctor.total = res.data.count
+          this.$refs.barRank.updata()
         })
       },
       // 导出

+ 1 - 1
src/views/medicalRecord/index.vue

@@ -385,7 +385,7 @@
           <td class="center">{{ item.OPE_MAN_NAME  }}</td>
           <td class="center">{{ item.FRIST_ASSISTANT_NAME }}</td>
           <td class="center">{{ item.SECOND_ASSISTANT_NAME }}</td>
-          <td class="center">{{ item.INCISION_GRADE_ID }}</td>
+          <td class="center">{{ item.QKDJ }} / {{ item.YHDJ }}</td>
           <td class="center">{{ item.HOCUS_WAY_ID }}</td>
           <td class="center">{{ item.HOCUS_MAN_NAME }}</td>
         </tr>