From 1e78fbfb63e192c5284b19bba161ea12e80a7d92 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 04 七月 2024 16:30:04 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/PatientChart.vue  |   27 +++++--------
 src/views/patient/patient/outpatient.vue    |   30 ++++++---------
 src/views/patient/patient/profile/index.vue |   13 ++----
 src/api/patient/homepage.js                 |    1 
 4 files changed, 29 insertions(+), 42 deletions(-)

diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js
index ae0608a..f134bfd 100644
--- a/src/api/patient/homepage.js
+++ b/src/api/patient/homepage.js
@@ -33,6 +33,7 @@
     data: data
   })
 };
+
 // 鎮h�呰鎯�
 export function particularpatient(userId) {
   return request({
diff --git a/src/views/patient/patient/PatientChart.vue b/src/views/patient/patient/PatientChart.vue
index 2b54b5c..0ef70bd 100644
--- a/src/views/patient/patient/PatientChart.vue
+++ b/src/views/patient/patient/PatientChart.vue
@@ -906,24 +906,19 @@
     //淇敼/鏂板鎮h��
     submitForm() {
       if (this.amendtag) {
-        alterpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("淇敼鎴愬姛");
-          });
+        console.log(22);
+        this.form.isoperation = 2;
       } else {
-        addpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("娣诲姞鎴愬姛");
-          });
+        this.form.isoperation = 1;
       }
+      alterpatient(this.form)
+        .then((response) => {
+          console.log(response);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("淇濆瓨鎴愬姛");
+        });
       this.reset();
       // this.idds = "";
       this.Labelchange = false;
diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue
index cfaeacb..e17325d 100644
--- a/src/views/patient/patient/outpatient.vue
+++ b/src/views/patient/patient/outpatient.vue
@@ -154,7 +154,7 @@
           </el-col>
           <!-- <el-col :span="1.5"> </el-col> -->
         </el-row>
-        
+
         <el-table
           v-loading="loading"
           :data="userList"
@@ -631,7 +631,6 @@
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-
       },
       // 琛ㄥ崟鏍¢獙
       rules: {
@@ -796,24 +795,19 @@
     //淇敼/鏂板鎮h��
     submitForm() {
       if (this.amendtag) {
-        alterpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("淇敼鎴愬姛");
-          });
+        console.log(22);
+        this.form.isoperation = 2;
       } else {
-        addpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("娣诲姞鎴愬姛");
-          });
+        this.form.isoperation = 1;
       }
+      alterpatient(this.form)
+        .then((response) => {
+          console.log(response);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("淇濆瓨鎴愬姛");
+        });
       this.reset();
       // this.idds = "";
       this.Labelchange = false;
diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index 2f08635..b849b6e 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -145,7 +145,7 @@
             <el-col :span="24"
               ><div class="xinz-inf">
                 <el-tag
-                  :key="tag.tagid"
+                  :key="tag.tagname"
                   type="success"
                   v-for="tag in dynamicTags"
                   closable
@@ -155,16 +155,13 @@
                   {{ tag.tagname }}
                 </el-tag>
                 <el-select
-                  v-model="inputValue"
                   v-if="inputVisible"
+                  v-model="inputValue"
                   @change="handleInputConfirm"
-                  :remote-method="remoteMethod"
-                  remote
                   filterable
                   allow-create
                   default-first-option
                   placeholder="璇烽�夋嫨/鏌ヨ"
-                  :loading="loading"
                 >
                   <el-option
                     v-for="item in options"
@@ -950,6 +947,7 @@
       };
       listtag(tagqueryParams).then((response) => {
         this.options = response.rows;
+        console.log(this.options, "鏍囩");
       });
     },
     remoteMethod(value) {
@@ -975,9 +973,7 @@
 
     showInput() {
       this.inputVisible = true;
-      // this.$nextTick((_) => {
-      //   this.$refs.saveTagInput.$refs.input.focus();
-      // });
+      console.log("灞曠ず");
     },
 
     handleInputConfirm() {
@@ -1006,6 +1002,7 @@
           console.log(this.dynamicTags);
         });
       }
+      console.log("鍏充簡");
       this.inputVisible = false;
       this.inputValue = "";
     },

--
Gitblit v1.9.3