diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 2163d54d4..640be2c0a 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -14,6 +14,7 @@ import VnJsonValue from '../common/VnJsonValue.vue'; import FetchData from '../FetchData.vue'; import VnSelect from './VnSelect.vue'; import VnUserLink from '../ui/VnUserLink.vue'; +import VnPaginate from '../ui/VnPaginate.vue'; const stateStore = useStateStore(); const validationsStore = useValidator(); @@ -68,7 +69,6 @@ const filter = { ], }; -const workers = ref(); const actions = ref(); const changeInput = ref(); const searchInput = ref(); @@ -235,9 +235,9 @@ async function openPointRecord(id, modelLog) { const locale = validations[modelLog.model]?.locale || {}; pointRecord.value = parseProps(propNames, locale, data); } -async function setLogTree() { +async function setLogTree(data) { filter.where = { and: [{ originFk: route.params.id }] }; - const { data } = await getLogs(filter); + // const { data } = await getLogs(filter); logTree.value = getLogTree(data); } @@ -377,8 +377,6 @@ async function clearFilter() { await applyFilter(); } -setLogTree(); - onUnmounted(() => { stateStore.rightDrawer = false; }); @@ -391,16 +389,6 @@ watch( ); - (workers = data)" - auto-load - /> - - - - {{ useCapitalize(validations[props.model].locale.name) }} - #{{ originLog.originFk }} - - - - - - - - - - - - - - - - - + + + + {{ useCapitalize(validations[props.model].locale.name) }} + #{{ originLog.originFk }} + + + + - - - - {{ t(modelLog.modelI18n) }} - - - - - - - - - + + + + + + + + + + + + - - - + - {{ toRelativeDate(log.creationDate) }} - - - - - - - {{ modelLog.modelI18n }} - #{{ modelLog.id }} - - - - - {{ value.nameI18n }}: - - - - - - - - - - - - - - - - - - {{ prop.nameI18n }}: - - - , - - - + {{ t(modelLog.modelI18n) }} + + - + + + + + + + + - - {{ prop.nameI18n }}: - - - - #{{ prop.val.id }} - - - ← - - - #{{ prop.old.id }} + + {{ toRelativeDate(log.creationDate) }} + + + + + + + {{ modelLog.modelI18n }} + #{{ + modelLog.id + }} + + + + + {{ + value.nameI18n + }}: + + + + + + + + + + + + + + + + + + {{ prop.nameI18n }}: + + + , + - - - - - {{ log.description }} - - - - - - - - + + + + {{ prop.nameI18n }}: + + + + #{{ prop.val.id }} + + + ← + + + #{{ prop.old.id }} + + + + + + + {{ log.description }} + + + + + + + + + + @@ -691,17 +730,16 @@ watch( - - - - +