yuwandanmian 1 year ago
parent
commit
bafa0c8c69
2 changed files with 5 additions and 4 deletions
  1. 1 1
      src/views/encoder/components/doctorBl/TableBox.vue
  2. 4 3
      src/views/encoder/index.vue

+ 1 - 1
src/views/encoder/components/doctorBl/TableBox.vue

@@ -113,7 +113,7 @@
         } else {
           str = null
         }
-        const val = [prop, str]
+        const val = str ? [prop, str] : []
         this.$emit('sort', val)
       },
       onExport() {

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

@@ -825,7 +825,6 @@ export default {
         ...this.formInline,
         is_export: 0,
       };
-      this.doctor_tableData = [];
       this.$axios_new.post('/api/bmy/doctorRanking', params).then(res => {
         let arr = [];
         if (res.data.list.length < 10) {
@@ -841,9 +840,11 @@ export default {
             });
           }
         }
-        this.doctor_tableData = res.data.list.concat(arr);
+        this.$set(this, 'doctor_tableData', res.data.list.concat(arr))
         this.paginationDataDoctor.total = res.data.count;
-        this.$refs.barRank.updata();
+        setTimeout(()=> {
+          this.$refs.barRank.updata();
+        }, 500)
       });
     },
     // 导出