mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add page DecayInformation-Decay.vue, minus sign inserted
This commit is contained in:
parent
cf0710d324
commit
7061bdd358
@ -0,0 +1,36 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-decay">
|
||||||
|
<div class="d-flex">
|
||||||
|
<div style="width: 100%" class="text-center pb-3">
|
||||||
|
<b-icon icon="droplet-half" height="12" class="mb-2" />
|
||||||
|
<b>{{ $t('decay.calculation_decay') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>
|
||||||
|
{{ $n(Number(balance) - Number(decay.decay), 'decimal') }}
|
||||||
|
GDD − {{ $n(Number(decay.decay) * -1, 'decimal') }} GDD =
|
||||||
|
<b>{{ $n(Number(balance), 'decimal') }} GDD</b>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-Decay',
|
||||||
|
props: {
|
||||||
|
balance: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<div>{{ $t('decay.decay') }}</div>
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div>{{ $n(decay.decay, 'decimal') }}</div>
|
<div>− {{ $n(decay.decay * -1, 'decimal') }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<hr class="mt-2 mb-2" />
|
<hr class="mt-2 mb-2" />
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<div v-if="typeId === 'RECEIVE'">{{ $t('decay.received') }}</div>
|
<div v-if="typeId === 'RECEIVE'">{{ $t('decay.received') }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div v-if="typeId === 'SEND'">{{ $n(amount, 'decimal') }}</div>
|
<div v-if="typeId === 'SEND'">− {{ $n(amount * -1, 'decimal') }}</div>
|
||||||
<div v-if="typeId === 'RECEIVE'">{{ $n(amount, 'decimal') }}</div>
|
<div v-if="typeId === 'RECEIVE'">{{ $n(amount, 'decimal') }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
@ -68,7 +68,7 @@
|
|||||||
<div>{{ $t('decay.decay') }}</div>
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div>{{ $n(decay.decay, 'decimal') }}</div>
|
<div>− {{ $n(decay.decay * -1, 'decimal') }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<!-- Total-->
|
<!-- Total-->
|
||||||
@ -78,7 +78,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div v-if="typeId === 'SEND'">
|
<div v-if="typeId === 'SEND'">
|
||||||
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
<b>− {{ $n(Number(amount * -1) + Number(decay.decay * -1), 'decimal') }}</b>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="typeId === 'RECEIVE'">
|
<div v-if="typeId === 'RECEIVE'">
|
||||||
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="decayinformation-short">
|
<div class="decayinformation-short">
|
||||||
<span>
|
<span>− {{ decay ? $n(decay.decay * -1, 'decimal') : '' }}</span>
|
||||||
{{ decay ? $n(decay.decay, 'decimal') : '' }}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -44,21 +44,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse class="pb-4 pt-5" v-model="visible">
|
<b-collapse class="pb-4 pt-5" v-model="visible">
|
||||||
<!--<decay-information-decay :balance="balance" :decay="decay" />-->
|
<decay-information-decay :balance="balance" :decay="decay" />
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
// import DecayInformationDecay from '../DecayInformations/DecayInformation-Decay'
|
import DecayInformationDecay from '../DecayInformations/DecayInformation-Decay'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-decay',
|
name: 'slot-decay',
|
||||||
/*
|
|
||||||
components: {
|
components: {
|
||||||
DecayInformationDecay,
|
DecayInformationDecay,
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user