yuwandanmian 2 лет назад
Родитель
Сommit
509b3ff5a2
1 измененных файлов с 22 добавлено и 1 удалено
  1. 22 1
      src/views/outpatient/control/defectNumber.vue

+ 22 - 1
src/views/outpatient/control/defectNumber.vue

@@ -84,7 +84,7 @@ export default {
       tableData: [],
       // 分页数据
       paginationData: {
-        total: 10,
+        total: 0,
         currentPage: 1,
         pageSize: 10,
       },
@@ -99,6 +99,27 @@ export default {
     this.selectInfo();
     this.funQuery();
   },
+  watch: {
+    $route(to, from) {
+      console.log(from.path, 'from', to.path,'to')
+      if (to.path === '/outpatientMedicalRecordDefectNumber' && from.path === '/outpatientControl') {
+        console.log(2222)
+        this.formData = {
+          dep_id: '',
+          startTime:'',
+          endTime:'',
+          sfzh: '',
+          doctor_id: ''
+        }
+        this.rule_id = this.$route.query.rule_id
+        this.formData.startTime = this.storageGet('start_time');
+        this.formData.endTime = this.storageGet('end_time');
+        this.paginationData.currentPage = 1
+        this.paginationData.pageSize = 10
+        this.funQuery();
+      }
+    }
+  },
   methods: {
     // 导出
     onExport() {