From a8dbe2e29702a763570910d73499910a39c2a8b1 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 11 Nov 2022 17:02:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=BF=87=E6=BB=A4=E5=99=A8):=20=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E8=BF=87=E6=BB=A4=E5=99=A8=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=8E=92=E5=BA=8F(=E7=AD=89=E5=BE=85=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E8=AF=B7=E5=8B=BFmerge)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../serviceImpl/TextSelectServiceImpl.js | 3 + .../panel/filter/filterMain/FilterControl.vue | 84 +++++++++- .../filter/filterMain/FilterCustomSort.vue | 145 ++++++++++++++++++ 3 files changed, 229 insertions(+), 3 deletions(-) create mode 100644 frontend/src/views/panel/filter/filterMain/FilterCustomSort.vue diff --git a/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js b/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js index ab8cd690df..4b5b79d85a 100644 --- a/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js +++ b/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js @@ -99,6 +99,9 @@ class TextSelectServiceImpl extends WidgetService { isSortWidget() { return true } + isCustomSortWidget() { + return true + } fillValueDerfault(element) { const defaultV = element.options.value === null ? '' : element.options.value.toString() diff --git a/frontend/src/views/panel/filter/filterMain/FilterControl.vue b/frontend/src/views/panel/filter/filterMain/FilterControl.vue index 4067341c30..de293a262b 100644 --- a/frontend/src/views/panel/filter/filterMain/FilterControl.vue +++ b/frontend/src/views/panel/filter/filterMain/FilterControl.vue @@ -51,6 +51,52 @@ + + + {{ $t('chart.sort') }} + + + +
+ + +
+ + +
+
+ @@ -197,9 +243,10 @@ + +