mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-25 16:34:01 +00:00
チェックボックスに対応
This commit is contained in:
parent
2774fc58a4
commit
4ae45b3e09
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<QPage>
|
||||
<TotalComponent :histories=histories />
|
||||
<HistoryWrappedComponent :histories=histories />
|
||||
<HistoryWrappedComponent :histories=histories @containPaid:checked="changeContainPaid" />
|
||||
</QPage>
|
||||
</template>
|
||||
|
||||
|
@ -23,7 +23,13 @@ const props = defineProps<Props>();
|
|||
|
||||
const histories = ref([] as HistoryItem[]);
|
||||
|
||||
getHistories(props.childId, true).then((res) => {
|
||||
const changeContainPaid = (value: boolean) => {
|
||||
getHistories(props.childId, value).then((res) => {
|
||||
histories.value = res;
|
||||
});
|
||||
};
|
||||
|
||||
getHistories(props.childId, false).then((res) => {
|
||||
histories.value = res;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user