Browse Source

病案详情-病案首页的接口换成质控详情病案首页的接口

liyanyan 2 tuần trước cách đây
mục cha
commit
feae44d5ca
1 tập tin đã thay đổi với 10 bổ sung6 xóa
  1. 10 6
      src/views/allcase/caseViews.vue

+ 10 - 6
src/views/allcase/caseViews.vue

@@ -215,6 +215,7 @@ import DeathText from './components/DeathText.vue';
 import VueDragResize from 'vue-drag-resize';
 import Axios from 'axios'
 import { Loading } from 'element-ui';
+import { getHomeData } from '@/api/qc'
 
 export default {
   components: {
@@ -521,12 +522,15 @@ export default {
       const params = {
         id: this.valData,
       };
-      if (this.is_tm_path.includes(this.$route.path)) {
-        params.is_tm = 1;
-      }
-      this.$axios.post('/medical_record', params).then(res => {
-        this.mainHomeData = res.data;
-      });
+      // if (this.is_tm_path.includes(this.$route.path)) {
+      //   params.is_tm = 1;
+      // }
+      // this.$axios.post('/medical_record', params).then(res => {
+      //   this.mainHomeData = res.data;
+      // });
+      getHomeData(params).then(res => {
+        this.mainHomeData = res.data
+      })
     },
 
     getTree() {