From a46f2000f85c91b0e118a0af1bc6022a16feadcb Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 04 七月 2024 17:15:57 +0800 Subject: [PATCH] 测试完成 --- src/api/AiCentre/publicity.js | 5 ++--- src/views/patient/patient/profile/index.vue | 13 ++++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/api/AiCentre/publicity.js b/src/api/AiCentre/publicity.js index a44da04..4a8cbbf 100644 --- a/src/api/AiCentre/publicity.js +++ b/src/api/AiCentre/publicity.js @@ -27,7 +27,7 @@ // 鏂板鎴栦慨鏀瑰鏁欐ā鐗� export function compilelibrary(data) { return request({ - url: "/smartor/library/saveOrUpdateScript", + url: "/smartor/library/saveOrUpdateHeLibrary", method: "post", data: data, }); @@ -63,5 +63,4 @@ data: data, }); } - - \ No newline at end of file + 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