From 96915c592b7cac1ff6a7ee1312c1083bd0c3d256 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 18 七月 2024 17:42:45 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/profile/index.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index b849b6e..0b947b4 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -760,6 +760,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");
@@ -775,9 +778,6 @@
this.xueyangechartsInit();
this.twechartsInit();
});
- this.id = this.$route.query.id;
- this.getuserinfo();
- this.gettabList();
},
methods: {
@@ -805,10 +805,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();
@@ -824,7 +827,7 @@
this.$modal.msgError("鍩虹淇℃伅淇敼澶辫触");
}
});
- // 鐥呭彶鏄�
+ // 鐥呭彶
this.medicalhistory();
},
// 鐥呭彶
--
Gitblit v1.9.3