-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
@@ -213,7 +248,7 @@ onMounted(() => {
color: var(--vn-section-color);
}
-.bg-secondary {
+.bg-chip-secondary {
background-color: var(--vn-page-color);
color: var(--vn-text-colo);
}
@@ -308,4 +343,12 @@ onMounted(() => {
display: flex;
flex-direction: row;
}
+
+.w-80 {
+ width: 80%;
+}
+
+.w-20 {
+ width: 20%;
+}
diff --git a/src/components/common/VnTableFilter.vue b/src/components/common/VnTableFilter.vue
new file mode 100644
index 000000000..1d1860680
--- /dev/null
+++ b/src/components/common/VnTableFilter.vue
@@ -0,0 +1,108 @@
+
+
+ {{ column.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/common/VnTableFilterMore.vue b/src/components/common/VnTableFilterMore.vue
new file mode 100644
index 000000000..fd4880431
--- /dev/null
+++ b/src/components/common/VnTableFilterMore.vue
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/src/components/common/VnTableObj.json b/src/components/common/VnTableObj.json
new file mode 100644
index 000000000..ceaedd647
--- /dev/null
+++ b/src/components/common/VnTableObj.json
@@ -0,0 +1,33 @@
+// {
+// isId: Boolean
+// align: 'left',
+// field: 'hasFile',
+// label: t('globals.original'),
+// name: 'hasFile',
+// component: QCheckbox ?? span,
+// cardVisible: Boolean
+// isId: 1/2
+// color: function
+// props: (prop) => ({
+// disable: true,
+// 'model-value': Boolean(prop.value),
+// }),
+// tableActions: {
+// field: 'tableActions',
+// name: 'tableActions',
+// actions: [
+// {
+// title: t('Client ticket list'),
+// icon: 'vn:ticket',
+// action: redirectToCreateView,
+// isPrimary: true,
+// },
+// {
+// title: t('Client ticket list'),
+// icon: 'preview',
+// action: (row) => viewSummary(row.id, CustomerSummary),
+// },
+// ],
+// },
+// },
+// tableActions y hacer bucle
diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue
index eb0bbbe66..380bafb03 100644
--- a/src/components/ui/VnFilterPanel.vue
+++ b/src/components/ui/VnFilterPanel.vue
@@ -62,6 +62,8 @@ onMounted(() => {
if (Object.keys(store.userParams).length > 0) {
userParams.value = JSON.parse(JSON.stringify(store.userParams));
}
+
+ console.log('userParams.value: ', userParams.value);
emit('init', { params: userParams.value });
});
@@ -165,7 +167,7 @@ function formatValue(value) {
-
+
@@ -255,7 +257,7 @@ function formatValue(value) {
-
+
[
field: 'customerStatus',
label: 'customerStatus',
name: 'customerStatus',
+ columnFilter: false,
},
{
align: 'left',
@@ -272,6 +273,9 @@ const columns = computed(() => [
label: t('customer.extendedList.tableVisibleColumns.id'),
name: 'id',
isId: 1,
+ columnFilter: {
+ field: 'search',
+ },
},
{
align: 'left',
@@ -279,6 +283,11 @@ const columns = computed(() => [
label: t('customer.extendedList.tableVisibleColumns.name'),
name: 'name',
isId: 2,
+ columnFilter: {
+ inWhere: {
+ prefix: 'c',
+ },
+ },
},
{
align: 'left',