儿科患者端

This commit is contained in:
@zuopngfei 2025-07-04 16:27:49 +08:00
parent 36f4d83ac3
commit fc7f361661
2 changed files with 367 additions and 367 deletions

File diff suppressed because it is too large Load Diff

View File

@ -229,7 +229,7 @@ Page({
})
const standardLower = totalList.map(item => item[0]);
const standardUpper = totalList.map(item => item[1]);
const standardRange = standardUpper.map((up, i) => up - standardLower[i]);
// const standardRange = standardUpper.map((up, i) => up - standardLower[i]);
const chartComp = this.selectComponent('#mychart-dom-height');
if (chartComp) {
@ -256,6 +256,16 @@ Page({
smooth: true,
data: this.data.heightData
},
{
name: '标准上界',
type: 'line',
symbol: 'none',
data: standardUpper,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { opacity: 0 },
tooltip: { show: true }
},
{
name: '标准下界',
type: 'line',
@ -263,18 +273,8 @@ Page({
data: standardLower,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { opacity: 0 },
tooltip: { show: false }
},
{
name: '标准范围',
type: 'line',
symbol: 'none',
data: standardRange,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { color: 'rgba(135,206,250,0.3)' },
tooltip: { show: false }
tooltip: { show: true }
}
]
});
@ -314,7 +314,7 @@ Page({
trigger: 'axis',
formatter: function (params) {
const param = params[0];
return `${param.axisValue}\n${param.seriesName}: ${param.value} cm`;
return `${param.axisValue}\n${param.seriesName}: ${param.value} kg`;
}
},
xAxis: { type: 'category', boundaryGap: false, data: this.data.xAxis },
@ -327,24 +327,24 @@ Page({
data: this.data.weightData
},
{
name: '标准界',
name: '标准界',
type: 'line',
symbol: 'none',
data: standardLower,
data: standardUpper,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { opacity: 0 },
tooltip: { show: false }
tooltip: { show: true }
},
{
name: '标准范围',
name: '标准下界',
type: 'line',
symbol: 'none',
data: standardRange,
data: standardUpper,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { color: 'rgba(135,206,250,0.3)' },
tooltip: { show: false }
tooltip: { show: true }
}
]
});