From 37b7524665b779677480667989a63c23a6bc089f Mon Sep 17 00:00:00 2001 From: stepan Date: Sun, 13 Sep 2026 21:21:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=20=D0=B2=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B0=D1=83=D0=B4=D0=B8=D1=82?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/operator/AuditTable.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/frontend/src/components/operator/AuditTable.vue b/src/frontend/src/components/operator/AuditTable.vue index 3d7632f..4394d29 100644 --- a/src/frontend/src/components/operator/AuditTable.vue +++ b/src/frontend/src/components/operator/AuditTable.vue @@ -60,6 +60,15 @@ function changesOf(row) { return Array.isArray(row.changes) ? row.changes : [] } +// Строка изменения: «Поле: было → стало» либо «Поле: значение». +function changeLine(change) { + const field = fieldLabel(change.field) + const to = valueLabel(change.field, change.to) + return hasFrom(change) + ? `${field}: ${valueLabel(change.field, change.from)} → ${to}` + : `${field}: ${to}` +} + // Вторая строка колонки пользователя: имя пространства, иначе id. function tenantSubline(row) { return row.userName && row.tenantName ? row.tenantName : row.tenantId || '—' @@ -99,14 +108,7 @@ function pretty(json) { class="mt-1.5 max-w-[460px] rounded-md bg-ink/70 border border-white/8 p-2" >
-
- {{ fieldLabel(change.field) }}: - - {{ valueLabel(change.field, change.to) }} -
+
{{ changeLine(change) }}
{{ $t('operator.dopolnitelnyh-parametrov-net') }}