From c2fba5d5ae1d653eeec4a911592bdea2cbc6212b Mon Sep 17 00:00:00 2001 From: AkkaRin11 Date: Sun, 24 Mar 2024 21:45:26 +0300 Subject: [PATCH] some --- .../presentation/route/TestRoute.kt | 48 ++++++++++++------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/src/main/kotlin/com/albatros/springsecurity/presentation/route/TestRoute.kt b/src/main/kotlin/com/albatros/springsecurity/presentation/route/TestRoute.kt index 3118b57..645c260 100644 --- a/src/main/kotlin/com/albatros/springsecurity/presentation/route/TestRoute.kt +++ b/src/main/kotlin/com/albatros/springsecurity/presentation/route/TestRoute.kt @@ -24,26 +24,38 @@ class TestRoute(repository: TenderSearchRepository) : VerticalLayout() { init { val includeTextField = TextField() val excludeTextField = TextField() - includeTextField.placeholder = "ключевые слова" - excludeTextField.placeholder = "нежелательные слова" + includeTextField.placeholder = "Ключевые слова" + excludeTextField.placeholder = "Нежелательные слова" val sheet: Grid = Grid().apply { - addColumn(Tender::apiTenderInfo).setHeader("apiTenderInfo") - addColumn(Tender::category).setHeader("category") - addColumn(Tender::customer).setHeader("customer") - addColumn(Tender::date).setHeader("date") - addColumn(Tender::endTime).setHeader("endTime") - addColumn(Tender::etp).setHeader("etp") - addColumn(Tender::fz).setHeader("fz") - addColumn(Tender::tenderId).setHeader("tenderId") - addColumn(Tender::price).setHeader("price") - addColumn(Tender::region).setHeader("region") - addColumn(Tender::tenderLink).setHeader("tenderLink") - addColumn(Tender::tenderInnerLink).setHeader("tenderInnerLink") - addColumn(Tender::tenderName).setHeader("tenderName") - addColumn(Tender::tenderNumOuter).setHeader("tenderNumOuter") - addColumn(Tender::userId).setHeader("userId") - addColumn(Tender::metaData).setHeader("metaData") + addColumn(Tender::category) + .setHeader("Категория") + .setSortable(true) + addColumn(Tender::region) + .setHeader("Регион") + .setSortable(true) + addColumn(Tender::customer) + .setHeader("Покупатель") + .setSortable(true) + addColumn(Tender::tenderName) + .setHeader("Тендер") + .setSortable(true) + addColumn(Tender::date) + .setHeader("Дата начала") + .setAutoWidth(true) + .setFlexGrow(0) + .setSortable(true) + addColumn(Tender::endTime) + .setHeader("Дата конца") + .setAutoWidth(true) + .setFlexGrow(0) + .setSortable(true) + addColumn(Tender::price) + .setHeader("Цена") + .setAutoWidth(true) + .setFlexGrow(0) + .setSortable(true) + height = "600px" }