优化显示样式
This commit is contained in:
1 parent
4dfc70ecf1
commit
65c4642444
6 files changed
+673
-76
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
import { useCareStore } from '../stores/careStore'
|
import { useCareStore } from '../stores/careStore'
|
||||||
import BabySettingsTab from '../components/settings/BabySettingsTab.vue'
|
import BabySettingsTab from '../components/settings/BabySettingsTab.vue'
|
||||||
import FamilySettingsTab from '../components/settings/FamilySettingsTab.vue'
|
import FamilySettingsTab from '../components/settings/FamilySettingsTab.vue'
|
||||||
@@ -9,10 +9,6 @@ import ActionSettingsTab from '../components/settings/ActionSettingsTab.vue'
|
|||||||
const store = useCareStore()
|
const store = useCareStore()
|
||||||
const activeTab = ref('family')
|
const activeTab = ref('family')
|
||||||
|
|
||||||
const currentBabyLabel = computed(() =>
|
|
||||||
store.baby ? `${store.baby.name} · ${store.baby.ageText}` : '未选择宝宝'
|
|
||||||
)
|
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await store.load()
|
await store.load()
|
||||||
})
|
})
|
||||||
@@ -21,9 +17,7 @@ onMounted(async () => {
|
|||||||
<template>
|
<template>
|
||||||
<section class="page">
|
<section class="page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<p class="eyebrow">宝宝与家庭</p>
|
<h1>家庭</h1>
|
||||||
<h1>家庭照护管理</h1>
|
|
||||||
<p>{{ currentBabyLabel }}</p>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<van-tabs v-model:active="activeTab" shrink animated swipeable>
|
<van-tabs v-model:active="activeTab" shrink animated swipeable>
|
||||||
|
|||||||
@@ -236,8 +236,7 @@ const rangeLabel = computed(() => {
|
|||||||
<section class="page stats-page">
|
<section class="page stats-page">
|
||||||
<header class="stats-header">
|
<header class="stats-header">
|
||||||
<div>
|
<div>
|
||||||
<p class="eyebrow">照护统计</p>
|
<h1>统计</h1>
|
||||||
<h1>这几天的照护节奏</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<span class="stats-updated">{{ rangeLabel }} · {{ latestRecordTime }}</span>
|
<span class="stats-updated">{{ rangeLabel }} · {{ latestRecordTime }}</span>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import {
|
|||||||
formatMinutes,
|
formatMinutes,
|
||||||
recordLabel,
|
recordLabel,
|
||||||
getFeedingSplitInfo,
|
getFeedingSplitInfo,
|
||||||
formatRecordTimeRange,
|
|
||||||
formatCleanNote,
|
formatCleanNote,
|
||||||
formatDate,
|
formatDate,
|
||||||
getFriendlyDayLabel
|
getFriendlyDayLabel,
|
||||||
|
formatTime
|
||||||
} from '../utils/format'
|
} from '../utils/format'
|
||||||
import type { CareRecord } from '../types/domain'
|
import type { CareRecord } from '../types/domain'
|
||||||
import TimelineManualModal from '../components/timeline/TimelineManualModal.vue'
|
import TimelineManualModal from '../components/timeline/TimelineManualModal.vue'
|
||||||
@@ -21,7 +21,11 @@ const store = useCareStore()
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const records = ref<CareRecord[]>([])
|
const records = ref<CareRecord[]>([])
|
||||||
const filterDate = ref<string>('')
|
const filterDate = ref<string>('')
|
||||||
|
type BehaviorFilter = 'feeding' | 'sleep' | 'pee' | 'poop'
|
||||||
|
const behaviorFilters = ref<BehaviorFilter[]>([])
|
||||||
const sortOrder = ref<'desc' | 'asc'>('desc')
|
const sortOrder = ref<'desc' | 'asc'>('desc')
|
||||||
|
const manageMode = ref(false)
|
||||||
|
const selectedRecordIds = ref<string[]>([])
|
||||||
|
|
||||||
// 补录弹窗控制
|
// 补录弹窗控制
|
||||||
const showManualModal = ref(false)
|
const showManualModal = ref(false)
|
||||||
@@ -71,6 +75,30 @@ function clearFilter() {
|
|||||||
filterDate.value = ''
|
filterDate.value = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleBehaviorFilter(type: BehaviorFilter) {
|
||||||
|
behaviorFilters.value = behaviorFilters.value.includes(type)
|
||||||
|
? behaviorFilters.value.filter(item => item !== type)
|
||||||
|
: [...behaviorFilters.value, type]
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearAllFilters() {
|
||||||
|
filterDate.value = ''
|
||||||
|
behaviorFilters.value = []
|
||||||
|
}
|
||||||
|
|
||||||
|
function matchesBehaviorFilter(record: CareRecord) {
|
||||||
|
if (!behaviorFilters.value.length) return true
|
||||||
|
return behaviorFilters.value.some(type => {
|
||||||
|
if (type === 'feeding') return record.recordType === 'feeding'
|
||||||
|
if (type === 'sleep') return record.recordType === 'sleep'
|
||||||
|
if (type === 'pee') return record.recordType === 'excretion' && record.excretionType === 'pee'
|
||||||
|
if (type === 'poop') return record.recordType === 'excretion' && record.excretionType === 'poop'
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const filteredRecords = computed(() => records.value.filter(matchesBehaviorFilter))
|
||||||
|
|
||||||
function toggleSortOrder() {
|
function toggleSortOrder() {
|
||||||
sortOrder.value = sortOrder.value === 'desc' ? 'asc' : 'desc'
|
sortOrder.value = sortOrder.value === 'desc' ? 'asc' : 'desc'
|
||||||
}
|
}
|
||||||
@@ -85,18 +113,68 @@ function openEditModal(record: CareRecord) {
|
|||||||
showEditModal.value = true
|
showEditModal.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function recordTimeHint(record: CareRecord): string {
|
||||||
|
const hasEndTime = Boolean(record.endTime)
|
||||||
|
const hasDuration = Boolean(record.durationMinutes && record.durationMinutes > 0)
|
||||||
|
if (!hasEndTime && !hasDuration) {
|
||||||
|
return '可补结束时间'
|
||||||
|
}
|
||||||
|
if (!hasEndTime) {
|
||||||
|
return '缺结束时间'
|
||||||
|
}
|
||||||
|
if (hasEndTime && !hasDuration) {
|
||||||
|
return '缺持续时长'
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
function recordTimeHintLevel(record: CareRecord): 'soft' | 'warning' {
|
||||||
|
return record.endTime || record.durationMinutes ? 'warning' : 'soft'
|
||||||
|
}
|
||||||
|
|
||||||
|
function recordDetailLine(record: CareRecord): string {
|
||||||
|
const parts: string[] = []
|
||||||
|
if (getFeedingSplitInfo(record)) {
|
||||||
|
const split = getFeedingSplitInfo(record)
|
||||||
|
if (split?.leftMinutes) parts.push(`左侧 ${split.leftMinutes} 分钟`)
|
||||||
|
if (split?.rightMinutes) parts.push(`右侧 ${split.rightMinutes} 分钟`)
|
||||||
|
}
|
||||||
|
const note = formatCleanNote(record.note || record.remark)
|
||||||
|
if (note) parts.push(note)
|
||||||
|
return parts.join(',')
|
||||||
|
}
|
||||||
|
|
||||||
|
function recordSubLine(record: CareRecord): string {
|
||||||
|
return recordDetailLine(record)
|
||||||
|
}
|
||||||
|
|
||||||
async function handleRecordChanged() {
|
async function handleRecordChanged() {
|
||||||
await loadData()
|
await loadData()
|
||||||
await store.refreshSummary()
|
await store.refreshSummary()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function remove(recordId: string) {
|
function toggleManageMode() {
|
||||||
|
manageMode.value = !manageMode.value
|
||||||
|
selectedRecordIds.value = []
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleRecordSelection(recordId: string) {
|
||||||
|
selectedRecordIds.value = selectedRecordIds.value.includes(recordId)
|
||||||
|
? selectedRecordIds.value.filter(id => id !== recordId)
|
||||||
|
: [...selectedRecordIds.value, recordId]
|
||||||
|
}
|
||||||
|
|
||||||
|
async function removeSelectedRecords() {
|
||||||
|
if (!selectedRecordIds.value.length) return
|
||||||
|
const count = selectedRecordIds.value.length
|
||||||
try {
|
try {
|
||||||
await showConfirmDialog({
|
await showConfirmDialog({
|
||||||
title: '删除记录',
|
title: '删除记录',
|
||||||
message: '确定要删除这条照护记录吗?'
|
message: `确定要删除选中的 ${count} 条照护记录吗?`
|
||||||
})
|
})
|
||||||
await deleteRecord(recordId)
|
await Promise.all(selectedRecordIds.value.map(recordId => deleteRecord(recordId)))
|
||||||
|
selectedRecordIds.value = []
|
||||||
|
manageMode.value = false
|
||||||
await loadData()
|
await loadData()
|
||||||
await store.refreshSummary()
|
await store.refreshSummary()
|
||||||
showToast({ message: '记录已删除', type: 'success' })
|
showToast({ message: '记录已删除', type: 'success' })
|
||||||
@@ -107,11 +185,11 @@ async function remove(recordId: string) {
|
|||||||
|
|
||||||
// 记录按照开始时间按日分组,天内根据 sortOrder 升降序
|
// 记录按照开始时间按日分组,天内根据 sortOrder 升降序
|
||||||
const groupedRecords = computed<RecordDayGroup[]>(() => {
|
const groupedRecords = computed<RecordDayGroup[]>(() => {
|
||||||
if (!records.value || !records.value.length) return []
|
if (!filteredRecords.value || !filteredRecords.value.length) return []
|
||||||
|
|
||||||
const groupMap = new Map<string, CareRecord[]>()
|
const groupMap = new Map<string, CareRecord[]>()
|
||||||
|
|
||||||
for (const record of records.value) {
|
for (const record of filteredRecords.value) {
|
||||||
const d = formatDate(record.startTime) || '未知日期'
|
const d = formatDate(record.startTime) || '未知日期'
|
||||||
if (!groupMap.has(d)) {
|
if (!groupMap.has(d)) {
|
||||||
groupMap.set(d, [])
|
groupMap.set(d, [])
|
||||||
@@ -138,19 +216,20 @@ const groupedRecords = computed<RecordDayGroup[]>(() => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
const totalCount = computed(() => records.value.length)
|
const totalCount = computed(() => filteredRecords.value.length)
|
||||||
|
const hasActiveFilter = computed(() => Boolean(filterDate.value) || behaviorFilters.value.length > 0)
|
||||||
|
const selectedCount = computed(() => selectedRecordIds.value.length)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="page">
|
<section class="page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<p class="eyebrow">全周期照护记录</p>
|
<h1>记录</h1>
|
||||||
<h1>照护记录</h1>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- 顶部过滤与排序工具栏 -->
|
<!-- 顶部过滤与排序工具栏 -->
|
||||||
<div class="timeline-toolbar">
|
<div class="timeline-toolbar">
|
||||||
<div class="timeline-filter-row">
|
<div class="timeline-toolbar-top">
|
||||||
<!-- 日期过滤输入框 -->
|
<!-- 日期过滤输入框 -->
|
||||||
<div class="date-filter-box">
|
<div class="date-filter-box">
|
||||||
<span class="filter-icon">📅</span>
|
<span class="filter-icon">📅</span>
|
||||||
@@ -171,8 +250,62 @@ const totalCount = computed(() => records.value.length)
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="timeline-count-summary">
|
||||||
|
<span v-if="hasActiveFilter">
|
||||||
|
已筛选 <strong>{{ totalCount }}</strong> 项
|
||||||
|
</span>
|
||||||
|
<span v-else>
|
||||||
|
共 <strong>{{ totalCount }}</strong> 项
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="behavior-filter-row" aria-label="按行为筛选">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="behavior-filter-chip"
|
||||||
|
:class="{ active: behaviorFilters.includes('feeding') }"
|
||||||
|
@click="toggleBehaviorFilter('feeding')"
|
||||||
|
>
|
||||||
|
喂奶
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="behavior-filter-chip"
|
||||||
|
:class="{ active: behaviorFilters.includes('sleep') }"
|
||||||
|
@click="toggleBehaviorFilter('sleep')"
|
||||||
|
>
|
||||||
|
睡眠
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="behavior-filter-chip"
|
||||||
|
:class="{ active: behaviorFilters.includes('pee') }"
|
||||||
|
@click="toggleBehaviorFilter('pee')"
|
||||||
|
>
|
||||||
|
小便
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="behavior-filter-chip"
|
||||||
|
:class="{ active: behaviorFilters.includes('poop') }"
|
||||||
|
@click="toggleBehaviorFilter('poop')"
|
||||||
|
>
|
||||||
|
大便
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 右侧操作项:天内排序切换与补录 -->
|
<!-- 右侧操作项:天内排序切换与补录 -->
|
||||||
<div class="toolbar-actions">
|
<div class="toolbar-actions">
|
||||||
|
<div class="record-action-row primary">
|
||||||
|
<button class="primary-pill-button" @click="openManualModal('quick')">
|
||||||
|
+ 补记照护
|
||||||
|
</button>
|
||||||
|
<button class="secondary-pill-button" @click="openManualModal('detail')">
|
||||||
|
补单次
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="record-action-row subtle">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="sort-toggle-btn"
|
class="sort-toggle-btn"
|
||||||
@@ -181,25 +314,25 @@ const totalCount = computed(() => records.value.length)
|
|||||||
@click="toggleSortOrder"
|
@click="toggleSortOrder"
|
||||||
>
|
>
|
||||||
<span class="sort-icon">{{ sortOrder === 'desc' ? '↓' : '↑' }}</span>
|
<span class="sort-icon">{{ sortOrder === 'desc' ? '↓' : '↑' }}</span>
|
||||||
{{ sortOrder === 'desc' ? '时间倒序' : '时间正序' }}
|
{{ sortOrder === 'desc' ? '倒序' : '正序' }}
|
||||||
</button>
|
</button>
|
||||||
<button class="primary-pill-button" @click="openManualModal('quick')">
|
<button
|
||||||
+ 补记照护
|
class="manage-toggle-btn"
|
||||||
</button>
|
:class="{ active: manageMode }"
|
||||||
<button class="secondary-pill-button" @click="openManualModal('detail')">
|
@click="toggleManageMode"
|
||||||
补单次
|
>
|
||||||
|
{{ manageMode ? '完成' : '管理' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 状态概览提示 -->
|
<!-- 状态概览提示 -->
|
||||||
<div class="timeline-meta-bar">
|
<div v-if="hasActiveFilter" class="timeline-meta-bar">
|
||||||
<span v-if="filterDate" class="meta-filter-active">
|
<span v-if="hasActiveFilter" class="meta-filter-active">
|
||||||
已筛选 <strong>{{ filterDate }}</strong>,共 <strong>{{ totalCount }}</strong> 项记录
|
<span v-if="filterDate"><strong>{{ filterDate }}</strong></span>
|
||||||
</span>
|
<span v-if="behaviorFilters.length"> 已选 {{ behaviorFilters.length }} 类行为</span>
|
||||||
<span v-else class="meta-all-dates">
|
|
||||||
全部历史记录,共 <strong>{{ totalCount }}</strong> 项(已按日分组)
|
|
||||||
</span>
|
</span>
|
||||||
|
<button class="clear-filter-btn" type="button" @click="clearAllFilters">清空筛选</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -225,46 +358,69 @@ const totalCount = computed(() => records.value.length)
|
|||||||
v-for="record in group.records"
|
v-for="record in group.records"
|
||||||
:key="record.recordId"
|
:key="record.recordId"
|
||||||
class="timeline-item"
|
class="timeline-item"
|
||||||
|
:class="{ selecting: manageMode, selected: selectedRecordIds.includes(record.recordId) }"
|
||||||
>
|
>
|
||||||
<div style="flex: 1;">
|
<button
|
||||||
<div style="display: flex; align-items: center; gap: 8px;">
|
v-if="manageMode"
|
||||||
<strong style="font-size: 16px;">
|
type="button"
|
||||||
{{ recordLabel(record.recordType, record.feedingMethod || record.excretionType) }}
|
class="record-select-control"
|
||||||
</strong>
|
:class="{ selected: selectedRecordIds.includes(record.recordId) }"
|
||||||
<span v-if="record.amountMl" style="background: #fff1cf; color: #8a540d; font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 4px;">
|
:aria-label="selectedRecordIds.includes(record.recordId) ? '取消选择记录' : '选择记录'"
|
||||||
{{ record.amountMl }}ml
|
@click.stop="toggleRecordSelection(record.recordId)"
|
||||||
</span>
|
|
||||||
<span v-if="record.durationMinutes" style="background: #eee9ff; color: #5925dc; font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 4px;">
|
|
||||||
{{ formatMinutes(record.durationMinutes) }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p style="margin: 4px 0 2px; font-weight: 600; color: #374151;">
|
|
||||||
{{ formatRecordTimeRange(record.startTime, record.endTime) }}
|
|
||||||
</p>
|
|
||||||
<!-- 亲喂分侧分别耗时展示 -->
|
|
||||||
<div v-if="getFeedingSplitInfo(record)" style="display: flex; gap: 6px; margin: 3px 0;">
|
|
||||||
<span
|
|
||||||
v-if="getFeedingSplitInfo(record)?.leftMinutes"
|
|
||||||
style="background: #e0f2fe; color: #0369a1; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;"
|
|
||||||
>
|
>
|
||||||
左侧: {{ getFeedingSplitInfo(record)?.leftMinutes }}分钟
|
<span></span>
|
||||||
</span>
|
</button>
|
||||||
<span
|
<div class="timeline-item-time">
|
||||||
v-if="getFeedingSplitInfo(record)?.rightMinutes"
|
<span class="timeline-time-value">{{ formatTime(record.startTime) }}</span>
|
||||||
style="background: #fdf2f8; color: #be185d; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;"
|
<template v-if="record.endTime">
|
||||||
>
|
<span class="timeline-time-separator">|</span>
|
||||||
右侧: {{ getFeedingSplitInfo(record)?.rightMinutes }}分钟
|
<span class="timeline-time-value">{{ formatTime(record.endTime) }}</span>
|
||||||
</span>
|
</template>
|
||||||
</div>
|
|
||||||
<p v-if="formatCleanNote(record.note || record.remark)" style="color: #6b7280; font-size: 13px; margin-top: 2px;">
|
|
||||||
📝 {{ formatCleanNote(record.note || record.remark) }}
|
|
||||||
</p>
|
|
||||||
<small>记录人: {{ record.operatorName }}</small>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item-actions">
|
<div class="timeline-item-body">
|
||||||
<button class="edit-button" @click="openEditModal(record)">编辑</button>
|
<div class="timeline-record-head">
|
||||||
<button class="delete-button" @click="remove(record.recordId)">删除</button>
|
<div class="timeline-record-title">
|
||||||
|
<strong>
|
||||||
|
{{ recordLabel(record.recordType, record.feedingMethod || record.excretionType) }}
|
||||||
|
</strong>
|
||||||
|
<span v-if="record.amountMl" class="timeline-badge amount">
|
||||||
|
{{ record.amountMl }}ml
|
||||||
|
</span>
|
||||||
|
<span v-if="record.durationMinutes" class="timeline-badge duration">
|
||||||
|
{{ formatMinutes(record.durationMinutes) }}
|
||||||
|
</span>
|
||||||
|
<button
|
||||||
|
v-if="recordTimeHint(record)"
|
||||||
|
type="button"
|
||||||
|
class="record-quality-chip"
|
||||||
|
:class="recordTimeHintLevel(record)"
|
||||||
|
:title="recordTimeHint(record)"
|
||||||
|
:aria-label="recordTimeHint(record)"
|
||||||
|
@click.stop="openEditModal(record)"
|
||||||
|
>
|
||||||
|
补
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
v-if="!manageMode"
|
||||||
|
type="button"
|
||||||
|
class="record-card-cue"
|
||||||
|
aria-label="修改记录"
|
||||||
|
@click="openEditModal(record)"
|
||||||
|
>
|
||||||
|
改
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="timeline-record-detail">
|
||||||
|
<span v-if="recordSubLine(record)" class="timeline-record-note">
|
||||||
|
{{ recordSubLine(record) }}
|
||||||
|
</span>
|
||||||
|
<span v-if="record.operatorName" class="operator-mini-badge">
|
||||||
|
{{ record.operatorName }}
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
@@ -274,14 +430,14 @@ const totalCount = computed(() => records.value.length)
|
|||||||
<!-- 空状态 -->
|
<!-- 空状态 -->
|
||||||
<div v-else-if="!loading" class="timeline-empty-card">
|
<div v-else-if="!loading" class="timeline-empty-card">
|
||||||
<div style="font-size: 36px; margin-bottom: 8px;">📋</div>
|
<div style="font-size: 36px; margin-bottom: 8px;">📋</div>
|
||||||
<p v-if="filterDate" style="color: #4b5563; font-weight: 600; margin: 0 0 12px;">
|
<p v-if="hasActiveFilter" style="color: #4b5563; font-weight: 600; margin: 0 0 12px;">
|
||||||
{{ filterDate }} 暂无任何照护记录
|
当前筛选下暂无照护记录
|
||||||
</p>
|
</p>
|
||||||
<p v-else style="color: #4b5563; font-weight: 600; margin: 0 0 12px;">
|
<p v-else style="color: #4b5563; font-weight: 600; margin: 0 0 12px;">
|
||||||
宝宝目前还没有照护记录,点击下方按钮开始补录吧
|
宝宝目前还没有照护记录,点击下方按钮开始补录吧
|
||||||
</p>
|
</p>
|
||||||
<div style="display: flex; gap: 10px; justify-content: center;">
|
<div style="display: flex; gap: 10px; justify-content: center;">
|
||||||
<button v-if="filterDate" class="secondary-btn" @click="clearFilter">查看全部日期</button>
|
<button v-if="hasActiveFilter" class="secondary-btn" @click="clearAllFilters">查看全部记录</button>
|
||||||
<button class="primary-pill-button" @click="openManualModal('quick')">+ 补记照护</button>
|
<button class="primary-pill-button" @click="openManualModal('quick')">+ 补记照护</button>
|
||||||
<button class="secondary-pill-button" @click="openManualModal('detail')">补单次</button>
|
<button class="secondary-pill-button" @click="openManualModal('detail')">补单次</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -292,5 +448,18 @@ const totalCount = computed(() => records.value.length)
|
|||||||
|
|
||||||
<!-- 弹窗:编辑记录维护组件 -->
|
<!-- 弹窗:编辑记录维护组件 -->
|
||||||
<TimelineEditModal v-model:show="showEditModal" :record="selectedRecord" @success="handleRecordChanged" />
|
<TimelineEditModal v-model:show="showEditModal" :record="selectedRecord" @success="handleRecordChanged" />
|
||||||
|
|
||||||
|
<div v-if="manageMode" class="batch-action-bar">
|
||||||
|
<button type="button" class="secondary-button" @click="toggleManageMode">取消</button>
|
||||||
|
<span>已选 {{ selectedCount }} 条</span>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="batch-delete-button"
|
||||||
|
:disabled="!selectedCount"
|
||||||
|
@click="removeSelectedRecords"
|
||||||
|
>
|
||||||
|
删除
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
+416
-3
@@ -1167,7 +1167,11 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header h1 {
|
||||||
|
line-height: 1.15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-page {
|
.stats-page {
|
||||||
@@ -1709,6 +1713,59 @@ button {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.record-quality-chip {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-width: 24px;
|
||||||
|
height: 22px;
|
||||||
|
background: #fff3cd;
|
||||||
|
color: #9a5f11;
|
||||||
|
border: 1px solid #f4d58a;
|
||||||
|
border-radius: 999px;
|
||||||
|
padding: 0 6px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 900;
|
||||||
|
line-height: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-quality-chip.soft {
|
||||||
|
background: #f8fafc;
|
||||||
|
color: #64748b;
|
||||||
|
border-color: #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-quality-chip.warning {
|
||||||
|
background: #fff3cd;
|
||||||
|
color: #9a5f11;
|
||||||
|
border-color: #f4d58a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-quality-note {
|
||||||
|
display: inline-flex;
|
||||||
|
width: fit-content;
|
||||||
|
margin: 0;
|
||||||
|
padding: 5px 9px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #fff8e6;
|
||||||
|
color: #8a540d;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-quality-note.soft {
|
||||||
|
background: #f8fafc;
|
||||||
|
color: #64748b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-quality-note.warning {
|
||||||
|
background: #fff8e6;
|
||||||
|
color: #8a540d;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-backdrop {
|
.modal-backdrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
@@ -2170,7 +2227,7 @@ button {
|
|||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 12px 14px;
|
padding: 12px;
|
||||||
border: 1px solid #ede8de;
|
border: 1px solid #ede8de;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2182,6 +2239,13 @@ button {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-toolbar-top {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.date-filter-box {
|
.date-filter-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -2192,6 +2256,51 @@ button {
|
|||||||
gap: 6px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-count-summary {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
color: #65707d;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-count-summary strong {
|
||||||
|
color: #8a540d;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.behavior-filter-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
gap: 7px;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
overflow-x: auto;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.behavior-filter-row::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.behavior-filter-chip {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
min-height: 30px;
|
||||||
|
padding: 6px 11px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #f4efe6;
|
||||||
|
color: #5d6470;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.behavior-filter-chip.active {
|
||||||
|
background: #8a540d;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
.filter-icon {
|
.filter-icon {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@@ -2225,11 +2334,35 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-actions {
|
.toolbar-actions {
|
||||||
|
display: grid;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-actions .primary-pill-button,
|
||||||
|
.toolbar-actions .secondary-pill-button,
|
||||||
|
.toolbar-actions .sort-toggle-btn,
|
||||||
|
.toolbar-actions .manage-toggle-btn {
|
||||||
|
min-height: 34px;
|
||||||
|
justify-content: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-action-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.record-action-row.primary {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-action-row.subtle {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
.sort-toggle-btn {
|
.sort-toggle-btn {
|
||||||
background: #f8fafc;
|
background: #f8fafc;
|
||||||
color: #475569;
|
color: #475569;
|
||||||
@@ -2255,6 +2388,23 @@ button {
|
|||||||
border-color: #93c5fd;
|
border-color: #93c5fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.manage-toggle-btn {
|
||||||
|
min-height: 34px;
|
||||||
|
padding: 7px 13px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #f8fafc;
|
||||||
|
color: #475569;
|
||||||
|
border: 1px solid #cbd5e1;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.manage-toggle-btn.active {
|
||||||
|
background: #fff1cf;
|
||||||
|
color: #8a540d;
|
||||||
|
border-color: #e2be79;
|
||||||
|
}
|
||||||
|
|
||||||
.sort-icon {
|
.sort-icon {
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
@@ -2266,6 +2416,8 @@ button {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
|
min-height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-filter-active strong {
|
.meta-filter-active strong {
|
||||||
@@ -2328,13 +2480,227 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.timeline-day-list {
|
.timeline-day-list {
|
||||||
padding: 0 14px;
|
padding: 0 12px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-day-list .timeline-item:last-child {
|
.timeline-day-list .timeline-item:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-day-list .timeline-item {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 56px minmax(0, 1fr);
|
||||||
|
gap: 8px;
|
||||||
|
justify-content: stretch;
|
||||||
|
align-items: start;
|
||||||
|
padding: 10px 0;
|
||||||
|
cursor: default;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-day-list .timeline-item.selected {
|
||||||
|
background: #fffaf1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-day-list .timeline-item.selecting {
|
||||||
|
grid-template-columns: 28px 56px minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-day-list .timeline-item.selected {
|
||||||
|
background: #fffaf1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-select-control {
|
||||||
|
align-self: start;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
margin-top: 1px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1.5px solid #d8c9b0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-select-control span {
|
||||||
|
display: block;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-select-control.selected {
|
||||||
|
border-color: #1f7a5c;
|
||||||
|
background: #e9f8f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-select-control.selected span {
|
||||||
|
background: #1f7a5c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item-time {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 3px;
|
||||||
|
justify-items: center;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 2px;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-time-value {
|
||||||
|
display: block;
|
||||||
|
color: #5a3a12;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0;
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item-time .timeline-time-separator {
|
||||||
|
display: block;
|
||||||
|
width: 2px;
|
||||||
|
height: 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #eadfce;
|
||||||
|
color: transparent;
|
||||||
|
font-size: 0;
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item-body {
|
||||||
|
min-width: 0;
|
||||||
|
display: grid;
|
||||||
|
gap: 4px;
|
||||||
|
padding-left: 11px;
|
||||||
|
border-left: 2px solid #f1e7d6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-head strong {
|
||||||
|
min-width: 0;
|
||||||
|
color: #17202a;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.25;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-title {
|
||||||
|
min-width: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-title strong {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-card-cue {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
align-self: stretch;
|
||||||
|
min-width: 30px;
|
||||||
|
min-height: 100%;
|
||||||
|
padding: 0 8px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #eef6ff;
|
||||||
|
color: #175cd3;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-badges {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-badge {
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-badge.amount {
|
||||||
|
background: #fff1cf;
|
||||||
|
color: #8a540d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-badge.duration {
|
||||||
|
background: #eee9ff;
|
||||||
|
color: #5925dc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-detail {
|
||||||
|
margin: 0;
|
||||||
|
color: #65707d;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.4;
|
||||||
|
word-break: break-word;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-note {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operator-mini-badge {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 18px;
|
||||||
|
padding: 1px 6px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #f4efe6;
|
||||||
|
color: #7a5a2b;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operator-mini-badge::before {
|
||||||
|
content: "";
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
margin-right: 4px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #c28a2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-footer {
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-record-footer small {
|
||||||
|
min-width: 0;
|
||||||
|
color: #8c7853;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
.timeline-empty-card {
|
.timeline-empty-card {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
@@ -2344,6 +2710,45 @@ button {
|
|||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.batch-action-bar {
|
||||||
|
position: fixed;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 76px;
|
||||||
|
z-index: 20;
|
||||||
|
width: min(520px, calc(100% - 28px));
|
||||||
|
transform: translateX(-50%);
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr auto;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #eadfce;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: rgba(255, 253, 250, 0.98);
|
||||||
|
box-shadow: 0 12px 30px rgba(80, 64, 43, 0.14);
|
||||||
|
}
|
||||||
|
|
||||||
|
.batch-action-bar span {
|
||||||
|
color: #4b5563;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 800;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.batch-delete-button {
|
||||||
|
min-height: 38px;
|
||||||
|
padding: 8px 15px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #fee4e2;
|
||||||
|
color: #b42318;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.batch-delete-button:disabled {
|
||||||
|
opacity: 0.45;
|
||||||
|
}
|
||||||
|
|
||||||
.tag-badge {
|
.tag-badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
@@ -2404,4 +2809,12 @@ button {
|
|||||||
.feeding-status {
|
.feeding-status {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbar-actions {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-action-row.primary {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -72,3 +72,25 @@ http://服务器IP:9899/api/...
|
|||||||
- 暂不引入 Thymeleaf,Vue 构建产物作为静态资源处理即可。
|
- 暂不引入 Thymeleaf,Vue 构建产物作为静态资源处理即可。
|
||||||
- 暂不引入公共 Nginx、Caddy 或 Traefik;后续多服务统一入口可以在服务器层独立推进。
|
- 暂不引入公共 Nginx、Caddy 或 Traefik;后续多服务统一入口可以在服务器层独立推进。
|
||||||
- 暂不把前端构建交给 Maven 自动执行,避免后端构建强依赖 Node 环境。
|
- 暂不把前端构建交给 Maven 自动执行,避免后端构建强依赖 Node 环境。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## mobile-timeline-time-completion
|
||||||
|
|
||||||
|
### 背景
|
||||||
|
|
||||||
|
照护记录页的实际使用场景以手机为主,用户补录历史记录时常常只记得大概开始时间,部分行为后续才补结束时间。此前列表更接近桌面管理表:每条记录右侧常驻编辑/删除按钮,时间、标签、备注混排,且“待补充”提示只覆盖喂奶。
|
||||||
|
|
||||||
|
### 目标
|
||||||
|
|
||||||
|
- 所有照护行为都按“可能有开始和结束时间”的记录模型展示,不把结束时间能力限制在喂奶或睡眠。
|
||||||
|
- 没有结束时间或持续时长推导不完整时,在记录卡片内给出轻量提示,用户可点提示直接进入编辑补齐。
|
||||||
|
- 手机端列表改为时间线扫读:左侧显示开始/结束时刻,右侧显示行为、关键标签、备注和操作,降低管理后台感。
|
||||||
|
- 顶部记录控制区拆分为日期统计、行为筛选、补记操作和筛选状态,避免所有控件挤在同一条工具栏里。
|
||||||
|
- 手机底部四个主 Tab 已承担导航语义,页面顶部不再展示解释性描述文字,仅保留短标题或必要上下文。
|
||||||
|
- 默认状态下记录内容可直接阅读和复制,修改入口收敛到右侧箭头按钮;删除改为进入“管理”模式后多选批量删除,避免单条左滑删除入口不清晰和误删风险。
|
||||||
|
|
||||||
|
### 暂不处理
|
||||||
|
|
||||||
|
- 暂不修改数据库字段,继续复用 `start_time`、`end_time`、`duration_minutes`。
|
||||||
|
- 暂不强制所有排泄记录都必须填写结束时间;当前只做可补充提示和编辑入口。
|
||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
- [2026-09-25.md](./2026-09-25.md): 2026-09-25 MVP 重构、旧原型清理与部署目录结构调整记录。
|
- [2026-09-25.md](./2026-09-25.md): 2026-09-25 MVP 重构、旧原型清理与部署目录结构调整记录。
|
||||||
- [2026-09-26.md](./2026-09-26.md): 2026-09-26 总体架构、MVP 边界、数据模型、后端规范、前端交互、照护记录与部署流程的集中变更记录。
|
- [2026-09-26.md](./2026-09-26.md): 2026-09-26 总体架构、MVP 边界、数据模型、后端规范、前端交互、照护记录与部署流程的集中变更记录。
|
||||||
- [2026-09-28.md](./2026-09-28.md): 2026-09-28 统计页跨天汇总与趋势回顾调整记录。
|
- [2026-09-28.md](./2026-09-28.md): 2026-09-28 统计页跨天汇总与趋势回顾调整记录。
|
||||||
- [2026-09-29.md](./2026-09-29.md): 2026-09-29 Vue 静态资源打入 Spring Boot Jar、部署收敛为单后端镜像的调整记录。
|
- [2026-09-29.md](./2026-09-29.md): 2026-09-29 Vue 静态资源打入 Spring Boot Jar、记录页移动端时间线和结束时间补充提示的调整记录。
|
||||||
|
|
||||||
## 记录原则
|
## 记录原则
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user