数据看板页面实现 #4

Merged
tangweijie merged 3 commits from lm/feat/dashboard into master 2026-01-18 16:10:29 +08:00
Showing only changes of commit 29c8f7f562 - Show all commits

View File

@ -232,9 +232,13 @@ const remittancesData = ref<ConsumptionRecord[]>([
const props = withDefaults(
defineProps<{
data?: ConsumptionRecord[]
relatData?: RelationshipRecord[]
remitData?: ConsumptionRecord[]
}>(),
{
data: () => []
data: () => [],
relatData: () => [],
remitData: () => []
}
)
@ -242,6 +246,12 @@ const props = withDefaults(
if (props.data && props.data.length > 0) {
recordsData.value = props.data
}
if (props.relatData && props.relatData.length > 0) {
relationshipData.value = props.relatData
}
if (props.remitData && props.remitData.length > 0) {
remittancesData.value = props.remitData
}
</script>
<style scoped lang="scss">