Merge branch 'long-20260514'
This commit is contained in:
@@ -683,7 +683,7 @@ const bloodTrendOption = computed(() => ({
|
|||||||
name: '空腹血糖',
|
name: '空腹血糖',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
smooth: true,
|
smooth: true,
|
||||||
connectNulls: false,
|
connectNulls: true,
|
||||||
data: bloodTrendSeries.value.fasting,
|
data: bloodTrendSeries.value.fasting,
|
||||||
symbolSize: 7,
|
symbolSize: 7,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
@@ -698,7 +698,7 @@ const bloodTrendOption = computed(() => ({
|
|||||||
name: '餐后血糖',
|
name: '餐后血糖',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
smooth: true,
|
smooth: true,
|
||||||
connectNulls: false,
|
connectNulls: true,
|
||||||
data: bloodTrendSeries.value.postprandial,
|
data: bloodTrendSeries.value.postprandial,
|
||||||
symbolSize: 7,
|
symbolSize: 7,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
@@ -719,7 +719,8 @@ function formatColumnDate(date: string) {
|
|||||||
function parseTrendNumber(value: unknown): number | null {
|
function parseTrendNumber(value: unknown): number | null {
|
||||||
if (value === '' || value == null) return null
|
if (value === '' || value == null) return null
|
||||||
const parsed = Number(value)
|
const parsed = Number(value)
|
||||||
return Number.isFinite(parsed) ? parsed : null
|
if (!Number.isFinite(parsed) || parsed === 0) return null
|
||||||
|
return parsed
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCell(metric: string, date: string): { value: string; isHigh: boolean; hasRecord: boolean } {
|
function getCell(metric: string, date: string): { value: string; isHigh: boolean; hasRecord: boolean } {
|
||||||
|
|||||||
Reference in New Issue
Block a user