儿科医生端

This commit is contained in:
@zuopngfei 2025-07-04 16:27:39 +08:00
parent 40c46d5dcc
commit 9da15d0c7d
2 changed files with 373 additions and 373 deletions

File diff suppressed because it is too large Load Diff

View File

@ -164,7 +164,7 @@ Page({
const standardLower = totalList.map(item => item[0]); const standardLower = totalList.map(item => item[0]);
const standardUpper = totalList.map(item => item[1]); 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'); const chartComp = this.selectComponent('#mychart-dom-height');
if (chartComp) { if (chartComp) {
@ -191,6 +191,16 @@ Page({
smooth: true, smooth: true,
data: this.data.heightData data: this.data.heightData
}, },
{
name: '标准上界',
type: 'line',
symbol: 'none',
data: standardUpper,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { opacity: 0 },
tooltip: { show: true }
},
{ {
name: '标准下界', name: '标准下界',
type: 'line', type: 'line',
@ -198,18 +208,8 @@ Page({
data: standardLower, data: standardLower,
lineStyle: { opacity: 0 }, lineStyle: { opacity: 0 },
stack: '标准范围', 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)' }, areaStyle: { color: 'rgba(135,206,250,0.3)' },
tooltip: { show: false } tooltip: { show: true }
} }
] ]
}); });
@ -233,7 +233,7 @@ Page({
}) })
const standardLower = totalList.map(item => item[0]); const standardLower = totalList.map(item => item[0]);
const standardUpper = totalList.map(item => item[1]); const standardUpper = totalList.map(item => item[1]);
const standardRange = totalList.map((up, i) => up - standardLower[i]); // const standardRange = totalList.map((up, i) => up - standardLower[i]);
const chartComp = this.selectComponent('#mychart-dom-weight'); const chartComp = this.selectComponent('#mychart-dom-weight');
if (chartComp) { if (chartComp) {
@ -248,7 +248,7 @@ Page({
trigger: 'axis', trigger: 'axis',
formatter: function (params) { formatter: function (params) {
const param = params[0]; 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 }, xAxis: { type: 'category', boundaryGap: false, data: this.data.xAxis },
@ -260,6 +260,16 @@ Page({
smooth: true, smooth: true,
data: this.data.weightData data: this.data.weightData
}, },
{
name: '标准上界',
type: 'line',
symbol: 'none',
data: standardUpper,
lineStyle: { opacity: 0 },
stack: '标准范围',
areaStyle: { opacity: 0 },
tooltip: { show: true }
},
{ {
name: '标准下界', name: '标准下界',
type: 'line', type: 'line',
@ -267,18 +277,8 @@ Page({
data: standardLower, data: standardLower,
lineStyle: { opacity: 0 }, lineStyle: { opacity: 0 },
stack: '标准范围', 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)' }, areaStyle: { color: 'rgba(135,206,250,0.3)' },
tooltip: { show: false } tooltip: { show: true }
} }
] ]
}); });