More number formatting
This commit is contained in:
parent
d0cb590e04
commit
6e2a468b22
|
@ -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"/>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue