mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
display amount when the inflow/outflow chart shows only one item
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
<div class="statistics-list-item-text">
|
<div class="statistics-list-item-text">
|
||||||
<span>{{ item.displayDateRange }}</span>
|
<span>{{ item.displayDateRange }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="full-line statistics-percent-line statistics-multi-percent-line display-flex flex-direction-column" v-if="!stacked">
|
<div class="full-line statistics-percent-line statistics-multi-percent-line display-flex flex-direction-column" v-if="!stacked && item.items.length > 1">
|
||||||
<div class="display-flex flex-direction-column"
|
<div class="display-flex flex-direction-column"
|
||||||
style="margin-top: 4px"
|
style="margin-top: 4px"
|
||||||
:key="dataIdx"
|
:key="dataIdx"
|
||||||
@@ -81,11 +81,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #after>
|
<template #after>
|
||||||
<span v-if="stacked">{{ formatAmountToLocalizedNumeralsWithCurrency(item.totalAmount, defaultCurrency) }}</span>
|
<span v-if="stacked || item.items.length <= 1">{{ formatAmountToLocalizedNumeralsWithCurrency(item.totalAmount, defaultCurrency) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #inner-end>
|
<template #inner-end>
|
||||||
<div class="statistics-item-end" v-if="stacked">
|
<div class="statistics-item-end" v-if="stacked || item.items.length <= 1">
|
||||||
<div class="statistics-percent-line statistics-multi-percent-line display-flex">
|
<div class="statistics-percent-line statistics-multi-percent-line display-flex">
|
||||||
<div class="display-inline-flex" :style="{ 'width': (item.percent * data.totalAmount / item.totalPositiveAmount) + '%' }"
|
<div class="display-inline-flex" :style="{ 'width': (item.percent * data.totalAmount / item.totalPositiveAmount) + '%' }"
|
||||||
:key="dataIdx"
|
:key="dataIdx"
|
||||||
|
|||||||
Reference in New Issue
Block a user