From d1367a2eafbc26cadf07abb3caa94a0d64d09cab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 13 八月 2024 14:14:12 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/profile/index.vue |   35 +++++++++++++++++++++++++----------
 1 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index 4300f6e..e0936bd 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -42,7 +42,7 @@
         <span class="mulsz" slot="label"
           ><i class="el-icon-s-management"></i> 鍖荤枟妗f</span
         >
-        <el-tabs v-model="sonactiveName" @tab-click="handleClick">
+        <el-tabs v-model="sonactiveName" @tab-click="handleClickson">
           <el-tab-pane name="outpatient"
             ><span class="mulsz" slot="label"
               >闂ㄨ瘖({{ mznumber }})</span
@@ -638,6 +638,8 @@
   alterpatient,
   Patientclinic,
 } from "@/api/patient/homepage";
+import { listPatouthosp } from "@/api/smartor/patouthosp";
+import { listpatient } from "@/api/patient/record";
 
 export default {
   name: "Profile",
@@ -789,13 +791,23 @@
   },
 
   methods: {
-    // 鏌ヨ鍖荤枟妗f鍒楄〃淇℃伅
-    getList() {
+    // 鏌ヨ鍖荤枟妗f鍚勫垪琛ㄤ俊鎭�
+    getList(type) {
       this.loading = true;
-      // 闂ㄨ瘖璁板綍
-      Patientclinic(this.id).then((response) => {
-        console.log(response);
-      });
+      if (type == 1) {
+        // 闂ㄨ瘖璁板綍
+        listPatouthosp({ patid: this.id }).then((response) => {
+          console.log(response);
+        });
+      } else if (type == 2) {
+        listpatient({ patid: this.id }).then((response) => {
+          console.log(response);
+        });
+      } else if (type == 3) {
+        listpatient({ patid: this.id }).then((response) => {
+          console.log(response);
+        });
+      }
     },
     getcontactlist() {
       listcontactinformation({ patid: this.id }).then((response) => {
@@ -948,9 +960,12 @@
     },
     // tab鍒囨崲
     handleClick(tab, event) {
-      if (tab.index == 1) {
-        this.getList();
-      }
+      this.getList(tab.index);
+    },
+    handleClickson(tab, event) {
+      console.log(tab.index, "son");
+
+      this.getList(tab.index);
     },
     // 鑱旂郴鏂瑰紡鏂板
     Addanumber() {},

--
Gitblit v1.9.3