{} },
+ userFilter: { type: Object, default: () => {} },
descriptor: { type: Object, required: true },
filterPanel: { type: Object, default: undefined },
searchDataKey: { type: String, default: undefined },
@@ -32,6 +33,7 @@ const url = computed(() => {
const arrayData = useArrayData(props.dataKey, {
url: url.value,
filter: props.filter,
+ userFilter: props.userFilter,
});
onBeforeMount(async () => {
diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue
index 9eca3c711..fb80a7175 100644
--- a/src/components/common/VnLog.vue
+++ b/src/components/common/VnLog.vue
@@ -15,6 +15,7 @@ import FetchData from '../FetchData.vue';
import VnSelect from './VnSelect.vue';
import VnUserLink from '../ui/VnUserLink.vue';
import VnPaginate from '../ui/VnPaginate.vue';
+import RightMenu from './RightMenu.vue';
const stateStore = useStateStore();
const validationsStore = useValidator();
@@ -130,7 +131,7 @@ const actionsIcon = {
};
const validDate = new RegExp(
/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])/.source +
- /T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/.source
+ /T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/.source,
);
function castJsonValue(value) {
@@ -192,7 +193,7 @@ function getLogTree(data) {
user: log.user,
userFk: log.userFk,
logs: [],
- })
+ }),
);
}
// Model
@@ -210,7 +211,7 @@ function getLogTree(data) {
id: log.changedModelId,
showValue: log.changedModelValue,
logs: [],
- })
+ }),
);
nLogs = 0;
}
@@ -282,7 +283,7 @@ function setDate(type) {
to = date.adjustDate(
to,
{ hour: 21, minute: 59, second: 59, millisecond: 999 },
- true
+ true,
);
switch (type) {
@@ -365,7 +366,7 @@ async function clearFilter() {
dateTo.value = undefined;
userRadio.value = undefined;
Object.keys(checkboxOptions.value).forEach(
- (opt) => (checkboxOptions.value[opt].selected = false)
+ (opt) => (checkboxOptions.value[opt].selected = false),
);
await applyFilter();
}
@@ -378,7 +379,7 @@ watch(
() => router.currentRoute.value.params.id,
() => {
applyFilter();
- }
+ },
);
@@ -391,7 +392,7 @@ watch(
const changedModel = item.changedModel;
return {
locale: useCapitalize(
- validations[changedModel]?.locale?.name ?? changedModel
+ validations[changedModel]?.locale?.name ?? changedModel,
),
value: changedModel,
};
@@ -507,7 +508,7 @@ watch(
:title="
date.formatDate(
log.creationDate,
- 'DD/MM/YYYY hh:mm:ss'
+ 'DD/MM/YYYY hh:mm:ss',
) ?? `date:'dd/MM/yyyy HH:mm:ss'`
"
>
@@ -577,7 +578,7 @@ watch(
t(
`actions.${
actionsText[log.action]
- }`
+ }`,
)
"
/>
@@ -677,139 +678,144 @@ watch(