Browse Source

编码员-医师排名

yuwandanmian 1 year ago
parent
commit
2350b750e0
2 changed files with 13 additions and 7 deletions
  1. 3 3
      src/views/encoder/components/index/DoctorRank.vue
  2. 10 4
      src/views/encoder/index.vue

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

@@ -18,21 +18,21 @@
       yNames() {
         const arr = []
         this.data.map(item => {
-          arr.push(item.docker_name)
+          arr.unshift(item.docker_name)
         })
         return arr
       },
       qxCounts() {
         const arr = []
         this.data.map(item => {
-          arr.push(item.qx_sum)
+          arr.unshift(item.qx_sum)
         })
         return arr
       },
       blCounts() {
         const arr = []
         this.data.map(item => {
-          arr.push(item.bl_sum)
+          arr.unshift(item.bl_sum)
         })
         return arr
       }

+ 10 - 4
src/views/encoder/index.vue

@@ -167,6 +167,9 @@
                   label="序号"
                   width="80"
                   align="center">
+                  <template slot-scope="scope">
+                    <span>{{ scope.$index + 1 + (paginationData.page - 1) * paginationData.size }}</span>
+                  </template>
                 </el-table-column>
                 <el-table-column
                   prop="desc"
@@ -244,6 +247,9 @@
                   label="序号"
                   width="80"
                   align="center">
+                  <template slot-scope="scope">
+                    <span>{{ scope.$index + 1 + (paginationDataDoctor.page - 1) * paginationDataDoctor.size }}</span>
+                  </template>
                 </el-table-column>
                 <el-table-column
                   prop="docker_name"
@@ -264,7 +270,7 @@
                   label="总扣分"
                   align="center">
                   <template slot-scope="scope">
-                    <span class="link" @click="toPageDoctor(scope.row)" style="color: #004983;">{{ scope.row.kf_score }}</span>
+                    <span class="link" @click="toPageDoctor(scope.row)" style="color: #004983;">{{ -scope.row.kf_score }}</span>
                   </template>
                 </el-table-column>
               </el-table>
@@ -736,12 +742,12 @@ import DoctorRankVue from './components/index/DoctorRank.vue'
       },
       // 分页
       handleDoctorSizeChange(val) {
-        this.paginationData.page = 1
-        this.paginationData.size = val
+        this.paginationDataDoctor.page = 1
+        this.paginationDataDoctor.size = val
         this.getDoctorRank()
       },
       handleDoctorCurrentChange(val) {
-        this.paginationData.page = val
+        this.paginationDataDoctor.page = val
         this.getDoctorRank()
       },