Browse Source

首页空值校验

newMaster
1747191978@qq.com 4 months ago
parent
commit
6fff2bf185
  1. 2
      acupuncture-前台/src/views/indexCom/JM.vue
  2. 10
      acupuncture-前台/src/views/indexCom/XGZL.vue
  3. 4
      acupuncture-前台/src/views/indexCom/patient.vue

2
acupuncture-前台/src/views/indexCom/JM.vue

@ -174,7 +174,7 @@ export default {
await zlInfo(this.queryParams).then((res) => { await zlInfo(this.queryParams).then((res) => {
const { jlfb, smfb, sort, ttfb, txfb, zytz } = res.data; const { jlfb, smfb, sort, ttfb, txfb, zytz } = res.data;
// //
this.diagnoseValue = sort.sort((a, b) => a.total - b.total); this.diagnoseValue = sort?.sort((a, b) => a.total - b.total);
this.handleDiagnose(); this.handleDiagnose();
// //
this.systemValue = []; this.systemValue = [];

10
acupuncture-前台/src/views/indexCom/XGZL.vue

@ -233,11 +233,11 @@ export default {
this.handleEffect(); this.handleEffect();
// //
this.costValue = [ this.costValue = [
zlfy.score1, zlfy?.score1,
zlfy.score2, zlfy?.score2,
zlfy.score3, zlfy?.score3,
zlfy.score4, zlfy?.score4,
zlfy.score5, zlfy?.score5,
]; ];
this.handleCost(); this.handleCost();
this.loading = false; this.loading = false;

4
acupuncture-前台/src/views/indexCom/patient.vue

@ -171,7 +171,7 @@ export default {
}, },
]; ];
// //
let ageValue = res.data.age; let ageValue = res.data.age || {};
this.ageValue = [ this.ageValue = [
ageValue.num1, ageValue.num1,
ageValue.num2, ageValue.num2,
@ -181,7 +181,7 @@ export default {
ageValue.num6, ageValue.num6,
]; ];
// //
let diseaseValue = res.data.jwbz; let diseaseValue = res.data.jwbz || {};
this.diseaseValue = []; this.diseaseValue = [];
for (let key in diseaseValue) { for (let key in diseaseValue) {
let data = { let data = {

Loading…
Cancel
Save