From 341849641fdb4c6a8305cfe63aaa68eec6d003ae Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 19 Apr 2024 17:59:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A0=91=E7=BB=84=E4=BB=B6=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=97=B6=E8=B0=83=E6=95=B4=E4=B8=BA=E4=B8=8E?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E7=BB=84=E4=BB=B6=E9=80=BB=E8=BE=91=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/elTreeSelect/index.vue | 12 ++-- .../components/widget/deWidget/DeRadio.vue | 15 ++-- .../src/views/panel/filter/FilterDialog.vue | 2 +- .../panel/filter/filterMain/FilterControl.vue | 69 ++++++++++++++----- .../panel/filter/filterMain/FilterHead.vue | 53 -------------- .../panel/filter/filterMain/FilterSort.vue | 50 ++++++++++++-- 6 files changed, 111 insertions(+), 90 deletions(-) diff --git a/core/frontend/src/components/elTreeSelect/index.vue b/core/frontend/src/components/elTreeSelect/index.vue index e0472371bd..74be9e9a5e 100644 --- a/core/frontend/src/components/elTreeSelect/index.vue +++ b/core/frontend/src/components/elTreeSelect/index.vue @@ -41,11 +41,6 @@ size="mini" class="input-with-select mb10" > -

import { on, off } from './dom' import { each, guid } from './utils' +import _ from 'lodash' export default { name: 'ElTreeSelect', components: {}, @@ -217,6 +213,9 @@ export default { } }, watch: { + keywords() { + this.searchWithKey() + }, ids: function(val) { if (val !== undefined) { this.$nextTick(() => { @@ -312,6 +311,9 @@ export default { } this.$set(this.selectParams, 'multiple', multiple) }, + searchWithKey: _.debounce(function() { + this._searchFun() + }, 300), _searchFun() { this.$emit('searchFun', this.keywords) }, diff --git a/core/frontend/src/components/widget/deWidget/DeRadio.vue b/core/frontend/src/components/widget/deWidget/DeRadio.vue index 228d0a1af6..4639ae6096 100644 --- a/core/frontend/src/components/widget/deWidget/DeRadio.vue +++ b/core/frontend/src/components/widget/deWidget/DeRadio.vue @@ -1,26 +1,27 @@ diff --git a/core/frontend/src/views/panel/filter/FilterDialog.vue b/core/frontend/src/views/panel/filter/FilterDialog.vue index 3b2f398fcb..757a4b9dae 100644 --- a/core/frontend/src/views/panel/filter/FilterDialog.vue +++ b/core/frontend/src/views/panel/filter/FilterDialog.vue @@ -269,7 +269,6 @@ - +

- {{ $t('commons.required') }} + + >{{ $t('panel.multiple_choice') }} - - -
- - + + {{ $t('time.dropdown_display_must') }} +
+ + {{ $t('commons.cancel') }} + {{ $t('commons.confirm') }} + +
+
+
- - { + this.element.options.attrs.required = true + }) + return + } + this.$emit('required-change', val) + }, handlerVisibleEnableParameters() { if (this.attrs.showEmpty) { this.visibleEnableParameters = !this.visibleEnableParameters @@ -532,6 +562,10 @@ export default { justify-content: flex-start; flex-wrap: nowrap; height: 50px; + + .el-checkbox { + margin-right: 20px !important; + } } .filter-options-right { @@ -541,7 +575,6 @@ export default { justify-content: flex-end; flex-wrap: nowrap; height: 50px; - .more-select-btn { display: inline-flex; diff --git a/core/frontend/src/views/panel/filter/filterMain/FilterHead.vue b/core/frontend/src/views/panel/filter/filterMain/FilterHead.vue index 7459d91fc8..9160f2fd5a 100644 --- a/core/frontend/src/views/panel/filter/filterMain/FilterHead.vue +++ b/core/frontend/src/views/panel/filter/filterMain/FilterHead.vue @@ -45,39 +45,6 @@
- -
- {{ $t('commons.required') }} -
-
- - {{ $t('time.dropdown_display_must') }} -
- - {{ $t('commons.cancel') }} - {{ $t('commons.confirm') }} - -
-
@@ -98,26 +65,7 @@ export default { } } }, - data() { - return { - dialogVisible: false - } - }, methods: { - sureRequired() { - this.element.options.attrs.required = false - this.dialogVisible = false - }, - requiredChange(val) { - if (val === false && (this.element.style.showMode && this.element.style.showMode === 'radio' && !this.element.options.attrs.multiple)) { - this.dialogVisible = true - this.$nextTick(() => { - this.element.options.attrs.required = true - }) - return - } - this.$emit('required-change', val) - }, getTableName(tableId) { let tableName = null this.$emit('dataset-name', tableId, t => { tableName = t }) @@ -145,7 +93,6 @@ export default {