Exchange rates move
This commit is contained in:
@@ -174,6 +174,9 @@ const ccountry_list = ref(['TEST']);
|
||||
const currencyHash = ref({});
|
||||
const currency = ref([]);
|
||||
const currencyCoef = ref(1.0);
|
||||
|
||||
const items = ref([]);
|
||||
|
||||
const hrates = ref([
|
||||
{ text: "Currency", value: "currency", sortable: true },
|
||||
{ text: "Country", value: "country_name", sortable: true },
|
||||
@@ -237,6 +240,7 @@ const fetch_rates = async () => {
|
||||
currencyHash.value = Object.fromEntries(
|
||||
rates.value.map((currency) => [currency.currency, currency.rate]),
|
||||
);
|
||||
|
||||
currency.value.unshift('EUR');
|
||||
console.log("RATE=", rates.value);
|
||||
console.log('HASH=', currencyHash.value);
|
||||
@@ -303,12 +307,6 @@ function customLabel({ item, desc, code }) {
|
||||
//console.log(item);
|
||||
return `${item} - ${desc} - ${code}`;
|
||||
}
|
||||
const headers = ref([
|
||||
{ text: "Id", value: "id", sortable: true },
|
||||
{ text: "Country", value: "country", sortable: true },
|
||||
{ text: "Currency", value: "currency" },
|
||||
]);
|
||||
const items = ref([]);
|
||||
|
||||
function selectCountry(item, id) {
|
||||
let cCntry = [['Country'],];
|
||||
@@ -463,18 +461,8 @@ const submit = () => {
|
||||
</template>
|
||||
</EasyTable>
|
||||
</div>
|
||||
|
||||
<div class="mt-5">
|
||||
<EasyTable :rows-per-page=10 :headers="headers" :items="items" alternating></EasyTable>
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
<EasyTable :rows-per-page=15 :headers="hrates" :items="rates" alternating></EasyTable>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user