From dacf3c6ae5ede1c0a8a8b4afb24e2a3b62f0e368 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 21 十一月 2023 15:39:28 +0800
Subject: [PATCH] Merge branch 'wulong' of http://116.62.18.175:6699/r/~yxh/smartor-web into yxh01

---
 src/views/patient/patient/index.vue |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index 78afbd9..a90e1da 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -478,7 +478,15 @@
   updatepat_archive,
   delpat_archive,
 } from "@/api/smartorpor/pat_archive";
-import { listbase_tag } from "@/api/smartorpor/base_tag";
+import {
+  messagelistpatient,
+  alterpatient,
+  addpatient,
+  particularpatient,
+  deletepatient,
+  Exporterrorpatient,
+  toleadpatient,
+} from "@/api/patient/homepage";
 import { listtag } from "@/api/system/label";
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
@@ -634,7 +642,7 @@
     /** 鏌ヨ鎮h�呭垪琛� */
     getList() {
       this.loading = true;
-      listpat_archive(this.queryParams).then((response) => {
+      messagelistpatient(this.queryParams).then((response) => {
         console.log(response);
         this.userList = response.rows;
         this.total = response.total;
@@ -644,7 +652,7 @@
     /** 鏌ヨ鏍囩鍒楄〃 */
     gettabList() {
       const queryParams = {};
-      listbase_tag().then((response) => {
+      listtag().then((response) => {
         console.log(response);
         this.optionstag = response.rows;
       });
@@ -718,7 +726,7 @@
     handleUpdate(row) {
       console.log(row);
       const userIds = row.patid || this.ids;
-      getpat_archive(userIds).then((response) => {
+      particularpatient(userIds).then((response) => {
         console.log(response);
         this.form = response.data;
       });
@@ -729,7 +737,7 @@
     //淇敼/鏂板鎮h��
     submitForm() {
       if (this.amendtag) {
-        updatepat_archive(this.form)
+        alterpatient(this.form)
           .then((response) => {
             console.log(response);
           })
@@ -738,7 +746,7 @@
             this.$modal.msgSuccess("淇敼鎴愬姛");
           });
       } else {
-        addpat_archive(this.form)
+        addpatient(this.form)
           .then((response) => {
             console.log(response);
           })
@@ -758,7 +766,7 @@
       this.$modal
         .confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�')
         .then(function () {
-          return delpat_archive(userIds);
+          return deletepatient(userIds);
         })
         .then(() => {
           this.getList();

--
Gitblit v1.9.3