From a3077db20a4b929da4d47f70d384da3a706f17a5 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Mon, 3 Jun 2024 14:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=BC=E5=85=89=E6=8A=A5=E5=91=8A=E5=8D=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../360View/commonForm/optometryForm.vue | 56 ++++++++++++------- .../360View/commonForm/threeVision.vue | 5 +- 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/src/components/360View/commonForm/optometryForm.vue b/src/components/360View/commonForm/optometryForm.vue index be63a1a..cff713d 100644 --- a/src/components/360View/commonForm/optometryForm.vue +++ b/src/components/360View/commonForm/optometryForm.vue @@ -100,7 +100,7 @@
- + {{ item.name }}
-
+
其他:
- + { + if (this.dataForm.ygjcDsOd || + this.dataForm.ygjcDcOd || + this.dataForm.ygjcAOd || + this.dataForm.ygjcVaOd || + this.dataForm.ygjcAddOd || + this.dataForm.ygjcDsOs || + this.dataForm.ygjcDcOs || + this.dataForm.ygjcAOs || + this.dataForm.ygjcVaOs || + this.dataForm.ygjcAddOs) { + this.$confirm('是否确定更新数据?').then(() => { + this.setYgData(msg) + }).catch() + } else { + this.setYgData(msg) + } self.resetHeart() } } catch (e) { console.log(e) } }, + setYgData(msg) { + const message = JSON.parse(msg.data) + this.dataForm.ygjcDsOd = message.RData.DS + this.dataForm.ygjcDcOd = message.RData.DC + this.dataForm.ygjcAOd = message.RData.AXIS + this.dataForm.ygjcVaOd = message.RData.VA + this.dataForm.ygjcAddOd = message.RData.ADD + this.dataForm.ygjcDsOs = message.LData.DS + this.dataForm.ygjcDcOs = message.LData.DC + this.dataForm.ygjcAOs = message.LData.AXIS + this.dataForm.ygjcVaOs = message.LData.VA + this.dataForm.ygjcAddOs = message.LData.ADD + }, // 处理字符串 handleStr(string, array) { if (string) { diff --git a/src/components/360View/commonForm/threeVision.vue b/src/components/360View/commonForm/threeVision.vue index 09ad6c8..015e838 100644 --- a/src/components/360View/commonForm/threeVision.vue +++ b/src/components/360View/commonForm/threeVision.vue @@ -960,10 +960,13 @@ export default { { name: '50"', id: '9' + }, { + name: '40"', + id: '10' }, { name: '无', - id: '10' + id: '11' } ], tnoList: [