From 7d2bea91c083fcb79e0d549433f950bbdc32a946 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Fri, 21 Feb 2025 19:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E7=BB=9F=E8=AE=A1=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-前台/src/views/indexCom/JM.vue | 17 ++++++++------- acupuncture-前台/src/views/indexCom/XGZL.vue | 21 +++++++++++-------- .../src/views/indexCom/follow.vue | 2 +- .../src/views/indexCom/patient.vue | 6 ++++-- 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/acupuncture-前台/src/views/indexCom/JM.vue b/acupuncture-前台/src/views/indexCom/JM.vue index b4a6127e3..c849b2643 100644 --- a/acupuncture-前台/src/views/indexCom/JM.vue +++ b/acupuncture-前台/src/views/indexCom/JM.vue @@ -187,23 +187,23 @@ this.handlePhysique(); // 体态 this.postureValue = [{ - value: ttfb.score1, + value: ttfb?.score1 || 0, name: "1分", }, { - value: ttfb.score2, + value: ttfb?.score2 || 0, name: "2分", }, { - value: ttfb.score3, + value: ttfb?.score3 || 0, name: "3分", }, { - value: ttfb.score4, + value: ttfb?.score4 || 0, name: "4分", }, { - value: ttfb.score5, + value: ttfb?.score5 || 0, name: "5分", }, ]; @@ -220,9 +220,12 @@ this.anxietyValue.push(jlfb[key]); } this.handleAnxiety(); + this.loading = false; }); - this.loading = false; - } catch (e) {} + + } catch (e) { + console.log('诊疗信息', e) + } }, // 病种(主要诊断) handleDiagnose() { diff --git a/acupuncture-前台/src/views/indexCom/XGZL.vue b/acupuncture-前台/src/views/indexCom/XGZL.vue index 8b2059465..0dff1688c 100644 --- a/acupuncture-前台/src/views/indexCom/XGZL.vue +++ b/acupuncture-前台/src/views/indexCom/XGZL.vue @@ -199,11 +199,11 @@ } = res.data; //治疗 this.healTypeValue = [{ - value: zllxtj.zxyjh, + value: zllxtj?.zxyjh || 0, name: "中西医结合", }, { - value: zllxtj.czy, + value: zllxtj?.czy || 0, name: "纯中医", }, ] @@ -218,32 +218,35 @@ // index ++ // } // this.handleDiseaseMethod() - + // 治疗效果 this.effectValue = [{ name: '治愈', - value: zlxwfb.zy + value: zlxwfb?.zy || 0 }, { name: '显效', - value: zlxwfb.xx + value: zlxwfb?.xx || 0 }, { name: '好转', - value: zlxwfb.hz + value: zlxwfb?.hz || 0 }, { name: '无效', - value: zlxwfb.wx + value: zlxwfb?.wx || 0 } ] this.handleEffect() // 治疗费用 this.costValue = [zlfy.score1, zlfy.score2, zlfy.score3, zlfy.score4, zlfy.score5] this.handleCost() + this.loading = false; }); - this.loading = false; - } catch (e) {} + + } catch (e) { + console.log('治疗类型', e) + } }, // 治疗类型 handleHealType() { diff --git a/acupuncture-前台/src/views/indexCom/follow.vue b/acupuncture-前台/src/views/indexCom/follow.vue index e663919b5..74a02591a 100644 --- a/acupuncture-前台/src/views/indexCom/follow.vue +++ b/acupuncture-前台/src/views/indexCom/follow.vue @@ -87,7 +87,7 @@ }); this.loading = false; } catch (e) { - + console.log('随访', e) } }, diff --git a/acupuncture-前台/src/views/indexCom/patient.vue b/acupuncture-前台/src/views/indexCom/patient.vue index e04de3573..6be1101a0 100644 --- a/acupuncture-前台/src/views/indexCom/patient.vue +++ b/acupuncture-前台/src/views/indexCom/patient.vue @@ -177,7 +177,9 @@ this.handleDisease(); //病种分布 }); this.loading = false; - } catch (e) {} + } catch (e) { + console.log('患者统计', e) + } }, // 患者信息 @@ -322,4 +324,4 @@ margin-right: 10px; border-radius: 8px; } - \ No newline at end of file +