From 4e32f1188e9d0cafd3511994d2d13617ca6e08f9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 15 十二月 2023 11:15:00 +0800
Subject: [PATCH] 完成
---
src/views/patient/patient/profile/index.vue | 94 +++++++++++++++++++++++++++++++++++------------
1 files changed, 70 insertions(+), 24 deletions(-)
diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index 596664c..cba7f89 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -95,7 +95,10 @@
<!-- 鍋ュ悍妗f妯″潡 -->
<div class="information-content" v-if="activeName == 'health'">
<div class="top-message">
- <div class="headline">鍩虹淇℃伅</div>
+ <div class="headlines">
+ <div>鍩虹淇℃伅</div>
+ <el-button type="primary" @click="savefile">淇濆瓨鎮h�呮。妗�</el-button>
+ </div>
<div class="detailed">
<el-row :gutter="20">
<el-col :span="12"
@@ -145,13 +148,15 @@
v-if="inputVisible"
@change="handleInputConfirm"
filterable
+ allow-create
+ default-first-option
placeholder="璇烽�夋嫨"
>
<el-option
v-for="item in options"
- :key="item.label"
- :label="item.label"
- :value="item.label"
+ :key="item.tagname"
+ :label="item.tagname"
+ :value="item.tagname"
>
</el-option>
</el-select>
@@ -231,7 +236,7 @@
</el-row>
<el-row>
<el-col :span="8">
- <el-form-item label="鍚哥儫鎯呭喌" prop="idtype">
+ <el-form-item label="鍚哥儫鎯呭喌" prop="idcardtype">
<el-radio-group v-model="form.radio">
<el-radio :label="1">鏈�</el-radio>
<el-radio :label="2">鏃�</el-radio>
@@ -239,7 +244,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
- <el-form-item label="楗厭鎯呭喌" prop="idno">
+ <el-form-item label="楗厭鎯呭喌" prop="idcardno">
<el-radio-group v-model="form.radios">
<el-radio :label="1">鏈�</el-radio>
<el-radio :label="2">鏃�</el-radio>
@@ -247,7 +252,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
- <el-form-item label="杩愬姩鎯呭喌" prop="idno">
+ <el-form-item label="杩愬姩鎯呭喌" prop="idcardno">
<el-radio-group v-model="form.radiosa">
<el-radio :label="1">鏈�</el-radio>
<el-radio :label="2">鏃�</el-radio>
@@ -257,19 +262,19 @@
</el-row>
<el-row>
<el-col :span="12">
- <el-form-item label="楗鎯呭喌" prop="idno">
+ <el-form-item label="楗鎯呭喌" prop="idcardno">
<el-radio-group v-model="form.radiosa">
- <el-radio :label="1">澶氬害楗</el-radio>
+ <el-radio :label="1">杩囧害楗</el-radio>
<el-radio :label="2">姝e父楗</el-radio>
- <el-radio :label="2">椋熸涓嶆尟</el-radio>
+ <el-radio :label="3">椋熸涓嶆尟</el-radio>
</el-radio-group>
</el-form-item> </el-col
><el-col :span="12">
- <el-form-item label="蹇冪悊鎯呭喌" prop="idno">
+ <el-form-item label="蹇冪悊鎯呭喌" prop="idcardno">
<el-radio-group v-model="form.radiosa">
<el-radio :label="1">蹇冩儏鎰夋偊</el-radio>
<el-radio :label="2">杞诲井鐒﹁檻</el-radio>
- <el-radio :label="2">鎶戦儊</el-radio>
+ <el-radio :label="3">鎶戦儊</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
@@ -280,7 +285,7 @@
<!-- 鑱旂郴鐢佃瘽 -->
<div class="bottom-message">
<div class="headline">
- 鍙风爜缁存姢
+ 鍙风爜缁存姢<span style="margin-right: 60px"> </span>
<el-button type="primary" @click="AddanumberVisible = true"
>+鏂板</el-button
>
@@ -588,16 +593,23 @@
import resetPwd from "./resetPwd";
import * as echarts from "echarts";
import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
-
-import { getUserProfile } from "@/api/system/user";
-import { listJob } from "@/api/monitor/job"; //鑾峰彇鍒楄〃鎺ュ彛寰呭畾
+import { listtag } from "@/api/system/label";
+import {
+ messagelistpatient,
+ addmedicalhistory,
+ getmedicalhistory,
+ editmedicalhistory,
+ deletepatient,
+ Exporterrorpatient,
+ toleadpatient,
+} from "@/api/patient/homepage";
export default {
name: "Profile",
components: { userAvatar, userInfo, resetPwd, SFtable },
data() {
return {
- user: {},
+ userform: {},
roleGroup: {},
postGroup: {},
form: {},
@@ -609,6 +621,7 @@
yynumber: 12,
total: 0, // 鎬绘潯鏁�
activeTab: "userinfo",
+ id: "",
activeName: "health", //涓�绫诲鑸�
sonactiveName: "outpatient", //鍋ュ悍鐩戞祴瀵艰埅
sontwoactiveName: "blood", //鍖荤枟妗f瀵艰埅
@@ -754,18 +767,42 @@
this.xueyangechartsInit();
this.twechartsInit();
});
- this.getList();
+ this.id = this.$route.query.id;
+ this.getuserinfo();
+ this.gettabList();
},
methods() {},
methods: {
- // 鏌ヨ鍒楄〃
+ // 鏌ヨ妗f鍒楄〃淇℃伅
getList() {
this.loading = true;
- listJob(this.queryParams).then((response) => {
- this.jobList = 1;
- this.total = 1;
- this.loading = false;
+ },
+ getuserinfo() {
+ console.log(this.id);
+ const queryParams = {
+ pid: Number(this.id),
+ allhosp: "0",
+ pageNum: 1,
+ };
+ messagelistpatient(queryParams).then((response) => {
+ console.log(response);
+ this.userform = response.rows[0];
+ console.log(this.userform);
+ });
+ },
+ // 淇濆瓨鎮h�呮。妗�
+ savefile() {},
+ /** 鏌ヨ鏍囩鍒楄〃 */
+ gettabList() {
+ const tagqueryParams = {
+ pageNum: 1,
+ pageSize: 1000,
+ tagcategoryid: "0",
+ };
+ listtag(tagqueryParams).then((response) => {
+ console.log(response);
+ this.options = response.rows;
});
},
handleClick(tab, event) {
@@ -1260,7 +1297,7 @@
.personages {
height: 88px;
width: 100%;
- background-color: #2486b9;
+ background-color: #5e86f9;
border-radius: 5px;
padding: 20px;
margin-bottom: 10px;
@@ -1350,6 +1387,15 @@
margin-bottom: 10px;
border-left: 8px solid rgb(65, 161, 190);
}
+ .headlines {
+ font-size: 25px;
+ display: flex;
+ width: 88%;
+ justify-content: space-between;
+ padding-left: 5px;
+ margin-bottom: 10px;
+ border-left: 8px solid rgb(65, 161, 190);
+ }
.bottom-message {
margin-bottom: 25px;
margin-left: 100px;
--
Gitblit v1.9.3