From 346aa6bd690856f14b9d77fbf064ed7eb78270eb Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Fri, 17 Jan 2025 11:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=83=E7=94=B5=E5=9B=BE?= =?UTF-8?q?=E7=B3=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ECG/ECGForm.vue | 2 +- src/views/ECG/ECGhtml.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue index bec0e6d9..7ffaa105 100644 --- a/src/views/ECG/ECGForm.vue +++ b/src/views/ECG/ECGForm.vue @@ -1144,7 +1144,7 @@ const handleTreeNodeClick = async (data) => { //诊断模版 async function zdmodle() { - const dd = await ultrasoniccomApi.getreporttemplatelist('', '', '') + const dd = await ultrasoniccomApi.getreporttemplatelist(orgid.value, '', '') treeData.value = dd drawer.value = drawer.value ? false : true } diff --git a/src/views/ECG/ECGhtml.vue b/src/views/ECG/ECGhtml.vue index 51972e56..114140ce 100644 --- a/src/views/ECG/ECGhtml.vue +++ b/src/views/ECG/ECGhtml.vue @@ -731,7 +731,7 @@ function drawLine1(c_canvas, beatArray, offset, index) { // 使用优化的绘制方法 if (beatArray.length > 0) { const firstX = 0 - const firstY = (heightoff.value-50) - beatArray[0] * infoParams.lineratio + offset + const firstY = (heightoff.value-50) - beatArray[0] * infoParams.lineratio*6.5 + offset ctx.moveTo(firstX, firstY) // 使用步进方式减少绘制点数 @@ -739,11 +739,11 @@ function drawLine1(c_canvas, beatArray, offset, index) { for (let i = 0; i < beatArray.length - step; i += step) { const x = (0 + i / 10) * infoParams.suduratio - const y = (heightoff.value-50) - beatArray[i] * infoParams.lineratio + offset + const y = (heightoff.value-50) - beatArray[i] * infoParams.lineratio*6.5 + offset // 使用二次贝塞尔曲线来平滑线条 const nextX = (0 + (i + step) / 10) * infoParams.suduratio - const nextY = (heightoff.value-50) - beatArray[i + step] * infoParams.lineratio + offset + const nextY = (heightoff.value-50) - beatArray[i + step] * infoParams.lineratio*6.5 + offset const cpX = (x + nextX) / 2 const cpY = (y + nextY) / 2 @@ -753,7 +753,7 @@ function drawLine1(c_canvas, beatArray, offset, index) { // 绘制最后一个点 const lastX = (0 + (beatArray.length - 1) / 10) * infoParams.suduratio - const lastY = (heightoff.value-50) - beatArray[beatArray.length - 1] * infoParams.lineratio + offset + const lastY = (heightoff.value-50) - beatArray[beatArray.length - 1] * infoParams.lineratio*6.5 + offset ctx.lineTo(lastX, lastY) }