diff --git a/public/demo/data/treetablenodes.json b/public/demo/data/treetablenodes.json
index be13bfa..4cf2a48 100644
--- a/public/demo/data/treetablenodes.json
+++ b/public/demo/data/treetablenodes.json
@@ -12,7 +12,7 @@
{
"key": "0-0",
"data":{
- "name":"React",
+ "name":"Vue",
"size":"25kb",
"type":"Folder"
},
@@ -20,7 +20,7 @@
{
"key": "0-0-0",
"data":{
- "name":"react.app",
+ "name":"vue.app",
"size":"10kb",
"type":"Application"
}
diff --git a/src/router/index.js b/src/router/index.js
index 116445d..499c76a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,8 +1,8 @@
-import { createRouter, createWebHashHistory } from 'vue-router';
+import { createRouter, createWebHistory } from 'vue-router';
import AppLayout from '@/layout/AppLayout.vue';
const router = createRouter({
- history: createWebHashHistory(),
+ history: createWebHistory(),
routes: [
{
path: '/',
diff --git a/src/views/pages/auth/Login.vue b/src/views/pages/auth/Login.vue
index eaf2500..c8b8d3a 100644
--- a/src/views/pages/auth/Login.vue
+++ b/src/views/pages/auth/Login.vue
@@ -9,7 +9,7 @@ const password = ref('');
const checked = ref(false);
const logoUrl = computed(() => {
- return `layout/images/${layoutConfig.darkTheme.value ? 'logo-white' : 'logo-dark'}.svg`;
+ return `/layout/images/${layoutConfig.darkTheme.value ? 'logo-white' : 'logo-dark'}.svg`;
});
diff --git a/src/views/uikit/List.vue b/src/views/uikit/List.vue
index 42fd7bc..1284aa6 100644
--- a/src/views/uikit/List.vue
+++ b/src/views/uikit/List.vue
@@ -130,7 +130,7 @@ const getSeverity = (product) => {
-
![]()
+
diff --git a/src/views/uikit/Menu.vue b/src/views/uikit/Menu.vue
index 5a0d834..f2b86ee 100644
--- a/src/views/uikit/Menu.vue
+++ b/src/views/uikit/Menu.vue
@@ -446,10 +446,10 @@ const onContextRightClick = (event) => {
Menubar
-
-
+
+
-
+
diff --git a/src/views/uikit/Table.vue b/src/views/uikit/Table.vue
index 197bb6a..04c34fa 100644
--- a/src/views/uikit/Table.vue
+++ b/src/views/uikit/Table.vue
@@ -30,6 +30,37 @@ const representatives = ref([
const customerService = new CustomerService();
const productService = new ProductService();
+const getBadgeSeverity = (inventoryStatus) => {
+ switch (inventoryStatus.toLowerCase()) {
+ case 'instock':
+ return 'success';
+ case 'lowstock':
+ return 'warning';
+ case 'outofstock':
+ return 'danger';
+ default:
+ return 'info';
+ }
+};
+const getSeverity = (status) => {
+ switch (status) {
+ case 'unqualified':
+ return 'danger';
+
+ case 'qualified':
+ return 'success';
+
+ case 'new':
+ return 'info';
+
+ case 'negotiation':
+ return 'warning';
+
+ case 'renewal':
+ return null;
+ }
+};
+
onBeforeMount(() => {
productService.getProductsWithOrdersSmall().then((data) => (products.value = data));
customerService.getCustomersLarge().then((data) => {
@@ -53,7 +84,7 @@ const initFilters1 = () => {
date: { operator: FilterOperator.AND, constraints: [{ value: null, matchMode: FilterMatchMode.DATE_IS }] },
balance: { operator: FilterOperator.AND, constraints: [{ value: null, matchMode: FilterMatchMode.EQUALS }] },
status: { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.EQUALS }] },
- activity: { value: [0, 50], matchMode: FilterMatchMode.BETWEEN },
+ activity: { value: [0, 100], matchMode: FilterMatchMode.BETWEEN },
verified: { value: null, matchMode: FilterMatchMode.EQUALS }
};
};
@@ -62,7 +93,7 @@ const clearFilter1 = () => {
initFilters1();
};
const expandAll = () => {
- expandedRows.value = products.value.filter((p) => p.id);
+ expandedRows.value = products.value.reduce((acc, p) => (acc[p.id] = true) && acc, {});
};
const collapseAll = () => {
expandedRows.value = null;
@@ -100,7 +131,6 @@ const calculateCustomerTotal = (name) => {
{
filterDisplay="menu"
:loading="loading1"
:filters="filters1"
- responsiveLayout="scroll"
:globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']"
+ showGridlines
>
-
+
-
-
-
-
+
+
@@ -134,30 +162,34 @@ const calculateCustomerTotal = (name) => {
-
- {{ data.country.name }}
+
+

+
{{ data.country.name }}
+
-
+
-
+
-
- {{ data.representative.name }}
+
+
![]()
+
{{ data.representative.name }}
+
Agent Picker
-
![]()
+
{{ slotProps.option.name }}
@@ -182,16 +214,16 @@ const calculateCustomerTotal = (name) => {
- {{ data.status }}
+ {{ data.status.toUpperCase() }}
- {{ slotProps.value }}
+ {{ slotProps.value }}
{{ slotProps.placeholder }}
- {{ slotProps.option }}
+ {{ slotProps.option.toUpperCase() }}
@@ -226,29 +258,33 @@ const calculateCustomerTotal = (name) => {
-
-
+
+
-
- {{ data.country.name }}
+
+

+
{{ data.country.name }}
+
-
-
-
+
+
+
- {{ data.status }}
+ {{ data.status.toUpperCase() }}
-
-
+
+
-
- {{ data.representative.name }}
+
+
![]()
+
{{ data.representative.name }}
+
-
+
{{ formatCurrency(data.balance) }}
@@ -260,14 +296,14 @@ const calculateCustomerTotal = (name) => {
Row Expand
-
+
-
+
{{ slotProps.data.name }}
@@ -275,7 +311,7 @@ const calculateCustomerTotal = (name) => {
-
+
@@ -295,13 +331,13 @@ const calculateCustomerTotal = (name) => {
- {{ slotProps.data.inventoryStatus }}
+ {{ slotProps.data.inventoryStatus }}
Orders for {{ slotProps.data.name }}
-
+
{{ slotProps.data.id }}
@@ -346,21 +382,25 @@ const calculateCustomerTotal = (name) => {
-
-
- {{ slotProps.data.country.name }}
+
+
+

+
{{ data.country.name }}
+
- {{ slotProps.data.status }}
+ {{ slotProps.data.status.toUpperCase() }}
-
- {{ slotProps.data.representative.name }}
+
+
![]()
+
{{ slotProps.data.representative.name }}
+
Total Customers: {{ calculateCustomerTotal(slotProps.data.representative.name) }} |
@@ -372,11 +412,11 @@ const calculateCustomerTotal = (name) => {