From fbb19ddc79f573577aa043a266c499e3b08a5e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 5 Jan 2024 14:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Physicalexamination.vue | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/pagesC/Physicalexamination/Physicalexamination.vue b/pagesC/Physicalexamination/Physicalexamination.vue index 2fb909e..0c53dff 100644 --- a/pagesC/Physicalexamination/Physicalexamination.vue +++ b/pagesC/Physicalexamination/Physicalexamination.vue @@ -367,21 +367,23 @@ methods: { info() { recordlast(uni.getStorageSync('userinfo').cardNo).then(res => { - res.data.forEach(e => { - e.type == '1' ? this.dataone = e : '' - e.type == '2' ? this.datatwo = e : '' - e.type == '3' ? this.datathree = e : '' - e.type == '4' ? this.datafour = e : '' - e.type == '5' ? this.datafive = e : '' - e.type == '6' ? this.datasix = e : '' - e.type == '7' ? this.dataseven = e : '' - }) - this.datatwo.szy = this.datatwo.val.split('/')[1] - this.datatwo.ssy = this.datatwo.val.split('/')[0] - this.datathree.tc = this.datathree.val.split('/')[0] - this.datathree.tg = this.datathree.val.split('/')[1] - this.datathree.hdl = this.datathree.val.split('/')[2] - this.datathree.ldl = this.datathree.val.split('/')[3] + if (res.data && res.data.length > 0) { + res.data.forEach(e => { + e.type == '1' ? this.dataone = e : '' + e.type == '2' ? this.datatwo = e : '' + e.type == '3' ? this.datathree = e : '' + e.type == '4' ? this.datafour = e : '' + e.type == '5' ? this.datafive = e : '' + e.type == '6' ? this.datasix = e : '' + e.type == '7' ? this.dataseven = e : '' + }) + this.datatwo.szy = this.datatwo.val.split('/')[1] + this.datatwo.ssy = this.datatwo.val.split('/')[0] + this.datathree.tc = this.datathree.val.split('/')[0] + this.datathree.tg = this.datathree.val.split('/')[1] + this.datathree.hdl = this.datathree.val.split('/')[2] + this.datathree.ldl = this.datathree.val.split('/')[3] + } }) }, goaddequipment() {