From cc73ea5320fed8a39e00bfc0fa02810199559122 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 16 七月 2024 15:55:40 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/profile/index.vue | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue index 46768ea..0b947b4 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" @@ -763,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"); @@ -778,9 +778,6 @@ this.xueyangechartsInit(); this.twechartsInit(); }); - this.id = this.$route.query.id; - this.getuserinfo(); - this.gettabList(); }, methods: { @@ -794,7 +791,7 @@ }); }, processElement(element) { - return { ...element, isoperation: 0 }; + return { ...element, isoperation: null }; }, // 鑾峰彇鍩虹淇℃伅 getuserinfo() { @@ -808,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(); @@ -827,7 +827,7 @@ this.$modal.msgError("鍩虹淇℃伅淇敼澶辫触"); } }); - // 鐥呭彶鏄� + // 鐥呭彶 this.medicalhistory(); }, // 鐥呭彶 @@ -950,6 +950,7 @@ }; listtag(tagqueryParams).then((response) => { this.options = response.rows; + console.log(this.options, "鏍囩"); }); }, remoteMethod(value) { @@ -975,9 +976,7 @@ showInput() { this.inputVisible = true; - // this.$nextTick((_) => { - // this.$refs.saveTagInput.$refs.input.focus(); - // }); + console.log("灞曠ず"); }, handleInputConfirm() { @@ -1006,6 +1005,7 @@ console.log(this.dynamicTags); }); } + console.log("鍏充簡"); this.inputVisible = false; this.inputValue = ""; }, -- Gitblit v1.9.3