diff --git a/lang/id.json b/lang/id.json
index 5f3a3b7..80a7b51 100644
--- a/lang/id.json
+++ b/lang/id.json
@@ -95,5 +95,6 @@
"are you want to try again": "are you want to try again",
"referenceerror: ccount is not defined": "ReferenceError: ccount is not defined",
"referenceerror: currency_code is not defined": "ReferenceError: currency_code is not defined",
- "referenceerror: assignment to undeclared variable acntry": "ReferenceError: assignment to undeclared variable aCntry"
+ "referenceerror: assignment to undeclared variable acntry": "ReferenceError: assignment to undeclared variable aCntry",
+ "referenceerror: _code is not defined": "ReferenceError: _code is not defined"
}
\ No newline at end of file
diff --git a/package.json b/package.json
index 6c8eaa3..b45811b 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
"sweetalert2": "^11.4.23",
"vue-google-charts": "^1.1.0",
"vue-multiselect": "^3.0.0-beta.3",
+ "vue3-easy-data-table": "^1.5.47",
"vuedraggable": "^4.1.0"
}
}
diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue
index 5c86293..54bf492 100644
--- a/resources/js/Pages/IkeaRoot.vue
+++ b/resources/js/Pages/IkeaRoot.vue
@@ -7,6 +7,9 @@ import LogoIkea from '@/assets/Ikea_logo.svg';
import Multiselect from 'vue-multiselect';
import { GChart } from 'vue-google-charts';
import { FwbDropdown, FwbListGroup, FwbListGroupItem } from 'flowbite-vue';
+import EasyTable from "vue3-easy-data-table";
+
+
import {
FwbNavbar,
FwbNavbarCollapse,
@@ -42,7 +45,8 @@ const fetch = async () => {
ccountry_filter.value.push(...aCntry);
ccountry_list.value = ccountry.value.map((country) => country.country_name);
-
+ var i=1;
+ items.value = ccountry.value.map((country) => { return {"country": country.country_name, "currency": country.currency_code, "id": i++ } });
console.log("TEST=", ccountry_filter.value, ccountry_list.value);
} catch (e) {
const response = await Swal.fire({
@@ -56,6 +60,14 @@ const fetch = async () => {
response.isConfirmed && fetch()
}
}
+
+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'], ];
let aCntry = selected.value.map((country) => [country]);
@@ -70,7 +82,7 @@ onMounted(fetch);