From 5875faa1e4e20460300350a6dcac232a4c552319 Mon Sep 17 00:00:00 2001 From: Well Date: Tue, 12 Mar 2024 14:47:16 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=D0=9A=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20"?= =?UTF-8?q?=D0=BE=D1=82=D0=BC=D0=B5=D0=BD=D0=B8=D1=82=D1=8C=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D1=8C"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- l2-frontend/src/fields/AggregateAssignments.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/l2-frontend/src/fields/AggregateAssignments.vue b/l2-frontend/src/fields/AggregateAssignments.vue index 0e488a4243..1d5d442216 100644 --- a/l2-frontend/src/fields/AggregateAssignments.vue +++ b/l2-frontend/src/fields/AggregateAssignments.vue @@ -100,10 +100,13 @@ const columns = ref([ key: 'schedule_date', title: 'Расписание', align: 'center', - width: 100, + width: 150, renderBodyCell: ({ row }, h) => { if (row.schedule_date) { - return row.schedule_date; + return h('div', {}, [ + h('p', {}, row.schedule_date), + h('button', { class: 'transparent-button transparent-button-small' }, 'Отменить запись'), + ]); } return h('div', { class: 'button' }, [ h('button', { @@ -217,6 +220,9 @@ onMounted(getAssignments); color: #FFF; } } +.transparent-button-small { + padding: 0; +} .table-body-cell-green { background: #a9cfbb !important; } From 8885e82d4d23e68f1d0e2e62d2181bdfb02d1418 Mon Sep 17 00:00:00 2001 From: Well Date: Wed, 13 Mar 2024 08:50:48 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/fields/AggregateAssignments.vue | 107 +++++++++++------- 1 file changed, 68 insertions(+), 39 deletions(-) diff --git a/l2-frontend/src/fields/AggregateAssignments.vue b/l2-frontend/src/fields/AggregateAssignments.vue index 1d5d442216..901043e684 100644 --- a/l2-frontend/src/fields/AggregateAssignments.vue +++ b/l2-frontend/src/fields/AggregateAssignments.vue @@ -48,7 +48,7 @@