修改心电图系数

This commit is contained in:
lxd 2025-01-17 11:21:44 +08:00
parent 7e936d62ef
commit 346aa6bd69
2 changed files with 5 additions and 5 deletions

View File

@ -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
}

View File

@ -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)
}