From ad0ecacbc73d16c9b95b79ac3c82868cbff33e44 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 05 八月 2024 16:17:21 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/profile/index.vue |   51 +++++++++++++++++++++++++++++----------------------
 1 files changed, 29 insertions(+), 22 deletions(-)

diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index 46768ea..9427432 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"
@@ -436,15 +433,19 @@
           </div>
           <el-divider></el-divider>
           <div style="margin-top: 10px">
-            闅忚鐘舵�侊細宸茬粓姝�<span style="color: #2775b6"
+            {{ item.name }}鐘舵�侊細宸茬粓姝�<span style="color: #2775b6"
               >锛堢粓姝㈠師鍥狅細鎮h�呯棅鎰堝洖璁跨粨鏉燂紝缁堟鏃堕棿锛�2023-12-18 12:00锛�</span
             >
           </div>
           <div style="margin-top: 10px">
-            闅忚鍙戦�佹椂闂达細<span style="color: #2775b6">2023-11-23 12:00</span>
+            {{ item.name }}鍙戦�佹椂闂达細<span style="color: #2775b6"
+              >2023-11-23 12:00</span
+            >
           </div>
           <div style="margin-top: 10px">
-            闅忚瀹屾垚鏃堕棿锛�<span style="color: #2775b6">2023-12-18 12:00</span>
+            {{ item.name }}瀹屾垚鏃堕棿锛�<span style="color: #2775b6"
+              >2023-12-18 12:00</span
+            >
           </div>
           <div style="margin-top: 10px">
             鐤肩棝绋嬪害锛�<span style="color: #2775b6">涓害</span>
@@ -457,16 +458,17 @@
               border-left: 4px solid rgb(65, 161, 190);
             "
           >
-            浜哄伐闅忚璁板綍
+            浜哄伐{{ item.name }}璁板綍
           </div>
           <div style="margin-top: 10px">
             <el-row :gutter="20">
               <el-col :span="6"
-                >闅忚鏃ユ湡锛�
+                >{{ item.name }}鏃ユ湡锛�
                 <span style="color: #2775b6">2023-11-22 11:22</span></el-col
               >
               <el-col :span="6"
-                >闅忚浜猴細 <span style="color: #2775b6">鍚村皬榫�</span></el-col
+                >{{ item.name }}浜猴細
+                <span style="color: #2775b6">鍚村皬榫�</span></el-col
               >
               <el-col :span="6"
                 >鎮h�呴厤鍚堝害锛� <span style="color: #2775b6">楂�</span></el-col
@@ -474,10 +476,12 @@
             </el-row>
           </div>
           <div style="margin-top: 10px">
-            闅忚缁撴灉锛� <span style="color: #2775b6">鎮h�呯棅鎰堬紝韬綋鍊嶆</span>
+            {{ item.name }}缁撴灉锛�
+            <span style="color: #2775b6">鎮h�呯棅鎰堬紝韬綋鍊嶆</span>
           </div>
           <div style="margin-top: 10px">
-            闅忚澶囨敞锛� <span style="color: #2775b6">鎻愰啋娉ㄦ剰楗鍋ュ悍</span>
+            {{ item.name }}澶囨敞锛�
+            <span style="color: #2775b6">鎻愰啋娉ㄦ剰楗鍋ュ悍</span>
           </div>
         </el-card>
       </div>
@@ -763,6 +767,9 @@
     };
   },
   created() {
+    this.id = this.$route.query.id;
+    this.getuserinfo();
+    this.gettabList();
     this.$nextTick(function () {
       this.echartdom = document.getElementById("xyeCharts");
       this.xtechartdom = document.getElementById("xteCharts");
@@ -778,9 +785,6 @@
       this.xueyangechartsInit();
       this.twechartsInit();
     });
-    this.id = this.$route.query.id;
-    this.getuserinfo();
-    this.gettabList();
   },
 
   methods: {
@@ -794,7 +798,7 @@
       });
     },
     processElement(element) {
-      return { ...element, isoperation: 0 };
+      return { ...element, isoperation: null };
     },
     // 鑾峰彇鍩虹淇℃伅
     getuserinfo() {
@@ -808,10 +812,13 @@
         this.userform = response.rows[0];
         // this.dynamicTags = response.rows[0].tagList;
         this.dynamicTags = response.rows[0].tagList.map(this.processElement);
+        console.log(this.dynamicTags);
       });
       // 鐥呭彶淇℃伅
       getmedicalhistory({ pid: this.id }).then((res) => {
-        this.form = res.rows[0];
+        if (res.code == 200 && res.rows[0]) {
+          this.form = res.rows[0];
+        }
       });
       // 鑱旂郴淇℃伅
       this.getcontactlist();
@@ -827,7 +834,7 @@
           this.$modal.msgError("鍩虹淇℃伅淇敼澶辫触");
         }
       });
-      // 鐥呭彶鏄�
+      // 鐥呭彶
       this.medicalhistory();
     },
     // 鐥呭彶
@@ -950,6 +957,7 @@
       };
       listtag(tagqueryParams).then((response) => {
         this.options = response.rows;
+        console.log(this.options, "鏍囩");
       });
     },
     remoteMethod(value) {
@@ -975,9 +983,7 @@
 
     showInput() {
       this.inputVisible = true;
-      // this.$nextTick((_) => {
-      //   this.$refs.saveTagInput.$refs.input.focus();
-      // });
+      console.log("灞曠ず");
     },
 
     handleInputConfirm() {
@@ -1006,6 +1012,7 @@
           console.log(this.dynamicTags);
         });
       }
+      console.log("鍏充簡");
       this.inputVisible = false;
       this.inputValue = "";
     },

--
Gitblit v1.9.3