diff --git a/acupuncture-前台/src/views/indexCom/JM.vue b/acupuncture-前台/src/views/indexCom/JM.vue index c849b264..12af7846 100644 --- a/acupuncture-前台/src/views/indexCom/JM.vue +++ b/acupuncture-前台/src/views/indexCom/JM.vue @@ -169,7 +169,7 @@ for (let key in txfb) { let data = { name: this.systemObj[key], - value: txfb[key], + value: txfb[key] || 0, }; this.systemValue.push(data); } @@ -180,7 +180,7 @@ for (let key in zytz) { let data = { name: this.physiqueObj[key], - value: zytz[key], + value: zytz[key] || 0, }; this.physiqueValue.push(data); } diff --git a/acupuncture-前台/src/views/indexCom/patient.vue b/acupuncture-前台/src/views/indexCom/patient.vue index 6be1101a..d9dae15f 100644 --- a/acupuncture-前台/src/views/indexCom/patient.vue +++ b/acupuncture-前台/src/views/indexCom/patient.vue @@ -167,7 +167,7 @@ for (let key in diseaseValue) { let data = { name: this.jwbzObj[key], - value: diseaseValue[key] + value: diseaseValue[key] || 0 } this.diseaseValue.push(data) }