瀏覽代碼

fix:患者档案出入院信息不显示

闪电 1 年之前
父節點
當前提交
72c1c3a75d
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/main/patientFile/patientFileList/cpns/medicalInfo/medicalInfo.vue

+ 3 - 2
src/views/main/patientFile/patientFileList/cpns/medicalInfo/medicalInfo.vue

@@ -91,6 +91,7 @@
91 91
     
92 92
 
93 93
     const getDatas = (type) => {
94
+        console.log(type, 'type')
94 95
         if (props.patientId) {
95 96
             getPageListData('/patient/hospitalrecord', {
96 97
                 patientId: props.patientId,
@@ -98,8 +99,8 @@
98 99
                 pageSize: 5,
99 100
                 typelist: type,
100 101
             }).then(res => {
101
-                if (type === 2) zyData.value = res.data
102
-                if (type === 1) mzData.value = res.data
102
+                if (type.includes(2)) zyData.value = res.data
103
+                if (type.includes(1)) mzData.value = res.data
103 104
             })
104 105
         }
105 106