More number formatting

This commit is contained in:
kolaente 2019-09-14 17:29:09 +02:00
parent d0cb590e04
commit 6e2a468b22
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ const app = new Vue({
<tr v-for="(item, i) in data" :class="{ active: currentRow === item.id }">
<td>{{ item.name }}</td>
<td v-if="mode === 0">{{ item.gemeinde }}</td>
<td>{{ item.kcoins }}</td>
<td>{{ item.kcoins.toLocaleString('de-DE') }}</td>
<td v-if="mode === 1">{{ item.konfi_count }}</td>
<td v-if="mode === 1">{{ (item.coins_quota).toFixed(2) }}</td>
<td v-if="mode === 1">{{ parseFloat((item.coins_quota).toFixed(2)).toLocaleString('de-DE') }}</td>
<td>
<span class="ui action input">
<input type="number" :tabindex="(i +1)" @focus="currentRow = item.id" @keyup.enter="updateCoins(item.id)" autocomplete="off" v-model="formStuff[item.id].addCoins"/>

View File

@ -23,7 +23,7 @@ const app = new Vue({
<td>{{ item.name }}</td>
<td v-if="mode === 0">{{ item.gemeinde }}</td>
<td>{{ item.kcoins.toLocaleString('de-DE') }}</td>
<td v-if="mode === 1">{{ ((item.coins_quota).toFixed(2)).toLocaleString('de-DE') }}</td>
<td v-if="mode === 1">{{ parseFloat((item.coins_quota).toFixed(2)).toLocaleString('de-DE') }}</td>
</tr>
</tbody>
</table>