修改心电图系数
This commit is contained in:
parent
7e936d62ef
commit
346aa6bd69
@ -1144,7 +1144,7 @@ const handleTreeNodeClick = async (data) => {
|
|||||||
|
|
||||||
//诊断模版
|
//诊断模版
|
||||||
async function zdmodle() {
|
async function zdmodle() {
|
||||||
const dd = await ultrasoniccomApi.getreporttemplatelist('', '', '')
|
const dd = await ultrasoniccomApi.getreporttemplatelist(orgid.value, '', '')
|
||||||
treeData.value = dd
|
treeData.value = dd
|
||||||
drawer.value = drawer.value ? false : true
|
drawer.value = drawer.value ? false : true
|
||||||
}
|
}
|
||||||
|
@ -731,7 +731,7 @@ function drawLine1(c_canvas, beatArray, offset, index) {
|
|||||||
// 使用优化的绘制方法
|
// 使用优化的绘制方法
|
||||||
if (beatArray.length > 0) {
|
if (beatArray.length > 0) {
|
||||||
const firstX = 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)
|
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) {
|
for (let i = 0; i < beatArray.length - step; i += step) {
|
||||||
const x = (0 + i / 10) * infoParams.suduratio
|
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 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 cpX = (x + nextX) / 2
|
||||||
const cpY = (y + nextY) / 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 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)
|
ctx.lineTo(lastX, lastY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user